| Committer | Back-patch fix for renaming asyncCommitLSN to asyncXactLSN. AIUI this was supposed to go into 9.0 as well as HEAD. 727117fe | REL9_0_STABLE9.0rc1 | No linked thread | Aug 01, 2010 |
| CommitterBackported | Fix ANALYZE's ancient deficiency of not trying to collect stats for expression indexes when the index column type (the opclass opckeytype) is different from the expression's datatype. When coded, this limitation wasn't worth worrying about because we had no intelligence to speak of in stats collection for the datatypes used by such opclasses. However, now that there's non-toy estimation capability for tsvector queries, it amounts to a bug that ANALYZE fails to do this. 67becf8d | master9.1alpha1REL_19_STABLE9.1alpha1REL_18_STABLE9.1alpha1REL_17_STABLE9.1alpha1REL_16_STABLE9.1alpha1REL_15_STABLE9.1alpha1REL_14_STABLE9.1alpha1REL_13_STABLE9.1alpha1+10 more | No linked thread | Aug 01, 2010 |
| Committer | Add some knowledge about prefix matches to tsmatchsel(). It's not terribly bright, but it beats assuming that a prefix match behaves identically to an exact match, which is what the code was doing before :-(. Noted while experimenting with Artur Dobrowski's example. 97532f7c | master9.1alpha1REL_19_STABLE9.1alpha1REL_18_STABLE9.1alpha1REL_17_STABLE9.1alpha1REL_16_STABLE9.1alpha1REL_15_STABLE9.1alpha1REL_14_STABLE9.1alpha1REL_13_STABLE9.1alpha1+9 more | No linked thread | Aug 01, 2010 |
| CommitterBackported | Fix an additional set of problems in GIN's handling of lossy page pointers. Although the key-combining code claimed to work correctly if its input contained both lossy and exact pointers for a single page in a single TID stream, in fact this did not work, and could not work without pretty fundamental redesign. Modify keyGetItem so that it will not return such a stream, by handling lossy-pointer cases a bit more explicitly than we did before. d4fe61b0 | master9.1alpha1REL_19_STABLE9.1alpha1REL_18_STABLE9.1alpha1REL_17_STABLE9.1alpha1REL_16_STABLE9.1alpha1REL_15_STABLE9.1alpha1REL_14_STABLE9.1alpha1REL_13_STABLE9.1alpha1+11 more | No linked thread | Aug 01, 2010 |
| CommitterBackported | Rewrite the rbtree routines so that an RBNode is the first field of the struct representing a tree entry, rather than being a separately allocated piece of storage. This API is at least as clean as the old one (if not more so --- there were some bizarre choices in there) and it permits a very substantial memory savings, on the order of 2X in ginbulk.c's usage. 0454f131 | master9.1alpha1REL_19_STABLE9.1alpha1REL_18_STABLE9.1alpha1REL_17_STABLE9.1alpha1REL_16_STABLE9.1alpha1REL_15_STABLE9.1alpha1REL_14_STABLE9.1alpha1REL_13_STABLE9.1alpha1+10 more | No linked thread | Aug 01, 2010 |
| CommitterBackported | Tweak tsmatchsel() so that it examines the structure of the tsquery whenever possible (ie, whenever the tsquery is a constant), even when no statistics are available for the tsvector. For example, foo @@ 'a & b'::tsquery can be expected to be more selective than foo @@ 'a'::tsquery, whether or not we know anything about foo. We use DEFAULT_TS_MATCH_SEL as the assumed selectivity of individual query terms when no stats are available, then combine the terms according to the query's AND/OR structure as usual. b8c798eb | master9.1alpha1REL_19_STABLE9.1alpha1REL_18_STABLE9.1alpha1REL_17_STABLE9.1alpha1REL_16_STABLE9.1alpha1REL_15_STABLE9.1alpha1REL_14_STABLE9.1alpha1REL_13_STABLE9.1alpha1+11 more | No linked thread | Jul 31, 2010 |
| CommitterBackported | Rewrite the key-combination logic in GIN's keyGetItem() and scanGetItem() routines to make them behave better in the presence of "lossy" index pointers. The previous coding was outright incorrect for some cases, as recently reported by Artur Dabrowski: scanGetItem would fail to return index entries in cases where one index key had multiple exact pointers on the same page as another key had a lossy pointer. Also, keyGetItem was extremely inefficient for cases where a single index key generates multiple "entry" streams, such as an @@ operator with a multiple-clause tsquery. The presence of a lossy page pointer in any one stream defeated its ability to use the opclass consistentFn, resulting in probing many heap pages that didn't really need to be visited. In Artur's example case, a query like WHERE tsvector @@ to_tsquery('a & b') was about 50X slower than the theoretically equivalent WHERE tsvector @@ to_tsquery('a') AND tsvector @@ to_tsquery('b') The way that I chose to fix this was to have GIN call the consistentFn twice with both TRUE and FALSE values for the in-doubt entry stream, returning a hit if either call produces TRUE, but not if they both return FALSE. The code handles this for the case of a single in-doubt entry stream, but punts (falling back to the stupid behavior) if there's more than one lossy reference to the same page. The idea could be scaled up to deal with multiple lossy references, but I think that would probably be wasted complexity. At least to judge by Artur's example, such cases don't occur often enough to be worth trying to optimize. 2ab57e08 | master9.1alpha1REL_19_STABLE9.1alpha1REL_18_STABLE9.1alpha1REL_17_STABLE9.1alpha1REL_16_STABLE9.1alpha1REL_15_STABLE9.1alpha1REL_14_STABLE9.1alpha1REL_13_STABLE9.1alpha1+11 more | No linked thread | Jul 31, 2010 |
| CommitterBackported | Improved version of patch to protect pg_get_expr() against misuse: look through join alias Vars to avoid breaking join queries, and move the test to someplace where it will catch more possible ways of calling a function. We still ought to throw away the whole thing in favor of a data-type-based solution, but that's not feasible in the back branches. f223bb7a | master9.1alpha1REL_19_STABLE9.1alpha1REL_18_STABLE9.1alpha1REL_17_STABLE9.1alpha1REL_16_STABLE9.1alpha1REL_15_STABLE9.1alpha1REL_14_STABLE9.1alpha1REL_13_STABLE9.1alpha1+16 more | No linked thread | Jul 29, 2010 |
| CommitterBackported | Update release notes for 9.0 beta 4. Back-patch some changes that were made only in HEAD. 478a2c12 | master9.1alpha1REL_19_STABLE9.1alpha1REL_18_STABLE9.1alpha1REL_17_STABLE9.1alpha1REL_16_STABLE9.1alpha1REL_15_STABLE9.1alpha1REL_14_STABLE9.1alpha1REL_13_STABLE9.1alpha1+10 more | No linked thread | Jul 29, 2010 |
| CommitterBackported | Clean up some inconsistencies in the volatility marking of various I/O related functions. Per today's discussion, we will henceforth assume that datatype I/O functions are either stable or immutable, never volatile. (This implies in particular that domain CHECK constraint expressions shouldn't be volatile, since domain_in executes them.) In turn, functions that execute the I/O functions of arbitrary datatypes should always be labeled stable. This affects the labeling of array_to_string, which was unsafely marked immutable, and record_in, record_out, record_recv, record_send, domain_in, domain_recv, which were over-conservatively marked volatile. The array I/O functions were already marked stable, which is correct per this policy but would have been wrong if we maintained domain_in as volatile. aab353a6 | master9.1alpha1REL_19_STABLE9.1alpha1REL_18_STABLE9.1alpha1REL_17_STABLE9.1alpha1REL_16_STABLE9.1alpha1REL_15_STABLE9.1alpha1REL_14_STABLE9.1alpha1REL_13_STABLE9.1alpha1+10 more | No linked thread | Jul 29, 2010 |
| CommitterBackported | Fix another longstanding problem in copy_relation_data: it was blithely assuming that a local char[] array would be aligned on at least a word boundary. There are architectures on which that is pretty much guaranteed to NOT be the case ... and those arches also don't like non-aligned memory accesses, meaning that log_newpage() would crash if it ever got invoked. Even on Intel-ish machines there's a potential for a large performance penalty from doing I/O to an inadequately aligned buffer. So palloc it instead. 984d56b8 | master9.1alpha1REL_19_STABLE9.1alpha1REL_18_STABLE9.1alpha1REL_17_STABLE9.1alpha1REL_16_STABLE9.1alpha1REL_15_STABLE9.1alpha1REL_14_STABLE9.1alpha1REL_13_STABLE9.1alpha1+15 more | No linked thread | Jul 29, 2010 |
| CommitterBackported | Work around a documentation toolchain problem by replacing the "AIX-fixlevels" table with a <variablelist> carrying the same information. Previously the 9.0 documentation was failing to build as a US-size PDF file. It's quite obscure what the real problem is or why this avoids it, but we need a hack now so we can build docs for beta4. 5b48e2ec | master9.1alpha1REL_19_STABLE9.1alpha1REL_18_STABLE9.1alpha1REL_17_STABLE9.1alpha1REL_16_STABLE9.1alpha1REL_15_STABLE9.1alpha1REL_14_STABLE9.1alpha1REL_13_STABLE9.1alpha1+10 more | No linked thread | Jul 29, 2010 |
| CommitterBackported | Fix oversight in new EvalPlanQual logic: the second loop over the ExecRowMark list in ExecLockRows() forgot to allow for the possibility that some of the rowmarks are for child tables that aren't relevant to the current row. Per report from Kenichiro Tanaka. 77c75076 | master9.1alpha1REL_19_STABLE9.1alpha1REL_18_STABLE9.1alpha1REL_17_STABLE9.1alpha1REL_16_STABLE9.1alpha1REL_15_STABLE9.1alpha1REL_14_STABLE9.1alpha1REL_13_STABLE9.1alpha1+10 more | No linked thread | Jul 28, 2010 |
| CommitterBackported | Fix potential failure when hashing the output of a subplan that produces a pass-by-reference datatype with a nontrivial projection step. We were using the same memory context for the projection operation as for the temporary context used by the hashtable routines in execGrouping.c. However, the hashtable routines feel free to reset their temp context at any time, which'd lead to destroying input data that was still needed. Report and diagnosis by Tao Ma. 133924e1 | master9.1alpha1REL_19_STABLE9.1alpha1REL_18_STABLE9.1alpha1REL_17_STABLE9.1alpha1REL_16_STABLE9.1alpha1REL_15_STABLE9.1alpha1REL_14_STABLE9.1alpha1REL_13_STABLE9.1alpha1+14 more | No linked thread | Jul 28, 2010 |