| Committer | Revert my patch of 2009-04-04 that removed contrib/intarray's definitions of the <@ and @> operators. These are not in fact equivalent to the built-in anyarray operators of the same names, because they have different behavior for empty arrays, namely they don't think empty arrays are contained in anything. That is mathematically wrong, no doubt, but until we can persuade GIN indexes to implement the mathematical definition we should probably not change this. Another reason for not changing it now is that we can't yet ensure the opclasses will be updated correctly in a dump-and-reload upgrade. Per recent discussions. 156475a5 | master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more | No linked thread | Jun 07, 2009 |
| Committer | Improve the IndexVacuumInfo/IndexBulkDeleteResult API to allow somewhat sane behavior in cases where we don't know the heap tuple count accurately; in particular partial vacuum, but this also makes the API a bit more useful for ANALYZE. This patch adds "estimated_count" flags to both structs so that an approximate count can be flagged as such, and adjusts the logic so that approximate counts are not used for updating pg_class.reltuples. 32ea2363 | master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more | No linked thread | Jun 06, 2009 |
| Committer | Move variable declaration to avoid 'unused variable' warning when the ifdef doesn't trigger. Not worth back-patching. Per buildfarm reports. af98bb2a | master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more | No linked thread | Jun 06, 2009 |
| Committer | Fix a serious bug introduced into GIN in 8.4: now that MergeItemPointers() is supposed to remove duplicate heap TIDs, we have to be sure to reduce the tuple size and posting-item count accordingly in addItemPointersToTuple(). Failing to do so resulted in the effective injection of garbage TIDs into the index contents, ie, whatever happened to be in the memory palloc'd for the new tuple. I'm not sure that this fully explains the index corruption reported by Tatsuo Ishii, but the test case I'm using no longer fails. 356eea24 | master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more | No linked thread | Jun 06, 2009 |
| CommitterBackported | GIN's ItemPointerIsMin, ItemPointerIsMax, and ItemPointerIsLossyPage macros should use GinItemPointerGetBlockNumber/GinItemPointerGetOffsetNumber, not ItemPointerGetBlockNumber/ItemPointerGetOffsetNumber, because the latter will Assert() on ip_posid == 0, ie a "Min" pointer. (Thus, ItemPointerIsMin has never worked at all, but it seems unused at present.) I'm not certain that the case can occur in normal functioning, but it's blowing up on me while investigating Tatsuo-san's data corruption problem. In any case it seems like a problem waiting to bite someone. 52f0fc70 | master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+18 more | No linked thread | Jun 05, 2009 |
| Committer | Trivial code style cleanup around a couple of ngettext calls. 0d547819 | master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more | No linked thread | Jun 04, 2009 |
| Committer | Remove a couple of debugging messages that have been #ifdef'd out for ages. Seems silly to ask translators to expend work on these, especially in pluralized variants. 20d4005c | master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more | No linked thread | Jun 04, 2009 |
| Committer | Improve the recently-added support for properly pluralized error messages by extending the ereport() API to cater for pluralization directly. This is better than the original method of calling ngettext outside the elog.c code because (1) it avoids double translation, which wastes cycles and in the worst case could give a wrong result; and (2) it avoids having to use a different coding method in PL code than in the core backend. The client-side uses of ngettext are not touched since neither of these concerns is very pressing in the client environment. Per my proposal of yesterday. 76d4abf2 | master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more | No linked thread | Jun 04, 2009 |
| Committer | Clean up ecpg's use of mmerror(): const-ify the format argument, add an __attribute__() marker so that gcc can validate the format string against the actual arguments, get rid of overcomplicated and unsafe usage in base_yyerror(). b5c838e1 | master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more | No linked thread | Jun 03, 2009 |
| Committer | Fix tsquerysel() to not fail on an empty TSQuery. Per report from Tatsuo Ishii. a734979e | master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more | No linked thread | Jun 03, 2009 |
| Committer | Change rather bizarre code ordering in get_id(). This isn't strictly cosmetic --- I'm wondering if geteuid could have side effects on errno, thus possibly resulting in a misleading error message after failure of getpwuid. a7a7f5ca | master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more | No linked thread | Jun 03, 2009 |
| Committer | Improve comment about 'if (1)' hack in copy.c macros. e5507631 | master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more | No linked thread | Jun 03, 2009 |
| Committer | Remove the old advice to keep from_collapse_limit less than geqo_threshold, instead just pointing out that a larger value may trigger use of GEQO. Per Robert Haas. ade91586 | master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more | No linked thread | Jun 02, 2009 |
| Committer | Change AdjustIntervalForTypmod to not discard higher-order field values on the grounds that they don't fit into the specified interval qualifier (typmod). This behavior, while of long standing, is clearly wrong per spec --- for example the value INTERVAL '999' SECOND means 999 seconds and should not be reduced to less than 60 seconds. bac2ad38 | master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more | No linked thread | Jun 01, 2009 |
| Committer | Fix DecodeInterval to report an error for multiple occurrences of DAY, WEEK, YEAR, DECADE, CENTURY, or MILLENIUM fields, just as it always has done for other types of fields. The previous behavior seems to have been a hack to avoid defining bit-positions for all these field types in DTK_M() masks, rather than something that was really considered to be desired behavior. But there is room in the masks for these, and we really need to tighten up at least the behavior of DAY and YEAR fields to avoid unexpected behavior associated with the 8.4 changes to interpret ambiguous fields based on the interval qualifier (typmod) value. Per my example and proposed patch. b3b89fd1 | master8.4rc1REL_19_STABLE8.4rc1REL_18_STABLE8.4rc1REL_17_STABLE8.4rc1REL_16_STABLE8.4rc1REL_15_STABLE8.4rc1REL_14_STABLE8.4rc1REL_13_STABLE8.4rc1+16 more | No linked thread | Jun 01, 2009 |