Filter:

Commits in week 4 (Jan 22 - Jan 28, 2007)

Commits22 commits of which 9 backported
0Author
22Committer
0Reviewer
0Reported by
0Co-author
CreditCommitBranchesThread(s)Committed
CommitterImprove hash join to discard input tuples immediately if they can't match because they contain a null join key (and the join operator is known strict). Improves performance significantly when the inner relation contains a lot of nulls, as per bug #2930.
b39e9150
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 28, 2007
CommitterRemove unnecessary checkpoint from PL regression tests. This was once handy to prevent core dump files from disappearing, but it's useless now because (a) we don't drop core in individual DB subdirectories anymore, and (b) CREATE DATABASE forces an internal checkpoint anyway.
28c480e9
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 28, 2007
CommitterRemove some unnecessary conversion work in build_regtype_array().
529a24a2
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 28, 2007
CommitterBackportedRepair oversight in creation of "append relations": we should set up rel->tuples as well as rel->rows, since some estimation functions expect both to be valid in every baserel. Per report from Dave Dutcher.
2b8758a3
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadJan 28, 2007
CommitterMake some small improvements in the accuracy of plpgsql's error location reports; inspired by the misleading CONTEXT lines shown in recent bug report from Stefan Kaltenbrunner. Also, allow statement-type names shown in these messages to be translated.
5681cde7
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 28, 2007
CommitterBackportedFix up plpgsql's "simple expression" evaluation mechanism so that it behaves safely in the presence of subtransactions. To ensure that any ExprContext shutdown callbacks are called at the right times, we have to have a separate EState for each level of subtransaction. Per "TupleDesc reference leak" bug report from Stefan Kaltenbrunner.
a8e0b660
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadJan 28, 2007
CommitterDrat, can't fit an additional argument into log_error. Is it worth an sprintf pushup to be sure we can report something useful for out-of-range exitstatus?
76c7d2af
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 28, 2007
CommitterClean up broken usage of HAVE_DECL_SYS_SIGLIST and inconsistent/poorly formatted error messages.
a9fa5250
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 28, 2007
CommitterAdd a delay at the start of the stats test, to let any prior stats activity quiesce. Possibly this will fix the large increase in non-reproducible stats test failures we've noted since turning on stats_row_level by default.
9bf559de
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 28, 2007
CommitterBackportedDept of second thoughts: the IQ of estimate_array_length() needs to be kept on par with that of scalararraysel(), else estimates that should track might not. Hence teach it about binary-compatible cases, too.
a053437d
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadJan 28, 2007
CommitterBackportedFix scalararraysel() to cope with binary-compatible cases, such as text[] versus varchar[]. This oversight probably explains Ryan Holmes' recent complaint --- he was getting a generic selectivity estimate instead of anything intelligent.
af18f6ad
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadJan 28, 2007
CommitterBackportedCorrect an old logic error in btree page splitting: when considering a split exactly at the point where we need to insert a new item, the calculation used the wrong size for the "high key" of the new left page. This could lead to choosing an unworkable split, resulting in "PANIC: failed to add item to the left sibling" (or "right sibling") failure. Although this bug has been there a long time, it's very difficult to trigger a failure before 8.2, since there was generally a lot of free space on both sides of a chosen split. In 8.2, where the user-selected fill factor determines how much free space the code tries to leave, an unworkable split is much more likely. Report by Joe Conway, diagnosis and fix by Heikki Linnakangas.
6cefacd7
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+22 more
No linked threadJan 27, 2007
CommitterBackportedBack-port changes of Jan 16 and 17 to "revoke" pending fsync requests during DROP TABLE and DROP DATABASE. Should prevent unexpected "permission denied" failures on Windows, and is cleaner on other platforms too since we no longer have to take it on faith that ENOENT is okay during an fsync attempt.
cb476c1e
REL8_2_STABLE8.2.2REL8_1_STABLE8.1.7
No linked threadJan 27, 2007
CommitterBackportedOn Windows, use pgwin32_waitforsinglesocket() instead of select() to wait for input in the stats collector. Our select() emulation is apparently buggy for UDP sockets :-(. This should resolve problems with stats collection (and hence autovacuum) failing under more than minimal load. Diagnosis and patch by Magnus Hagander.
4355d214
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadJan 26, 2007
CommitterBackportedGet pg_utf_mblen(), pg_utf2wchar_with_len(), and utf2ucs() all on the same page about the maximum UTF8 sequence length we support (4 bytes since 8.1, 3 before that). pg_utf2wchar_with_len never got updated to support 4-byte characters at all, and in any case had a buffer-overrun risk in that it could produce multiple pg_wchars from what mblen claims to be just one UTF8 character. The only reason we don't have a major security hole is that most callers allocate worst-case output buffers; the sole exception in released versions appears to be pre-8.2 iwchareq() (ie, ILIKE), which can be crashed due to zeroing out its return address --- but AFAICS that can't be exploited for anything more than a crash, due to inability to control what gets written there. Per report from James Russell and Michael Fuhr.
0887fa11
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+22 more
No linked threadJan 24, 2007
CommitterBackportedRelax an Assert() that has been found to be too strict in some situations involving unions of types having typmods. Variants of the failure are known to occur in 8.1 and up; not sure if it's possible in 8.0 and 7.4, but since the code exists that far back, I'll just patch 'em all. Per report from Brian Hurt.
07cf99ac
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+21 more
No linked threadJan 24, 2007
CommitterUpdate xindex.sgml to discuss operator families.
a56c5fb0
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 23, 2007
CommitterUpdate pg_dump to support dumping operator families.
37995812
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 23, 2007
CommitterAdd CREATE/ALTER/DROP OPERATOR FAMILY commands, also COMMENT ON OPERATOR FAMILY; and add FAMILY option to CREATE OPERATOR CLASS to allow adding a class to a pre-existing family. Per previous discussion. Man, what a tedious lot of cutting and pasting ...
a33cf104
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 23, 2007
CommitterPut back planner's ability to cache the results of mergejoinscansel(), which I had removed in the first cut of the EquivalenceClass rewrite to simplify that patch a little. But it's still important --- in a four-way join problem mergejoinscansel() was eating about 40% of the planning time according to gprof. Also, improve the EquivalenceClass code to re-use join RestrictInfos rather than generating fresh ones for each join considered. This saves some memory space but more importantly improves the effectiveness of caching planning info in RestrictInfos.
4f06c688
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 22, 2007
CommitterAdjust pgbench so it won't spit up on non-select queries returning tuples, which is entirely possible with custom scripts (consider RETURNING, EXPLAIN, etc).
686f15e3
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 22, 2007
CommitterAdd COST and ROWS options to CREATE/ALTER FUNCTION, plus underlying pg_proc columns procost and prorows, to allow simple user adjustment of the estimated cost of a function call, as well as control of the estimated number of rows returned by a set-returning function. We might eventually wish to extend this to allow function-specific estimation routines, but there seems to be consensus that we should try a simple constant estimate first. In particular this provides a relatively simple way to control the order in which different WHERE clauses are applied in a plan node, which is a Good Thing in view of the fact that the recent EquivalenceClass planner rewrite made that much less predictable than before.
5a7471c3
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 22, 2007