| Committer | Throw error if a <window definition> references a window that already has a frame clause, as appears to be required by the fine print in the SQL spec. Per discussion with Pavel, not doing so risks user confusion. df0ea5a1 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Dec 31, 2008 |
| Committer | Fix another problem in SQL-MED \d displays: should have a clean failure report if the command is attempted against an old server. eb273743 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Dec 31, 2008 |
| Committer | Consistently use multi-line formatting for all ACL columns printed by psql's various display commands, not only for \z. 6672daac | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Dec 31, 2008 |
| Committer | Add a WINDOW attribute to CREATE FUNCTION, and teach pg_dump about it, so that user-defined window functions are possible. For the moment you'll have to write them in C, for lack of any interface to the WindowObject API in the available PLs, but it's better than no support at all. 26ce4e85 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Dec 31, 2008 |
| Committer | Add some basic support for window frame clauses to the window-functions patch. This includes the ability to force the frame to cover the whole partition, and the ability to make the frame end exactly on the current row rather than its last ORDER BY peer. Supporting any more of the full SQL frame-clause syntax will require nontrivial hacking on the window aggregate code, so it'll have to wait for 8.5 or beyond. 8e8854da | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Dec 31, 2008 |
| Committer | Reduce the last group of parallel regression tests to 19 tests, per failure on buildfarm member bear. Sync the test order in serial_schedule with that in parallel_schedule. 0fb9be7a | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Dec 30, 2008 |
| CommitterBackported | Fix oversight in ALTER TABLE ENABLE/DISABLE RULE patch: the new enabled field needs to be included in equalRuleLocks() comparisons, else updates will fail to propagate into relcache entries when they have positive reference count (ie someone is using the relcache entry). Per report from Alex Hunsaker. 1b1b0ac8 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Dec 30, 2008 |
| Committer | Fix thinko in documentation of default window frame behavior, per Hitoshi Harada. 2c38b8c7 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Dec 29, 2008 |
| Committer | Tighten up a couple of regression test cases that can have platform-dependent results due to underspecified ordering. Per report from buildfarm member pika. 2f806e54 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Dec 29, 2008 |
| Committer | Support window functions a la SQL:2008. 95b07bc7 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Dec 28, 2008 |
| Committer | Make a couple of small changes to the tuplestore API, for the benefit of the upcoming window-functions patch. First, tuplestore_trim is now an exported function that must be explicitly invoked by callers at appropriate times, rather than something that tuplestore tries to do behind the scenes. Second, a read pointer that is marked as allowing backward scan no longer prevents truncation. This means that a read pointer marked as having BACKWARD but not REWIND capability can only safely read backwards as far as the oldest other read pointer. (The expected use pattern for this involves having another read pointer that serves as the truncation fencepost.) 38e93482 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Dec 27, 2008 |
| Committer | Remove unused include file, per ITAGAKI Takahiro. AFAICT this has been dead code since Postgres95. c8b69ed6 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Dec 26, 2008 |
| Committer | Add missing semicolon, per buildfarm results. Martin Pihlak 6d798718 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Dec 20, 2008 |
| Committer | Fix various confusions of pointers and OIDs, unsafe assumptions about nulls, etc. I think this will fix the current buildfarm issues ... a1212d09 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Dec 20, 2008 |
| Committer | Add a new column proiswindow to pg_proc. It doesn't actually do anything useful yet, but I'm tired of re-merging this aspect of the window functions patch. ea7d5199 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Dec 19, 2008 |
| Committer | When we added the ability to have zero-element ARRAY[] constructs by adding an explicit cast to show the intended array type, we forgot to teach ruleutils.c to print out such constructs properly. Found by noting bogus output from recent changes in polymorphism regression test. adac22bf | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Dec 19, 2008 |
| Committer | Add a couple of cross-references to the docs about enum types, per a recent gripe that the info is hard to find. e32014d8 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Dec 19, 2008 |
| Committer | Fix oversight in my recent patch to allow ExecMakeFunctionResult to handle materialize-mode set results. Since it now uses the ReturnSetInfo node to hold internal state, we need to be sure to set up the node even when the immediately called function doesn't return set (but does have a set-valued argument). Per report from Anupama Aherrao. 4ac592be | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Dec 18, 2008 |
| Committer | Code review for function default parameters patch. Fix numerous problems as per recent discussions. In passing this also fixes a couple of bugs in the previous variadic-parameters patch. 517ae403 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Dec 18, 2008 |
| CommitterBackported | Make heap_update() set newtup->t_tableOid correctly, for consistency with the other major heapam.c functions. The only known consequence of this omission is that UPDATE RETURNING failed to return the correct value for "tableoid", as per report from KaiGai Kohei. fc3297d8 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+18 more | No linked thread | Dec 16, 2008 |
| Committer | Department of second thoughts: further experimentation with CREATE OR REPLACE VIEW suggests that it'd be worth spelling the error messages out in a little more detail. This seems to help with localizing the problem. 794ec7b0 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Dec 16, 2008 |
| Committer | Code review for CREATE OR REPLACE VIEW patch. Do things in a saner order to result in hopefully-less-confusing error messages when the new definition isn't compatible with the old; minor other cleanup. 4da65a23 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Dec 15, 2008 |
| Committer | Fix cast-away-const problem as well as bogus calculation of required buffer size. d1c24460 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Dec 15, 2008 |
| Committer | Arrange for the pg_foo_is_visible and has_foo_privilege families of functions to return NULL, instead of erroring out, if the target object is specified by OID and we can't find that OID in the catalogs. Since these functions operate internally on SnapshotNow rules, there is a race condition when using them in user queries: the query's MVCC snapshot might "see" a catalog row that's already committed dead, leading to a failure when the inquiry function is applied. Returning NULL should generally provide more convenient behavior. This issue has been complained of before, and in particular we are now seeing it in the regression tests due to another recent patch. 66bb74db | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Dec 15, 2008 |
| Committer | Remove newly-added regression test cases that referenced pg_stats. The proposed fix for this is a behavioral change that probably shouldn't get back-patched, and it doesn't seem worth putting a workaround into a back branch. 7cec608b | REL8_3_STABLE8.3.6 | No linked thread | Dec 15, 2008 |
| Committer | Reduce the scaling factor for attstattarget to number-of-lexemes from 100 to 10, to compensate for the recent change in default statistics target. The original number was pulled out of the air anyway :-(, but it was picked in the context of the old default, so holding the default size of the MCELEM array constant seems the best thing. Per discussion. 301194f8 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Dec 15, 2008 |
| Committer | Remove our dependencies on MB_CUR_MAX in favor of believing that pg_database_encoding_max_length() predicts the maximum character length returned by wchar2char(). Per Hiroshi Inoue, MB_CUR_MAX isn't usable on Windows because we allow encoding = UTF8 when the locale says differently; and getting rid of it seems a good idea on general principles because it narrows our dependence on libc's locale API just a little bit more. b4d64a6d | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Dec 15, 2008 |
| CommitterBackported | Restore enforce_generic_type_consistency's pre-8.3 behavior of allowing an actual argument type of ANYARRAY to match an argument declared ANYARRAY, so long as ANYELEMENT etc aren't used. I had overlooked the fact that this is a possible case while fixing bug #3852; but it is possible because pg_statistic contains columns declared ANYARRAY. Per gripe from Corey Horton. a9d5f30b | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Dec 14, 2008 |
| Committer | Increase the default value of default_statistics_target from 10 to 100, and its maximum value from 1000 to 10000. ALTER TABLE SET STATISTICS similarly now allows a value up to 10000. Per discussion. 65e3ea76 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Dec 13, 2008 |
| Committer | Remove pg_plan_queries()'s now-useless needSnapshot parameter. It's useless in 8.3, too, but I'm not back-patching this change since it would break any extension modules that might be calling that function. b69bde77 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Dec 13, 2008 |
| CommitterBackported | Fix failure to ensure that a snapshot is available to datatype input functions when they are invoked by the parser. We had been setting up a snapshot at plan time but really it needs to be done earlier, before parse analysis. Per report from Dmitry Koterov. c98a9237 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+18 more | No linked thread | Dec 13, 2008 |
| Committer | To reduce confusion over whether VACUUM FULL is needed for anti-wraparound vacuuming (it's not), say "database-wide VACUUM" instead of "full-database VACUUM" in the relevant hint messages. Also, document the permissions needed to do this. Per today's discussion. 17dc1736 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Dec 11, 2008 |
| Committer | Tweak the tree descent loop in fsm_search_avail to not look at the right child if it doesn't need to. This saves some miniscule number of cycles, but the ulterior motive is to avoid an optimization bug known to exist in SCO's C compiler (and perhaps others?) 55368223 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Dec 10, 2008 |
| Committer | Add a specific example of parenthesizing when extracting a field of a composite column. Might help cut down on future questions... 5932915f | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Dec 09, 2008 |
| Committer | Teach pgstat_vacuum_stat to not bother scanning pg_proc in the common case where no function stats entries exist. Partial response to Pavel's observation that small VACUUM operations are noticeably slower in CVS HEAD than 8.3. 4e0b63b0 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Dec 08, 2008 |
| Committer | Don't try to optimize EXISTS subqueries with empty FROM-lists: we need to form a join and that case doesn't have anything to join to. (We could probably make it work if we didn't pull up the subquery, but it seems to me that the case isn't worth extra code.) Per report from Greg Stark. 173a6760 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Dec 08, 2008 |
| CommitterBackported | Fix an oversight in the code that makes transitive-equality deductions from outer join clauses. Given, say, ... from a left join b on a.a1 = b.b1 where a.a1 = 42; we'll deduce a clause b.b1 = 42 and then mark the original join clause redundant (we can't remove it completely for reasons I don't feel like squeezing into this log entry). However the original implementation of that wasn't bulletproof, because clause_selectivity() wouldn't honor this_selec if given nonzero varRelid --- which in practice meant that it worked as desired *except* when considering index scan quals. Which resulted in bogus underestimation of the size of the indexscan result for an inner indexscan in an outer join, and consequently a possibly bad choice of indexscan vs. bitmap scan. Fix by introducing an explicit test into clause_selectivity(). Also, to make sure we don't trigger that test in corner cases, change the convention to be that this_selec > 1, not this_selec = 1, means it's been marked redundant. Per trouble report from Scara Maccai. a1feb90e | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+18 more | No linked thread | Dec 01, 2008 |
| CommitterBackported | Ensure that the contents of a holdable cursor don't depend on out-of-line toasted values, since those could get dropped once the cursor's transaction is over. Per bug #4553 from Andrew Gierth. ec543db7 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+19 more | No linked thread | Dec 01, 2008 |
| Committer | Remove the last traces of --temp-port. 3191ab5d | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Dec 01, 2008 |
| Committer | Refactor crosstab() to build and return a tuplestore instead of using value-per-call mode. This should be more efficient in normal usage, but the real problem with the prior coding was that it returned with a SPI call still active. That could cause problems if execution was interleaved with anything else that might use SPI. cf407f16 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Dec 01, 2008 |
| CommitterBackported | Fix dblink and tablefunc to not return with the wrong CurrentMemoryContext. Per buildfarm results. 76cc2fe6 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+18 more | No linked thread | Nov 30, 2008 |
| Committer | Clean up the API for DestReceiver objects by eliminating the assumption that a Portal is a useful and sufficient additional argument for CreateDestReceiver --- it just isn't, in most cases. Instead formalize the approach of passing any needed parameters to the receiver separately. c1f30733 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 30, 2008 |
| Committer | Add a "LIKE = typename" clause to CREATE TYPE for base types. This allows the basic representational details (typlen, typalign, typbyval, typstorage) to be copied from an existing type rather than listed explicitly in the CREATE TYPE command. The immediate reason for this is to provide a simple solution for add-on modules that want to define types represented as int8, float4, or float8: as of 8.4 the appropriate PASSEDBYVALUE setting is platform-specific and so it's hard for a SQL script to know what to do. 3f936aac | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 30, 2008 |
| CommitterBackported | Remove inappropriate memory context switch in shutdown_MultiFuncCall(). This was a thinko introduced in a patch from last February; it results in memory leakage if an SRF is shut down before the actual end of query, because subsequent code will be running in a longer-lived context than it's expecting to be. 0ddede58 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+18 more | No linked thread | Nov 30, 2008 |
| Committer | Fix recently-added array_agg tests to ensure they produce stable results regardless of plan changes. Per intermittent buildfarm failures on "pigeon" and others. 0a2cdbcd | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 29, 2008 |
| Committer | Make sure we give an appropriate user-facing error when attempting to drop a table that is referenced by an open cursor. Fix unstable ecpg regression test result that was produced by this oversight. b651b2a5 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 29, 2008 |
| Committer | Partial fix for fallout from temp-port changes. ecpg still needs more work, but I think this is enough to turn the buildfarm green again. 2a6108ac | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 28, 2008 |
| Committer | Fix an oversight in uninstall_isn.sql: must drop operator families explicitly. 4cee6721 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 28, 2008 |
| Committer | My recent fix for semijoin planning didn't actually work for a semijoin with a RHS that can't be unique-ified --- join_is_legal has to check that before deciding to build a join, else we'll have an unimplementable joinrel. Per report from Greg Stark. 213256cf | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 28, 2008 |
| Committer | Cosmetic cleanups in contrib/isn (doesn't fix the passbyval problem) 5f77b1ac | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 28, 2008 |
| Committer | Back-patch change to make DISCARD ALL release advisory locks. Per discussion. b9e8986d | REL8_3_STABLE8.3.6 | No linked thread | Nov 27, 2008 |
| Committer | Tweak wording of DISCARD ALL description to avoid giving the impression that the presented list of equivalent operations is meant to be the primary definition of what it does. Per comment from Guillaume Smet. e3097396 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 27, 2008 |
| Committer | Fix minor memory leak introduced in recent SQL-functions hacking: the DestReceiver created during postquel_start needs to be destroyed during postquel_end. In a moment of brain fade I had assumed this would be taken care of by FreeQueryDesc, but it's not (and shouldn't be). c2138f3c | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 27, 2008 |
| Committer | Tweak new PQExpBufferBroken macro to suppress warnings from pickier versions of gcc. cbb3e1cd | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 26, 2008 |
| Committer | Let's see if using -c instead of -- style fixes the PGOPTIONS issue. d703de29 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 26, 2008 |
| Committer | Make DISCARD ALL discard advisory locks, too. Marko Kreen 1b26b073 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 26, 2008 |
| Committer | Adjust the behavior of the PQExpBuffer code to make it have well-defined results (ie, an empty "broken" buffer) if memory overrun occurs anywhere along the way to filling the buffer. The previous coding would just silently discard portions of the intended buffer contents, as exhibited in trouble report from Sam Mason. Also, tweak psql's main loop to correctly detect and report such overruns. There's probably much more that should be done in this line, but this is a start. 739259d6 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 26, 2008 |
| CommitterBackported | information_schema.key_column_usage.position_in_unique_constraint was misdocumented as not being implemented. In reality it has worked since the release of 8.2. 8a100964 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+18 more | No linked thread | Nov 25, 2008 |
| Committer | Remove PGINTERVALSTYLE from the set of special environment variables for libpq. As noted by Peter, adding this variable created a risk of unexpected connection failures when talking to older server versions, and since it doesn't do anything you can't do with PGOPTIONS, it doesn't seem really necessary. Removing it does occasion a few extra lines in pg_regress.c, but saving a getenv() call per libpq connection attempt is perhaps worth that anyway. 1304f297 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 25, 2008 |
| Committer | Omit src/port/pipe.c on non-Windows platforms. It's useless and draws complaints about empty object files on some platforms, eg Darwin. 4d1ba044 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 25, 2008 |
| Committer | Teach RequestCheckpoint() to wait and retry a few times if it can't signal the bgwriter immediately. This covers the case where the bgwriter is still starting up, as seen in a recent buildfarm failure. In future it might also assist with clean recovery after a bgwriter termination and restart --- right now the postmaster treats early bgwriter exit as a system crash, but that might not always be so. 6f6a6d8b | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 23, 2008 |
| Committer | Switch the planner over to treating qualifications of a JOIN_SEMI join as though it is an inner rather than outer join type. This essentially means that we don't bother to separate "pushed down" qual conditions from actual join quals at a semijoin plan node; which is okay because the restrictions of SQL syntax make it impossible to have a pushed-down qual that references the inner side of a semijoin. This allows noticeably better optimization of IN/EXISTS cases than we had before, since the equivalence-class machinery can now use those quals. Also fix a couple of other mistakes that had essentially disabled the ability to unique-ify the inner relation and then join it to just a subset of the left-hand relations. An example case using the regression database is 8309d006 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 22, 2008 |
| Committer | Minor copy-editing. 86422cbb | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 21, 2008 |
| Committer | Note that the example aggregate array_accum is comparable to the now built-in array_agg. Per suggestion from Robert Haas. 3d7ac0d0 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 20, 2008 |
| Committer | Fix breakage of bitmap scan plan creation for special index operators such as LIKE. I oversimplified this code when removing support for plan-time determination of index operator lossiness back in April --- I had thought create_bitmap_subplan could stop returning two separate lists of qual conditions, but it still must so that we can treat special operators correctly in create_bitmap_scan_plan. Per report from Rushabh Lathia. 176961c1 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 20, 2008 |
| Committer | Add auto-explain contrib module for automatic logging of the plans of slow-running queries. e125e28e | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 19, 2008 |
| Committer | Fix define_custom_variable so that SUSET custom variables behave somewhat reasonably. It's not perfect, but it beats the kluge proposed in the auto-explain patch ... 31ec957a | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 19, 2008 |
| Committer | Some infrastructure changes for the upcoming auto-explain contrib module: cd35e9d7 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 19, 2008 |
| Committer | Modify UPDATE/DELETE WHERE CURRENT OF to use the FOR UPDATE infrastructure to locate the target row, if the cursor was declared with FOR UPDATE or FOR SHARE. This approach is more flexible and reliable than digging through the plan tree; for instance it can cope with join cursors. But we still provide the old code for use with non-FOR-UPDATE cursors. Per gripe from Robert Haas. 18004101 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 16, 2008 |
| Committer | Add missing dependencies to preproc.y build rule 30f272a7 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 15, 2008 |
| Committer | Make SELECT FOR UPDATE/SHARE work on inheritance trees, by having the plan return the tableoid as well as the ctid for any FOR UPDATE targets that have child tables. All child tables are listed in the ExecRowMark list, but the executor just skips the ones that didn't produce the current row. 0656ed3d | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 15, 2008 |
| Committer | Document a gotcha that happens on Windows when using libpq's new event procedure support: it's possible to get confused because exported procedures have two different addresses. Per Andrew Chernow. 07c179a8 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 14, 2008 |
| Committer | One more hack to see if we can get the cygwin machines building again. This continues the saga of trying to get PGDLLIMPORT to work in pg_crc.h in both backend and frontend environments. 5c9c08d2 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 14, 2008 |
| Committer | Second try at fixing DLLIMPORT problem for pg_crc.h on Cygwin. 62533d34 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 14, 2008 |
| Committer | Reduce contrib/intagg to a thin wrapper around the new core functions array_agg() and unnest(). We could drop it entirely in the future, but let's keep it for a release or two as a compatibility assist. 32cc9e55 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 14, 2008 |
| Committer | In CREATE AGGREGATE, allow the transition datatype to be "internal", but only if the user is superuser. This makes available to extension modules the same sort of trick being practiced by array_agg(). The reason for the superuser restriction is that you could crash the system by connecting up an incompatible pair of internal-using functions as an aggregate. It shouldn't interfere with any legitimate use, since you'd have to be superuser to create the internal-using transition and final functions anyway. 9e0247ab | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 14, 2008 |
| Committer | ecpg's preproc.y is now generated as needed, so remove from CVS. fbaa172d | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 14, 2008 |
| Committer | Make CREATE CONVERSION verify that a putative encoding conversion function returns VOID. This is the last of the easy fixes I recommended in 11870.1218838360@sss.pgh.pa.us --- the others got done awhile ago but I forgot about this one. 4f38b9a8 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 14, 2008 |
| Committer | Improve comment about when to clean generated files. 1a0bbc29 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 14, 2008 |
| Committer | Actually, instead of whining about how type internal might not safely store a pointer, why don't we just fix that. Every known use of "internal" really means a pointer anyway. 81e11f2d | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 14, 2008 |
| Committer | Implement the basic form of UNNEST, ie unnest(anyarray) returns setof anyelement. This lacks the WITH ORDINALITY option, as well as the multiple input arrays option added in the most recent SQL specs. But it's still a pretty useful subset of the spec's functionality, and it is enough to allow obsoleting contrib/intagg. c889ebce | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 14, 2008 |
| Committer | Minor code clarity improvements in array_agg functions, and add a comment about how this is playing fast and loose with the type system. 5b9453bc | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 14, 2008 |
| Committer | Marginal editorial improvements for array_agg patch documentation. c23b6fa7 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 13, 2008 |
| Committer | Suppress leap-second-aware timezones in the output of pg_tzenumerate_next, and thereby in the pg_timezone_names view. Although we allow such zones to be used in certain limited contexts like AT TIME ZONE, we don't allow them in SET TIME ZONE, and bug #4528 shows that they're more likely to confuse users than do anything useful. So hide 'em. (Note that we don't even generate these zones when installing our own timezone database. But they are likely to be present when using a system-provided database.) 312d5179 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 13, 2008 |
| CommitterBackported | Prevent synchronous scan during GIN index build, because GIN is optimized for inserting tuples in increasing TID order. It's not clear whether this fully explains Ivan Sergio Borgonovo's complaint, but simple testing confirms that a scan that doesn't start at block 0 can slow GIN build by a factor of three or four. 10e3acb8 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Nov 13, 2008 |
| Committer | PGDLLIMPORT-ize the global variables referenced in pg_crc.h. I think this will fix current mingw buildfarm failures for pg_trgm. 69a0e2f7 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 13, 2008 |
| Committer | Arrange to cache the results of looking up a btree predicate proof comparison operator. The result depends only on the two input operators and the proof direction (imply or refute), so it's easy to cache. This provides a very large savings in cases such as Sergey Konoplev's long NOT-IN-list example, where predtest spends all its time repeatedly figuring out that the same pair of operators cannot be used to prove anything. (But of course the O(N^2) behavior still catches up with you eventually.) I'm not convinced it buys a whole lot when constraint_exclusion isn't turned on, but it's not a lot of added code so we might as well cache all the time. e7d8bfb9 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 13, 2008 |
| CommitterBackported | In predtest.c, install a limit on the number of branches we will process in AND, OR, or equivalent clauses: if there are too many (more than 100) just exit without proving anything. This ensures that we don't spend O(N^2) time trying (and most likely failing) to prove anything about very long IN lists and similar cases. fdf8d062 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+19 more | No linked thread | Nov 12, 2008 |
| Committer | If we're going to use a SQL function for this, at least make it schema-proof. e4ffd143 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 12, 2008 |
| Committer | Clean up the ancient decision to show only two fractional-seconds digits in "postgres_verbose" intervalstyle, and the equally arbitrary decision to show at least two fractional-seconds digits in most other datetime display styles. This results in some minor changes in the expected regression test outputs. d1ab3eb7 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 12, 2008 |
| Committer | Ensure that the phrels sets of PlaceHolderVars appearing in an AppendRelInfo's translated_vars list get updated when pulling up an appendrel member. It's not clear that this really matters at present, since relatively little gets done with the outputs of an appendrel child relation; but it probably will come back to bite us sometime if we leave them with the wrong values. 0d7099d2 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 11, 2008 |
| CommitterBackported | Get rid of adjust_appendrel_attr_needed(), which has been broken ever since we extended the appendrel mechanism to support UNION ALL optimization. The reason nobody noticed was that we are not actually using attr_needed data for appendrel children; hence it seems more reasonable to rip it out than fix it. Back-patch to 8.2 because an Assert failure is possible in corner cases. Per examination of an example from Jim Nasby. 04366799 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+18 more | No linked thread | Nov 11, 2008 |
| Committer | Fix sloppy omission of now-required #include's. cad3a26a | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 11, 2008 |
| Committer | Add an explicit caution about how to use pg_do_encoding_conversion with non-null-terminated input. Per discussion with ITAGAKI Takahiro. 3be24485 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 11, 2008 |
| Committer | Add support for input and output of interval values formatted per ISO 8601; specifically, we can input either the "format with designators" or the "alternative format", and we can output the former when IntervalStyle is set to iso_8601. a4917bef | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 11, 2008 |
| CommitterBackported | Fix bugs in sqlchar_to_unicode and unicode_to_sqlchar: both were measuring the length of a UTF8 character with pg_mblen (wrong if DB encoding isn't UTF8), and the latter was blithely assuming that a static buffer would somehow revert to all zeroes for each use. 5e11e73d | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Nov 10, 2008 |
| Committer | pg_do_encoding_conversion cannot return NULL (at least not unless the input is NULL), so remove some useless tests for the case. 2b74d45c | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 10, 2008 |
| CommitterBackported | Fix old bug in contrib/sslinfo: X509_NAME_to_text freed the BIO_s_mem buffer it was using too soon. In a situation where pg_do_encoding_conversion is a no-op, this led to garbage data returned. d141e749 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+18 more | No linked thread | Nov 10, 2008 |
| Committer | Make relhasrules and relhastriggers work like relhasindex, namely we let VACUUM reset them to false rather than trying to clean 'em up during DROP. c5451c22 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 10, 2008 |
| Committer | Replace pg_class.reltriggers with relhastriggers, which is just a boolean hint ("there might be triggers") rather than an exact count. This is necessary catalog infrastructure for the upcoming patch to reduce the strength of locking needed for trigger addition/removal. Split out and committed separately for ease of reviewing/testing. e4718f2c | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 09, 2008 |
| Committer | Add a startup check that pg_xlog and pg_xlog/archive_status exist. If the latter doesn't exist, automatically recreate it. (We don't do this for pg_xlog, though, per discussion.) 1d577f5e | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 09, 2008 |
| Committer | Add some documentation about handling of fractions in interval input. (It's always worked like this, but we never documented it before.) dbf57d31 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 09, 2008 |
| Committer | Add a new GUC variable called "IntervalStyle" that decouples interval output from DateStyle, and create a new interval style that produces output matching the SQL standard (at least for interval values that fall within the standard's restrictions). IntervalStyle is also used to resolve the conflict between the standard and traditional Postgres rules for interpreting negative interval input. df7641e2 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 09, 2008 |
| Committer | Fix recently added code for SQL years-months interval syntax so that it behaves correctly for a leading minus sign, zero year value, and nonzero month value. Per discussion with Ron Mayer. eec501c4 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 08, 2008 |
| Committer | Add some more citext test cases, per David Wheeler. Also remove the citext-to-and-from-xml tests, since those caused variation between installations with or without libxml without really proving much. Instead repurpose citext_1.out as the expected results in glibc en_US (and probably other) locales. 13fdd0e4 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 07, 2008 |
| Committer | Improve documentation of pg_typeof, per gripe from David Wheeler. 399ad77c | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 07, 2008 |
| Committer | Implement ALTER DATABASE SET TABLESPACE to move a whole database (or at least as much of it as lives in its default tablespace) to a new tablespace. 6517f377 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 07, 2008 |
| Committer | Improve bulk-insert performance by keeping the current target buffer pinned (but not locked, as that would risk deadlocks). Also, make it work in a small ring of buffers to avoid having bulk inserts trash the whole buffer arena. 85e2cedf | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 06, 2008 |
| Committer | Improve psql's \dC command to take a pattern parameter. Casts are shown if their source or target types match the pattern (using the same definition of "match" as \dT does). Per recent discussion. cdc197cf | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 06, 2008 |
| Committer | This maneuver really requires a comment ... 53b4e469 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 05, 2008 |
| Committer | Rename several aliases for PLpgSQL_datum.dno to also be called dno. Hopefully this will forestall future confusion about their roles. e0dc7d02 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 05, 2008 |
| Committer | Fix bug introduced in recent patch to make plpython cope with OUT arguments: the proc->argnames array has to be initialized to zero immediately on creation, since the error recovery path will try to free its elements. 70b6e99e | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 04, 2008 |
| Committer | Disallow LOCK TABLE outside a transaction block (or function), since this case almost certainly represents user error. Per a gripe from Sebastian Böhm and subsequent discussion. 31b15fe8 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 04, 2008 |
| Committer | Fix compiler warnings (including a seriously bogus elog call); minor code beautification. 99e09962 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 04, 2008 |
| Committer | Use bool for a boolean flag. 1a2b41f4 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 03, 2008 |
| Committer | Dept of second thoughts: seems it'd be safer if pg_typeof is marked stable not immutable, since it depends on system catalog contents. 48cbe591 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 03, 2008 |
| Committer | Clean up the messy semantics (not to mention inefficiency) of PageGetTempPage by splitting it into three functions with better-defined behaviors. b4eae023 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 03, 2008 |
| Committer | Fix two error-recovery bugs in describeOneTableDetails(), and make the code to dump sequence values cope with sequences outside the search path and/or having names that need quoting. No back-patch needed because these are new problems in 8.4. 13fc2e4d | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 03, 2008 |
| Committer | Add pg_typeof() function. b8fab241 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 03, 2008 |
| Committer | Change the pgstat logic so that the stats collector writes the stats file only upon requests from backends, rather than on a fixed 500msec cycle. (There's still throttling logic to ensure it writes no more often than once per 500msec, though.) This should result in a significant reduction in stats file write traffic in typical scenarios where the stats are demanded only infrequently. 3c2313f4 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 03, 2008 |
| Committer | Remove the last vestiges of the MAKE_PTR/MAKE_OFFSET mechanism. We haven't allowed different processes to have different addresses for the shmem segment in quite a long time, but there were still a few places left that used the old coding convention. Clean them up to reduce confusion and improve the compiler's ability to detect pointer type mismatches. d7112cfa | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 02, 2008 |
| Committer | Remove all uses of the deprecated functions heap_formtuple, heap_modifytuple, and heap_deformtuple in favor of the newer functions heap_form_tuple et al (which do the same things but use bool control flags instead of arbitrary char values). Eliminate the former duplicate coding of these functions, reducing the deprecated functions to mere wrappers around the newer ones. We can't get rid of them entirely because add-on modules probably still contain many instances of the old coding style. 902d1cb3 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Nov 02, 2008 |
| Committer | Simplify ExecutorRun's API and save some trivial number of cycles by having it just return void instead of sometimes returning a TupleTableSlot. SQL functions don't need that anymore, and noplace else does either. Eliminating the return value also means one less hassle for the ExecutorRun hook functions that will be supported beginning in 8.4. df5a9961 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 31, 2008 |
| Committer | Allow SQL-language functions to return the output of an INSERT/UPDATE/DELETE RETURNING clause, not just a SELECT as formerly. 9b46abb7 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 31, 2008 |
| CommitterBackported | Update back-branch release notes. d1e38488 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+21 more | No linked thread | Oct 30, 2008 |
| CommitterBackported | Update time zone data files to tzdata release 2008i (DST law changes in Argentina, Brazil, Mauritius, Syria). c8a18a28 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+20 more | No linked thread | Oct 30, 2008 |
| CommitterBackported | Fix recoveryLastXTime logic so that it actually does what one would expect. Per gripe from Kevin Grittner. Backpatch to 8.3, where the bug was introduced. 2314baef | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Oct 30, 2008 |
| Committer | Be more tense about not creating tuplestores with randomAccess = true unless backwards scan could actually happen. In particular, pass a flag to materialize-mode SRFs that tells them whether they need to require random access. In passing, also suppress unneeded backward-scan overhead for a Portal's holdStore tuplestore. Per my proposal about reducing I/O costs for tuplestores. 05bba3d1 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 29, 2008 |
| Committer | Extend ExecMakeFunctionResult() to support set-returning functions that return via a tuplestore instead of value-per-call. Refactor a few things to reduce ensuing code duplication with nodeFunctionscan.c. This represents the reasonably noncontroversial part of my proposed patch to switch SQL functions over to returning tuplestores. For the moment, SQL functions still do things the old way. However, this change enables PL SRFs to be called in targetlists (observe changes in plperl regression results). e3e3d2a7 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 28, 2008 |
| Committer | Change WorkTableScan to not support backward scan. The apparent support didn't actually work, because nodeRecursiveunion.c creates the underlying tuplestore with backward scan disabled; which is a decision that we shouldn't reverse because of performance cost. We could imagine adding signaling from WorkTableScan to RecursiveUnion about whether backward scan is needed ... but in practice it'd be a waste of effort, because there simply isn't any current or plausible future scenario where WorkTableScan would be called on to scan backward. So just dike out the code that claims to support it. a80a1224 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 28, 2008 |
| Committer | Arrange to squeeze out the MINIMAL_TUPLE_PADDING in the tuple representation written to temp files by tuplesort.c and tuplestore.c. This saves 2 bytes per row for 32-bit machines, and 6 bytes per row for 64-bit machines, which seems worth the slight additional uglification of the tuple read/write routines. d26bf23f | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 28, 2008 |
| CommitterBackported | Install a more robust solution for the problem of infinite error-processing recursion when we are unable to convert a localized error message to the client's encoding. We've been over this ground before, but as reported by Ibrar Ahmed, it still didn't work in the case of conversion failures for the conversion-failure message itself :-(. Fix by installing a "circuit breaker" that disables attempts to localize this message once we get into recursion trouble. b0169bb1 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+21 more | No linked thread | Oct 27, 2008 |
| CommitterBackported | Better solution to the IN-list issue: instead of having an arbitrary cutoff, treat Var and non-Var IN-list items differently. Only non-Var items are candidates to go into an ANY(ARRAY) construct --- we put all Vars as separate OR conditions on the grounds that that leaves more scope for optimization. Per suggestion from Robert Haas. 0aed62fe | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+18 more | No linked thread | Oct 26, 2008 |
| Committer | Be a little smarter about qual handling for semi-joins: a qual that mentions only the outer side can be pushed down rather than having to be evaluated at the join. aa0fb530 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 25, 2008 |
| CommitterBackported | Add a heuristic to transformAExprIn() to make it prefer expanding "x IN (list)" into an OR of equality comparisons, rather than x = ANY(ARRAY[...]), when there are Vars in the right-hand side. This avoids a performance regression compared to pre-8.2 releases, in cases where the OR form can be optimized into scans of multiple indexes. Limit the possible downside by preferring this form only when the list isn't very long (I set the cutoff at 32 elements, which is a bit arbitrary but in the right ballpark). Per discussion with Jim Nasby. ddbe8dca | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+18 more | No linked thread | Oct 25, 2008 |
| CommitterBackported | Fix an old bug in after-trigger handling: AfterTriggerEndQuery took the address of afterTriggers->query_stack[afterTriggers->query_depth] and hung onto it through all its firings of triggers. However, if a trigger causes sufficiently many nested query executions, query_stack will get repalloc'd bigger, leaving AfterTriggerEndQuery --- and hence afterTriggerInvokeEvents --- using a stale pointer. d4a1e5b0 | REL8_3_STABLE8.3.5REL8_2_STABLE8.2.11REL8_1_STABLE8.1.15REL8_0_STABLE8.0.19 | No linked thread | Oct 25, 2008 |
| Committer | Reduce the memory footprint of large pending-trigger-event lists, as per my recent proposal. In typical cases, we now need 12 bytes per insert or delete event and 16 bytes per update event; previously we needed 40 bytes per event on 32-bit hardware and 80 bytes per event on 64-bit hardware. Even in the worst case usage pattern with a large number of distinct triggers being fired in one query, usage is at most 32 bytes per event. It seems to be a bit faster than the old code as well, due to reduction of palloc overhead. 312b1a98 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 24, 2008 |
| Committer | Fix an oversight in two different recent patches: nodes that support SRFs in their targetlists had better reset ps_TupFromTlist during ReScan calls. There's no need to back-patch here since nodeAgg and nodeGroup didn't even pretend to support SRFs in prior releases. 7028c135 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 23, 2008 |
| Committer | Remove useless ps_OuterTupleSlot field from PlanState. I suppose this was used long ago, but in the current code the ecxt_outertuple field of ExprContext is doing all the work. Spotted by Ran Tang. d5789018 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 23, 2008 |
| Committer | When estimating without benefit of MCV lists (suggesting that one or both inputs is unique or nearly so), make eqjoinsel() clamp the ndistinct estimates to be not more than the estimated number of rows coming from the input relations. This allows the estimate to change in response to the selectivity of restriction conditions on the inputs. 7f3eba30 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 23, 2008 |
| Committer | Dept of better ideas: refrain from creating the planner's placeholder_list until vars are distributed to rels during query_planner() startup. We don't really need it before that, and not building it early has some advantages. First, we don't need to put it through the various preprocessing steps, which saves some cycles and eliminates the need for a number of routines to support PlaceHolderInfo nodes at all. Second, this means one less unused plan for any sub-SELECT appearing in a placeholder's expression, since we don't build placeholder_list until after sublink expansion is complete. 31468d05 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 22, 2008 |
| Committer | Add a concept of "placeholder" variables to the planner. These are variables that represent some expression that we desire to compute below the top level of the plan, and then let that value "bubble up" as though it were a plain Var (ie, a column value). e6ae3b5d | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 21, 2008 |
| Committer | Fix broken SQL features data, per buildfarm results. c6d05f81 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 18, 2008 |
| Committer | Remove useless mark/restore support in hash index AM, per discussion. (I'm leaving GiST/GIN cleanup to Teodor.) af59a065 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 17, 2008 |
| Committer | Add a new column to pg_am to specify whether an index AM supports backward scanning; GiST and GIN do not, and it seems like too much trouble to make them do so. By teaching ExecSupportsBackwardScan() about this restriction, we ensure that the planner will protect a scroll cursor from the problem by adding a Materialize node. e4fb8ff0 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 17, 2008 |
| Committer | Salvage a little bit of work from a failed patch: simplify and speed up set_rel_width(). The code had been catering for the possibility of different varnos in the relation targetlist, but this is impossible for a base relation (and if it were possible, putting all the widths in the same RelOptInfo would be wrong anyway). 2a64931c | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 17, 2008 |
| Committer | Improve comments about RelOptInfo.reltargetlist. ab164850 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 17, 2008 |
| Committer | Reduce chatter from _dosmaperr() when used in FRONTEND code. ITAGAKI Takahiro 0e3d5ad4 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 16, 2008 |
| CommitterBackported | Fix SPI_getvalue and SPI_getbinval to range-check the given attribute number according to the TupleDesc's natts, not the number of physical columns in the tuple. The previous coding would do the wrong thing in cases where natts is different from the tuple's column count: either incorrectly report error when it should just treat the column as null, or actually crash due to indexing off the end of the TupleDesc's attribute array. (The second case is probably not possible in modern PG versions, due to more careful handling of inheritance cases than we once had. But it's still a clear lack of robustness here.) bcf188a2 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+21 more | No linked thread | Oct 16, 2008 |
| Committer | Make the system-attributes loop in AddNewAttributeTuples depend on lengthof(SysAtt) not FirstLowInvalidHeapAttributeNumber, for consistency with the other uses of the SysAtt array, and to make it clearer that it doesn't walk off the end of that array. ce0fb501 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 14, 2008 |
| Committer | Add a defense to prevent storing pseudo-type data into index columns. Formerly, the lack of any opclasses that could accept such data was enough of a defense, but now with a "record" opclass we need to check more carefully. (You can still use that opclass for an index, but you have to store a named composite type not an anonymous one.) 5b5ee14a | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 14, 2008 |
| Committer | Update citext expected output for recent change in error message location pointers. This is only a whitespace change, which ought to be ignored by regression testing, but for some reason buildfarm member spoonbill doesn't like it. 2f0d5282 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 14, 2008 |
| Committer | Extend the date type to support infinity and -infinity, analogously to the timestamp types. Turns out this doesn't even reduce the available range of dates, since the restriction to dates that work for Julian-date arithmetic is much tighter than the int32 range anyway. Per a longstanding TODO item. a303e4dc | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 14, 2008 |
| Committer | Fix EncodeSpecialTimestamp to throw error on unrecognized input, rather than returning a failure code that none of its callers bothered to check for. 791359fe | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 14, 2008 |
| Committer | Add docs and regression test about sorting the output of a recursive query in depth-first search order. Upon close reading of SQL:2008, it seems that the spec's SEARCH DEPTH FIRST and SEARCH BREADTH FIRST options do not actually guarantee any particular result order: what they do is provide a constructed column that the user can then sort on in the outer query. So this is actually just as much functionality ... 06224652 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 14, 2008 |
| Committer | Eliminate unnecessary array[] decoration in examples of recursive cycle detection. 1f238e56 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 14, 2008 |
| Committer | Implement comparison of generic records (composite types), and invent a pseudo-type record[] to represent arrays of possibly-anonymous composite types. Since composite datums carry their own type identification, no extra knowledge is needed at the array level. e3b01174 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 13, 2008 |
| Committer | Update oidjoins test to match CVS HEAD. d6dfa1e6 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 13, 2008 |
| Committer | Fix bogus comment emitted by make_oidjoins_check, per Greg Stark. 556dfb5e | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 13, 2008 |
| Committer | Fix corner case wherein a WorkTableScan node could get initialized before the RecursiveUnion to which it refers. It turns out that we can just postpone the relevant initialization steps until the first exec call for the node, by which time the ancestor node must surely be initialized. Per report from Greg Stark. 0a7abcd4 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 13, 2008 |
| CommitterBackported | Fix COPY documentation to not imply that HEADER can be used outside CSV mode. Per gripe from Bill Thoen. 74fd3d1b | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+19 more | No linked thread | Oct 10, 2008 |
| Committer | Fix small query-lifespan memory leak introduced by 8.4 change in index AM API for bitmap index scans. Per report and test case from Kevin Grittner. 30584cda | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 10, 2008 |
| CommitterBackported | Fix omission of DiscardStmt in GetCommandLogLevel, per report from Hubert Depesz Lubaczewski. In HEAD, also move a couple of other cases to make the code ordering match up with ProcessUtility. 8fc4197f | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Oct 10, 2008 |
| Committer | Un-break non-NLS builds. 56d56412 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 09, 2008 |
| Committer | Improve the recently-added code for inlining set-returning functions so that it can handle functions returning setof record. The case was left undone originally, but it turns out to be simple to fix. 76e66024 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 09, 2008 |
| CommitterBackported | Fix overly tense optimization of PLpgSQL_func_hashkey: we must represent the isTrigger state explicitly, not rely on nonzero-ness of trigrelOid to indicate trigger-hood, because trigrelOid will be left zero when compiling for validation. The (useless) function hash entry built by the validator was able to match an ordinary non-trigger call later in the same session, thereby bypassing the check that is supposed to prevent such a call. Per report from Alvaro. b1553103 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+20 more | No linked thread | Oct 09, 2008 |
| CommitterBackported | Fix crash in bytea-to-XML mapping when the source value is toasted. Report and fix by Michael McMaster. Some minor code beautification by me, also avoid memory leaks in the special-case paths. 1b0f58a9 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Oct 09, 2008 |
| Committer | Modify the parser's error reporting to include a specific hint for the case of referencing a WITH item that's not yet in scope according to the SQL spec's semantics. This seems to be an easy error to make, and the bare "relation doesn't exist" message doesn't lead one's mind in the correct direction to fix it. 34372863 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 08, 2008 |
| Committer | Improve some of the comments in fsmpage.c. dd4c165b | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 07, 2008 |
| Committer | Extend CTE patch to support recursive UNION (ie, without ALL). The implementation uses an in-memory hash table, so it will poop out for very large recursive results ... but the performance characteristics of a sort-based implementation would be pretty unpleasant too. 0d115dde | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 07, 2008 |
| Committer | Improve parser error location for cases where an INSERT or UPDATE command supplies an expression that can't be coerced to the target column type. The code previously attempted to point at the target column name, which doesn't work at all in an INSERT with omitted column name list, and is also not remarkably helpful when the problem is buried somewhere in a long INSERT-multi-VALUES command. Make it point at the failed expression instead. 078aaf79 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 07, 2008 |
| Committer | Fix oversight in recent patch to support multiple read positions in tuplestore: in READFILE state tuplestore_select_read_pointer must save the current file seek position in the read pointer being deactivated. 34f89cb4 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 07, 2008 |
| Committer | Fix up ruleutils.c for CTE features. The main problem was that get_name_for_var_field didn't have enough context to interpret a reference to a CTE query's output. Fixing this requires separate hacks for the regular deparse case (pg_get_ruledef) and for the EXPLAIN case, since the available context information is quite different. It's pretty nearly parallel to the existing code for SUBQUERY RTEs, though. Also, add code to make sure we qualify a relation name that matches a CTE name; else the CTE will mistakenly capture the reference when reloading the rule. 742fd06d | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 06, 2008 |
| Committer | When expanding a whole-row Var into a RowExpr during ResolveNew(), attach the column alias names of the RTE referenced by the Var to the RowExpr. This is needed to allow ruleutils.c to correctly deparse FieldSelect nodes referencing such a construct. Per my recent bug report. bf461538 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 06, 2008 |
| Committer | Fix GetCTEForRTE() to deal with the possibility that the RTE it's given came from a query level above the current ParseState. e64bb65a | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 06, 2008 |
| Committer | Editorial improvements to description of pg_settings view. e59ad5fb | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 06, 2008 |
| Committer | Random speculation about the reason for PPC64 buildfarm failures: maybe isalnum is returning a value with the low-order byte all zero? 557faa4f | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 06, 2008 |
| Committer | Experimental patch to see if it fixes MSVC builds ... dad4215d | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 06, 2008 |
| Committer | Fix the implicit-RTE code to be able to handle implicit RTEs for CTEs, as well as regular tables. Per discussion, this seems necessary to meet the principle of least astonishment. 0ff384f0 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 06, 2008 |
| Committer | Fix a missed case in int8-exp-three-digits.out, per buildfarm results. af88c9bb | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 06, 2008 |
| Committer | Tweak the overflow checks in integer division functions to complain if the machine produces zero (rather than the more usual minimum-possible-integer) for the only possible overflow case. This has been seen to occur for at least some word widths on some hardware, and it's cheap enough to check for everywhere. Per Peter's analysis of buildfarm reports. 8acfc759 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 05, 2008 |
| Committer | Improve behavior of WITH RECURSIVE with an untyped literal in the non-recursive term. Per an example from Dickson S. Guedes. 1e4b0384 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 05, 2008 |
| Committer | Fix markTargetListOrigin() to not fail on a simple-Var reference to a recursive CTE that we're still in progress of analyzing. Add a similar guard to the similar code in expandRecordVariable(), and tweak regression tests to cover this case. Per report from Dickson S. Guedes. 08142504 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 05, 2008 |
| Committer | Implement SQL-standard WITH clauses, including WITH RECURSIVE. 44d5be0e | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 04, 2008 |
| Committer | Add a note about how to check for bare < and & in SGML docs, before the knowledge disappears again. d5d552fa | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 04, 2008 |
| CommitterBackported | Fix improper display of fractional seconds in interval values when using --enable-integer-datetimes and a non-ISO datestyle. 607b3985 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+21 more | No linked thread | Oct 02, 2008 |
| Committer | Partial fix for contrib vpath breakage. 2793af3c | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 02, 2008 |
| Committer | Improve tuplestore.c to support multiple concurrent read positions. This facility replaces the former mark/restore support but is otherwise upward-compatible with previous uses. It's expected to be needed for single evaluation of CTEs and also for window functions, so I'm committing it separately instead of waiting for either one of those patches to be finished. Per discussion with Greg Stark and Hitoshi Harada. dad4cb62 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 01, 2008 |
| Committer | Suppress an uninitialized-variable warning (not all versions of gcc complain here, but some do) 68827a7a | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Oct 01, 2008 |
| Committer | Fix compiler warning (unportable sprintf usage) 6ca1b1cd | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 30, 2008 |
| CommitterBackported | Recent patches to pg_ctl broke "pg_ctl restart" for the case where no command-line options had been given to the postmaster; and just plain broke it altogether in 8.1 and 8.0. Per report from KaiGai Kohei. 57a20910 | REL8_3_STABLE8.3.5REL8_2_STABLE8.2.11REL8_1_STABLE8.1.15REL8_0_STABLE8.0.19 | No linked thread | Sep 30, 2008 |
| Committer | Fix misspelled comment d1af2694 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 30, 2008 |
| Committer | Dept of second thoughts: let's make sure that get_index_stats_hook is only applied to expression indexes, not to plain relations. The original coding in btcostestimate conflated the two cases, but it's not hard to use get_relation_stats_hook instead when we're looking to the underlying relation. 2dbc0ca9 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 28, 2008 |
| Committer | Add hooks to let plugins override the planner's lookups in pg_statistic. Simon Riggs, with some editorialization by me. 7b7df9f0 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 28, 2008 |
| Committer | Fix pointer-advancement bugs in MS and US cases of new to_timestamp() code. Alex Hunsaker b1e929f2 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 26, 2008 |
| Committer | Make LIKE throw an error if the escape character is at the end of the pattern (ie, has nothing to quote), rather than silently ignoring the character as has been our historical behavior. This is required by SQL spec and should help reduce the sort of user confusion seen in bug #4436. Per discussion. 3d8fd757 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 26, 2008 |
| Committer | Establish the rule that array types should have the same typdelim as their element types. Since the backend doesn't actually pay attention to the array type's delimiter, this has no functional effect, but it seems better for the catalog entries to be consistent. Per gripe from Greg Mullane and subsequent discussion. e8e746de | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 25, 2008 |
| CommitterBackported | Fix more problems with rewriter failing to set Query.hasSubLinks when inserting a SubLink expression into a rule query. We missed cases where the original query contained a sub-SELECT in a function in FROM, a multi-row VALUES list, or a RETURNING list. Per bug #4434 from Dean Rasheed and subsequent investigation. 96a25d39 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+19 more | No linked thread | Sep 24, 2008 |
| Committer | Fix unportable syntax used in recent patch. Per results from buildfarm member 'bear'. 739c614f | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 24, 2008 |
| Committer | Get rid of pgpass_from_client tracking inside libpq --- given the conclusion that presence of the password in the conninfo string must be checked *before* risking a connection attempt, there is no point in checking it afterwards. This makes the specification of PQconnectionUsedPassword() a bit simpler and perhaps more generally useful, too. c52aab55 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 22, 2008 |
| Committer | Fix dblink_connect() so that it verifies that a password is supplied in the conninfo string *before* trying to connect to the remote server, not after. As pointed out by Marko Kreen, in certain not-very-plausible situations this could result in sending a password from the postgres user's .pgpass file, or other places that non-superusers shouldn't have access to, to an untrustworthy remote server. The cleanest fix seems to be to expose libpq's conninfo-string-parsing code so that dblink can check for a password option without duplicating the parsing logic. cae7ad90 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 22, 2008 |
| Committer | Simplify the definitions of a couple of system views by using SELECT * instead of listing all the columns returned by the underlying function. 579c025e | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 21, 2008 |
| Committer | Add a PQfireResultCreateEvents function to allow applications to mimic the sequence of operations that libpq goes through while creating a PGresult. Also, remove ill-considered "const" decoration on parameters passed to event procedures. 3290e618 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 19, 2008 |
| Committer | Create a selectivity estimation function for the text search @@ operator. 4e57668d | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 19, 2008 |
| Committer | Improve the recently-added libpq events code to provide more consistent guarantees about whether event procedures will receive DESTROY events. They no longer need to defend themselves against getting a DESTROY without a successful prior CREATE. e2b7d0c6 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 19, 2008 |
| Committer | Preliminary release notes for upcoming back branch releases. 9fe79c39 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 17, 2008 |
| CommitterBackported | Update time zone data files to tzdata release 2008f (DST law changes in Argentina, Bahamas, Brazil, Mauritius, Morocco, Pakistan, Palestine, Paraguay). fd84eb5e | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+20 more | No linked thread | Sep 17, 2008 |
| Committer | Allow ShowBufferUsage() to report the number of reads/writes that have occurred to temporary files. This replaces the unused NDirectFileRead/NDirectFileWrite counters. 35c2a3c3 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 17, 2008 |
| Committer | Add an "events" system to libpq, whereby applications can get callbacks that enable them to manage private data associated with PGconns and PGresults. 32f159cc | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 17, 2008 |
| Committer | Clean up a couple of weird corner cases in interval parsing: make -yyyy-mm be interpreted as expected (the sign should affect months too), and get rid of hard-wired assumption that unmarked signed values must be hours (if integers) or seconds (if floats). The former was just a bug in my previous patch, while the latter may have made sense at one time but seems illogical now that we support determination of the units from typmod information. Ron Mayer and myself. b73c0c2a | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 16, 2008 |
| CommitterBackported | Widen the nLocks counts in local lock tables from int to int64. This forestalls potential overflow when the same table (or other object, but usually tables) is accessed by very many successive queries within a single transaction. Per report from Michael Milligan. 30df79a7 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+20 more | No linked thread | Sep 16, 2008 |
| CommitterBackported | Fix multiple memory leaks in xml_out(). Per report from Matt Magoffin. 8948ee37 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Sep 16, 2008 |
| CommitterBackported | Fix caching of foreign-key-checking queries so that when a replan is needed, we regenerate the SQL query text not merely the plan derived from it. This is needed to handle contingencies such as renaming of a table or column used in an FK. Pre-8.3, such cases worked despite the lack of replanning (because the cached plan needn't actually change), so this is a regression. Per bug #4417 from Benjamin Bihler. 1cd93560 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Sep 15, 2008 |
| Committer | Change hash indexes to store only the hash code rather than the whole indexed value. This means that hash index lookups are always lossy and have to be rechecked when the heap is visited; however, the gain in index compactness outweighs this when the indexed values are wide. Also, we only need to perform datatype comparisons when the hash codes match exactly, rather than for every entry in the hash bucket; so it could also win for datatypes that have expensive comparison functions. A small additional win is gained by keeping hash index pages sorted by hash code and using binary search to reduce the number of index tuples we have to look at. 4adc2f72 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 15, 2008 |
| Committer | Update citext's documentation to match the recently-applied patch, per David Wheeler. ffea8fd3 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 12, 2008 |
| CommitterBackported | Skip opfamily check in eclass_matches_any_index() when the index isn't a btree. We can't easily tell whether clauses generated from the equivalence class could be used with such an index, so just assume that they might be. This bit of over-optimization prevented use of non-btree indexes for nestloop inner indexscans, in any case where the join uses an equality operator that is also a btree operator --- which in particular is typically true for hash indexes. Noted while trying to test the current hash index patch. bf0b6ac4 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Sep 12, 2008 |
| Committer | Add a duration option to pgbench, so that test length can be specified in seconds instead of by number of transactions to run. Takahiro Itagaki cff4aa6a | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 11, 2008 |
| Committer | Tighten up to_date/to_timestamp so that they are more likely to reject erroneous input, rather than silently producing bizarre results as formerly happened. 06edce4c | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 11, 2008 |
| Committer | Adjust the parser to accept the typename syntax INTERVAL ... SECOND(n) and the literal syntax INTERVAL 'string' ... SECOND(n), as required by the SQL standard. Our old syntax put (n) directly after INTERVAL, which was a mistake, but will still be accepted for backward compatibility as well as symmetry with the TIMESTAMP cases. 70530c80 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 11, 2008 |
| Committer | Tweak newly added set_config_sourcefile() so that the target record isn't left corrupt if guc_strdup should fail. b8646012 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 10, 2008 |
| Committer | Make our parsing of INTERVAL literals spec-compliant (or at least a heck of a lot closer than it was before). To do this, tweak coerce_type() to pass through the typmod information when invoking interval_in() on an UNKNOWN constant; then fix DecodeInterval to pay attention to the typmod when deciding how to interpret a units-less integer value. I changed one or two other details as well. I believe the code now reacts as expected by spec for all the literal syntaxes that are specifically enumerated in the spec. There are corner cases involving strings that don't exactly match the set of fields called out by the typmod, for which we might want to tweak the behavior some more; but I think this is an area of user friendliness rather than spec compliance. There remain some non-compliant details about the SQL syntax (as opposed to what's inside the literal string); but at least we'll throw error rather than silently doing the wrong thing in those cases. f867339c | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 10, 2008 |
| CommitterBackported | Avoid using sprintf() for a simple octal conversion in PQescapeByteaInternal. Improves performance, per suggestion from Rudolf Leitgeb (bug #4414). The backend did this right already, but not libpq. bacf7b20 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Sep 10, 2008 |
| Committer | Fix a couple of places where the plpgsql grammar would produce an unhelpful 'syntax error' message, rather than something that might draw one's attention to a missing or wrong-type variable declaration. Per recent gripe. 3c221c3d | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 10, 2008 |
| Committer | Improve the plan cache invalidation mechanism to make it invalidate plans when user-defined functions used in a plan are modified. Also invalidate plans when schemas, operators, or operator classes are modified; but for these cases we just invalidate everything rather than tracking exact dependencies, since these types of objects seldom change in a production database. ee33b95d | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 09, 2008 |
| Committer | Fix a couple of problems pointed out by Fujii Masao in the 2008-Apr-05 patch for pg_stop_backup. First, it is possible that the history file name is not alphabetically later than the last WAL file name, so we should explicitly check that both have been archived. Second, the previous coding would wait forever if a checkpoint had managed to remove the WAL file before we look for it. ead21631 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 08, 2008 |
| Committer | Make pg_dump --data-only try to order the table dumps so that foreign keys' referenced tables are dumped before the referencing tables. This avoids failures when the data is loaded with the FK constraints already active. If no such ordering is possible because of circular or self-referential constraints, print a NOTICE to warn the user about it. bc01b45a | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 08, 2008 |
| Committer | Create a separate grantable privilege for TRUNCATE, rather than having it be always owner-only. The TRUNCATE privilege works identically to the DELETE privilege so far as interactions with the rest of the system go. a0b76dc6 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 08, 2008 |
| Committer | Support set-returning functions in the target lists of Agg and Group plan nodes. This is a pretty ugly feature but since we don't yet have a plausible substitute, we'd better support it everywhere. Per gripe from Jeff Davis. a26c7e3d | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 08, 2008 |
| Committer | Clarify description of pg_restore's handling of large objects. 8818f379 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 07, 2008 |
| Committer | Reimplement text_position and related functions to use Boyer-Moore-Horspool searching instead of naive matching. In the worst case this has the same O(M*N) complexity as the naive method, but the worst case is hard to hit, and the average case is very fast, especially with longer patterns. e6a310b2 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 07, 2008 |
| Committer | Add a few more details in the source-code-formatting documentation. This isn't exhaustive but it covers some of the more common layout mistakes I've seen in submitted patches. 2cf3f669 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 07, 2008 |
| Committer | Adjust psql's new \ef command to present an empty CREATE FUNCTION template for editing if no function name is specified. This seems a much cleaner way to offer that functionality than the original patch had. In passing, de-clutter the error displays that are given for a bogus function-name argument, and standardize on "$function$" as the default delimiter for the function body. (The original coding would use the shortest possible dollar-quote delimiter, which seems to create unnecessarily high risk of later conflicts with the user-modified function body.) 409c144d | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 06, 2008 |
| Committer | Implement a psql command "\ef" to edit the definition of a function. In support of that, create a backend function pg_get_functiondef(). The psql command is functional but maybe a bit rough around the edges... 2c863ca8 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 06, 2008 |
| Committer | Fix an oversight in the 8.2 patch that improved mergejoin performance by inserting a materialize node above an inner-side sort node, when the sort is expected to spill to disk. (The materialize protects the sort from having to support mark/restore, allowing it to do its final merge pass on-the-fly.) We neglected to teach cost_mergejoin about that hack, so it was failing to include the materialize's costs in the estimated cost of the mergejoin. The materialize's costs are generally going to be pretty negligible in comparison to the sort's, so this is only a small error and probably not worth back-patching; but it's still wrong. e540b972 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 05, 2008 |
| Committer | Add some additional casts and regression tests for the citext data type. David Wheeler 5bc561a1 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 05, 2008 |
| Committer | If a loadable module has wrong values in its magic block, spell out exactly what they are in the complaint message. Marko Kreen, some editorialization by me. ba9f37f0 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 03, 2008 |
| Committer | Prevent memory leaks in our various bison parsers when an error occurs during parsing. Formerly the parser's stack was allocated with malloc and so wouldn't be reclaimed; this patch makes it use palloc instead, so that flushing the current context will reclaim the memory. Per Marko Kreen. fbb2b69c | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 02, 2008 |
| CommitterBackported | Fix plpgsql's exec_move_row() to supply valid type OIDs to exec_assign_value() whenever possible, as per bug report from Oleg Serov. While at it, reorder the operations in the RECORD case to avoid possible palloc failure while the variable update is only partly complete. dd6edd5e | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+19 more | No linked thread | Sep 01, 2008 |
| Committer | Sigh, I missed checking the ecpg tests ... 76c39cf3 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 01, 2008 |
| Committer | Add a variant expected-output file for the sequence regression test, to cover output that is seen when a checkpoint occurs at just the right time during the test. Per my report of 2008-08-31. bb3f839b | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 01, 2008 |
| Committer | Add a bunch of new error location reports to parse-analysis error messages. There are still some weak spots around JOIN USING and relation alias lists, but most errors reported within backend/parser/ now have locations. b153c092 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Sep 01, 2008 |
| Committer | Fix (hopefully) some oversights in recent Bison cleanup patch. Per buildfarm results. b8f5ea76 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Aug 30, 2008 |
| Committer | Fix the raw-parsetree representation of star (as in SELECT * FROM or SELECT foo.*) so that it cannot be confused with a quoted identifier "*". Instead create a separate node type A_Star to represent this notation. Per pgsql-hackers discussion of 2007-Sep-27. 449a00fb | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Aug 30, 2008 |
| Committer | In GCC-based builds, use a better newNode() macro that relies on GCC-specific syntax to avoid a useless store into a global variable. Per experimentation, this works better than my original thought of trying to push the code into an out-of-line subroutine. 6253f9de | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Aug 29, 2008 |
| Committer | Fix bug in original implementation of xmlserialize(): if user specifies a target type that isn't acceptable, the code failed to raise the proper error. The result instead was to return a NULL expression tree, which in a quick test led to a 'cache lookup failed for type 0' error later. 3c3fb216 | REL8_3_STABLE8.3.4 | No linked thread | Aug 29, 2008 |
| Committer | Suppress gcc warning about possibly-uninitialized variable. It's not clear to me why I'd not seen this message before --- on F-9 it seems to only happen if Asserts are disabled, which ought to be irrelevant. Maybe that affects a decision whether to inline get_ten(), which would be needed to expose the warning condition to the compiler? Anyway, the fix is clear. 45711851 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Aug 29, 2008 |
| Committer | Extend the parser location infrastructure to include a location field in most node types used in expression trees (both before and after parse analysis). This allows us to place an error cursor in many situations where we formerly could not, because the information wasn't available beyond the very first level of parse analysis. There's a fair amount of work still to be done to persuade individual ereport() calls to actually include an error location, but this gets the initdb-forcing part of the work out of the way; and the situation is already markedly better than before for complaints about unimplementable implicit casts, such as CASE and UNION constructs with incompatible alternative data types. Per my proposal of a few days ago. a2794623 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Aug 28, 2008 |
| CommitterBackported | Teach eval_const_expressions() to simplify an ArrayCoerceExpr to a constant when its input is constant and the element coercion function is immutable (or nonexistent, ie, binary-coercible case). This is an oversight in the 8.3 implementation of ArrayCoerceExpr, and its result is that certain cases involving IN or NOT IN with constants don't get optimized as they should be. Per experimentation with an example from Ow Mun Heng. 6734182c | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Aug 26, 2008 |
| CommitterBackported | Fix pg_dump docs to acknowledge that you can use -Z with plain text output. Pointed out by Daniel Migowski. 6741688b | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+21 more | No linked thread | Aug 26, 2008 |
| Committer | Add %option noinput to contrib's flex scanners, to suppress gcc 4.3 warnings. Peter did this for core awhile ago but evidently missed contrib. 3e4264ca | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Aug 25, 2008 |
| Committer | Move exprType(), exprTypmod(), expression_tree_walker(), and related routines into nodes/nodeFuncs, so as to reduce wanton cross-subsystem #includes inside the backend. There's probably more that should be done along this line, but this is a start anyway. e5536e77 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Aug 25, 2008 |
| Committer | Get rid of the last remaining uses of var_is_rel(), to wit some debugging checks in ExecIndexBuildScanKeys() that were inadequate anyway: it's better to verify the correct varno on an expected index key, not just reject OUTER and INNER. d320101b | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Aug 25, 2008 |
| Committer | Add standard boilerplate sentence about when stats_temp_directory can be changed. e36716a6 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Aug 25, 2008 |
| Committer | Arrange to convert EXISTS subqueries that are equivalent to hashable IN subqueries into the same thing you'd have gotten from IN (except always with unknownEqFalse = true, so as to get the proper semantics for an EXISTS). I believe this fixes the last case within CVS HEAD in which an EXISTS could give worse performance than an equivalent IN subquery. bd3dadda | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Aug 22, 2008 |
| Committer | Marginal improvement in sublink planning: allow unknownEqFalse optimization to be used for SubLinks that are underneath a top-level OR clause. Just as at the very top level of WHERE, it's not necessary to be accurate about whether the sublink returns FALSE or NULL, because either result has the same impact on whether the WHERE will succeed. cc0dd438 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Aug 20, 2008 |
| Committer | Fix obsolete comment. It's no longer the case that Param nodes don't carry typmod. 390e59cd | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Aug 20, 2008 |
| Committer | Remove -Winline from the default set of CFLAGS for gcc. It's gotten much too noisy to be useful as of gcc 4.3, and we were never really doing anything about inlining warnings anyway. 3cab8bdf | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Aug 19, 2008 |
| Committer | Cause the output from debug_print_parse, debug_print_rewritten, and debug_print_plan to appear at LOG message level, not DEBUG1 as historically. Make debug_pretty_print default to on. Also, cause plans generated via EXPLAIN to be subject to debug_print_plan. This is all to make debug_print_plan a reasonably comfortable substitute for the former behavior of EXPLAIN VERBOSE. 9650830b | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Aug 19, 2008 |
| Committer | Add some defenses against constant-FALSE outer join conditions. Since eval_const_expressions will generally throw away anything that's ANDed with constant FALSE, what we're left with given an example like 719012e0 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Aug 17, 2008 |
| Committer | Remove prohibition against SubLinks in the WHERE clause of an EXISTS subquery that we're considering pulling up. I hadn't wanted to think through whether that could work during the first pass at this stuff. However, on closer inspection it seems to be safe enough. f2689e42 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Aug 17, 2008 |
| Committer | Improve sublink pullup code to handle ANY/EXISTS sublinks that are at top level of a JOIN/ON clause, not only at top level of WHERE. (However, we can't do this in an outer join's ON clause, unless the ANY/EXISTS refers only to the nullable side of the outer join, so that it can effectively be pushed down into the nullable side.) Per request from Kevin Grittner. 19e34b62 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Aug 17, 2008 |
| CommitterBackported | Fix pg_dump/pg_restore's ExecuteSqlCommand() to behave suitably if PQexec returns NULL instead of a PGresult. The former coding would fail, which is OK, but it neglected to give you the PQerrorMessage that might tell you why. In the oldest branches, there was another problem: it'd sometimes report PQerrorMessage from the wrong connection. 7ee27d49 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+21 more | No linked thread | Aug 16, 2008 |
| Committer | Fix a couple of places where psql might fail to report a suitable error if PQexec returns NULL. These don't seem significant enough to be worth back-patching, but they ought to get fixed ... 63c3b990 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Aug 16, 2008 |
| Committer | Clean up the loose ends in selectivity estimation left by my patch for semi and anti joins. To do this, pass the SpecialJoinInfo struct for the current join as an additional optional argument to operator join selectivity estimation functions. This allows the estimator to tell not only what kind of join is being formed, but which variable is on which side of the join; a requirement long recognized but not dealt with till now. This also leaves the door open for future improvements in the estimators, such as accounting for the null-insertion effects of lower outer joins. I didn't do anything about that in the current patch but the information is in principle deducible from what's passed. d4af2a64 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Aug 16, 2008 |
| Committer | Performance fix for new anti-join code in nodeMergejoin.c: after finding a match in antijoin mode, we should advance to next outer tuple not next inner. We know we don't want to return this outer tuple, and there is no point in advancing over matching inner tuples now, because we'd just have to do it again if the next outer tuple has the same merge key. This makes a noticeable difference if there are lots of duplicate keys in both inputs. 11846111 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Aug 15, 2008 |
| Committer | Implement SEMI and ANTI joins in the planner and executor. (Semijoins replace the old JOIN_IN code, but antijoins are new functionality.) Teach the planner to convert appropriate EXISTS and NOT EXISTS subqueries into semi and anti joins respectively. Also, LEFT JOINs with suitable upper-level IS NULL filters are recognized as being anti joins. Unify the InClauseInfo and OuterJoinInfo infrastructure into "SpecialJoinInfo". With that change, it becomes possible to associate a SpecialJoinInfo with every join attempt, which permits some cleanup of join selectivity estimation. That needs to be taken much further than this patch does, but the next step is to change the API for oprjoin selectivity functions, which seems like material for a separate patch. So for the moment the output size estimates for semi and especially anti joins are quite bogus. e006a24a | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Aug 14, 2008 |
| CommitterBackported | Fix corner-case bug introduced with HOT: if REINDEX TABLE pg_class (or a REINDEX DATABASE including same) is done before a session has done any other update on pg_class, the pg_class relcache entry was left with an incorrect setting of rd_indexattr, because the indexed-attributes set would be first demanded at a time when we'd forced a partial list of indexes into the pg_class entry, and it would remain cached after that. This could result in incorrect decisions about HOT-update safety later in the same session. In practice, since only pg_class_relname_nsp_index would be missed out, only ALTER TABLE RENAME and ALTER TABLE SET SCHEMA could trigger a problem. Per report and test case from Ondrej Jirman. eca13886 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Aug 10, 2008 |
| CommitterBackported | Install checks in executor startup to ensure that the tuples produced by an INSERT or UPDATE will match the target table's current rowtype. In pre-8.3 releases inconsistency can arise with stale cached plans, as reported by Merlin Moncure. (We patched the equivalent hazard on the SELECT side in Feb 2007; I'm not sure why we thought there was no risk on the insertion side.) In 8.3 and HEAD this problem should be impossible due to plan cache invalidation management, but it seems prudent to make the check anyway. 30fd8ec7 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+20 more | No linked thread | Aug 08, 2008 |
| Committer | Improve INTERSECT/EXCEPT hashing by realizing that we don't need to make any hashtable entries for tuples that are found only in the second input: they can never contribute to the output. Furthermore, this implies that the planner should endeavor to put first the smaller (in number of groups) input relation for an INTERSECT. Implement that, and upgrade prepunion's estimation of the number of rows returned by setops so that there's some amount of sanity in the estimate of which one is smaller. af95d7aa | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Aug 07, 2008 |
| Committer | Support hashing for duplicate-elimination in INTERSECT and EXCEPT queries. This completes my project of improving usage of hashing for duplicate elimination (aggregate functions with DISTINCT remain undone, but that's for some other day). 368df304 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Aug 07, 2008 |
| Committer | Teach the system how to use hashing for UNION. (INTERSECT/EXCEPT will follow, but seem like a separate patch since most of the remaining work is on the executor side.) I took the opportunity to push selection of the grouping operators for set operations into the parser where it belongs. Otherwise this is just a small exercise in making prepunion.c consider both alternatives. 2d1d96b1 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Aug 07, 2008 |
| CommitterBackported | Do not allow Unique nodes to be scanned backwards. The code claimed that it would work, but in fact it didn't return the same rows when moving backwards as when moving forwards. This would have no visible effect in a DISTINCT query (at least assuming the column datatypes use a strong definition of equality), but it gave entirely wrong answers for DISTINCT ON queries. 3d40d5e7 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+21 more | No linked thread | Aug 05, 2008 |
| Committer | Department of second thoughts: fix newly-added code in planner.c to make real sure that DISTINCT ON does what it's supposed to, ie, sort by the full ORDER BY list before unique-ifying. The error seems masked in simple cases by the fact that query_planner won't return query pathkeys that only partially match the requested sort order, but I wouldn't want to bet that it couldn't be exposed in some way or other. c78248c9 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Aug 05, 2008 |
| Committer | Add an ORDER BY to one more SELECT DISTINCT test case, per buildfarm results. 29654002 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Aug 05, 2008 |
| Committer | In ReadOrZeroBuffer (and related entry points), don't bother to call PageHeaderIsValid when we zero the buffer instead of reading the page in. The actual performance improvement is probably marginal since this function isn't very heavily used, but a cycle saved is a cycle earned. d8b04d5f | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Aug 05, 2008 |
| Committer | Fix some message style guideline violations in pg_regress, as well as some failures to expose messages for translation. 7e61edf2 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Aug 05, 2008 |
| Committer | Improve SELECT DISTINCT to consider hash aggregation, as well as sort/uniq, as methods for implementing the DISTINCT step. This eliminates the former performance gap between DISTINCT and GROUP BY, and also makes it possible to do SELECT DISTINCT on datatypes that only support hashing not sorting. be3b265c | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Aug 05, 2008 |
| Committer | Improve CREATE/DROP/RENAME DATABASE so that when failing because the source or target database is being accessed by other users, it tells you whether the "other users" are live sessions or uncommitted prepared transactions. (Indeed, it tells you exactly how many of each, but that's mostly just because it was easy to do so.) This should help forestall the gotcha of not realizing that a prepared transaction is what's blocking the command. Per discussion. 4abd7b49 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Aug 04, 2008 |
| Committer | Make GROUP BY work properly for datatypes that only support hashing and not sorting. The infrastructure for this was all in place already; it's only necessary to fix the planner to not assume that sorting is always an available option. ec73b56a | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Aug 03, 2008 |
| Committer | Tighten up the sanity checks in TypeCreate(): pass-by-value types must have a size that is one of the supported values, not just anything <= sizeof(Datum). Cross-check the alignment specification against size as well. 82a1f099 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Aug 03, 2008 |
| CommitterBackported | Fix copy-and-pasteo that's causing pg_regress to lie about which file it can't read when the --temp-config argument is bad. Noted while wondering why buildfarm member dungbeetle is failing ... this isn't why, but it is why the error report isn't very helpful ... 3c93218a | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Aug 03, 2008 |
| Committer | Rearrange the querytree representation of ORDER BY/GROUP BY/DISTINCT items as per my recent proposal: 95113047 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Aug 02, 2008 |
| Committer | Fix parser so that we don't modify the user-written ORDER BY list in order to represent DISTINCT or DISTINCT ON. This gets rid of a longstanding annoyance that a view or rule using SELECT DISTINCT will be dumped out with an overspecified ORDER BY list, and is one small step along the way to decoupling DISTINCT and ORDER BY enough so that hash-based implementation of DISTINCT will be possible. In passing, improve transformDistinctClause so that it doesn't reject duplicate DISTINCT ON items, as was reported by Steve Midgley a couple weeks ago. 63247bec | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jul 31, 2008 |
| Committer | Require superuser privilege to create base types (but not composites, enums, or domains). This was already effectively required because you had to own the I/O functions, and the I/O functions pretty much have to be written in C since we don't let PL functions take or return cstring. But given the possible security consequences of a malicious type definition, it seems prudent to enforce superuser requirement directly. Per recent discussion. 7bd7b200 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jul 31, 2008 |
| Committer | Allow I/O conversion casts to be applied to or from any type that is a member of the STRING type category, thereby opening up the mechanism for user-defined types. This is mainly for the benefit of citext, though; there aren't likely to be a lot of types that are all general-purpose character strings. Per discussion with David Wheeler. c8572986 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jul 30, 2008 |
| Committer | Flip the default typispreferred setting from true to false. This affects only type categories in which the previous coding made *every* type preferred; so there is no change in effective behavior, because the function resolution rules only do something different when faced with a choice between preferred and non-preferred types in the same category. It just seems safer and less surprising to have CREATE TYPE default to non-preferred status ... 7df49cef | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jul 30, 2008 |
| Committer | Adjust citext to make use of the new ability to declare its type category: by putting it into the standard string category, we cause casts from citext to text to be recognized as "preferred" casts. This eliminates the need for creation of alias functions and operators that only serve to prevent ambiguous-function errors; get rid of the ones that were in the original commit. 42be2c79 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jul 30, 2008 |
| Committer | Replace the hard-wired type knowledge in TypeCategory() and IsPreferredType() with system catalog lookups, as was foreseen to be necessary almost since their creation. Instead put the information into two new pg_type columns, typcategory and typispreferred. Add support for setting these when creating a user-defined base type. bac3e836 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jul 30, 2008 |
| Committer | Add a new, improved version of citext as a contrib module. ab9907f5 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jul 29, 2008 |
| CommitterBackported | Update 8.1 and 8.0 plpython to work with Python 2.5. This backports several fixes made during the 8.2 development cycle, but not backported at the time for lack of confidence in the new coding. a3a8f237 | REL8_1_STABLE8.1.14REL8_0_STABLE8.0.18 | No linked thread | Jul 28, 2008 |
| Committer | As noted by Andrew Gierth, there's really no need any more to force a junk filter to be used when INSERT or SELECT INTO has a plan that returns raw disk tuples. The virtual-tuple-slot optimizations that were put in place awhile ago mean that ExecInsert has to do ExecMaterializeSlot, and that already copies the tuple if it's raw (and does so more efficiently than a junk filter, too). So get rid of that logic. This in turn means that we can throw away ExecMayReturnRawTuples, which wasn't used for any other purpose, and was always a kluge anyway. a77eaa6a | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jul 26, 2008 |
| CommitterBackported | Fix parsing of LDAP URLs so it doesn't reject spaces in the "suffix" part. Per report from César Miguel Oliveira Alves. 94be06af | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+18 more | No linked thread | Jul 24, 2008 |
| Committer | Remove some redundant tests and improve comments in next_token(). Cosmetic, but it might make this a bit less confusing to the next reader. e76ef8d5 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jul 24, 2008 |
| Committer | Use guc.c's parse_int() instead of pg_atoi() to parse fillfactor in default_reloptions(). The previous coding was really a bug because pg_atoi() will always throw elog on bad input data, whereas default_reloptions is not supposed to complain about bad input unless its validate parameter is true. Right now you could only expose the problem by hand-modifying pg_class.reloptions into an invalid state, so it doesn't seem worth back-patching; but we should get it right in HEAD because there might be other situations in future. Noted while studying GIN fast-update patch. 11c794f2 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jul 23, 2008 |
| CommitterBackported | Update link to Oleg and Teodor's GIN page. (Extracted from fast-insert patch, since it ought to be back-patched) 64d84adf | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+18 more | No linked thread | Jul 22, 2008 |
| Committer | Add comment about the two different query strings that ExecuteQuery() has to deal with. b351eba2 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jul 21, 2008 |
| Committer | Code review for array_fill patch: fix inadequate check for array size overflow and bogus documentation (dimension arrays are int[] not anyarray). Also the errhint() messages seem to be really errdetail(), since there is nothing heuristic about them. Some other trivial cosmetic improvements. 5618ece8 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jul 21, 2008 |
| Committer | Add a pg_dump option --lock-wait-timeout to allow failing the dump if unable to acquire shared table locks within a specified amount of time. 673a30fb | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jul 20, 2008 |
| Committer | Avoid substituting NAMEDATALEN, FLOAT4PASSBYVAL, and FLOAT8PASSBYVAL into the postgres.bki file during build, because we want that file to be entirely platform- and configuration-independent; else it can't safely be put into /usr/share on multiarch machines. We can do the substitution during initdb, instead. FLOAT4PASSBYVAL and FLOAT8PASSBYVAL are new breakage as of 8.4, while the NAMEDATALEN hazard has been there all along but I guess no one tripped over it. Noticed while trying to build "universal" OS X binaries. 4b362c66 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jul 19, 2008 |
| Committer | Adjust things so that the query_string of a cached plan and the sourceText of a portal are never NULL, but reliably provide the source text of the query. It turns out that there was only one place that was really taking a short-cut, which was the 'EXECUTE' utility statement. That doesn't seem like a sufficiently critical performance hotspot to justify not offering a guarantee of validity of the portal source text. Fix it to copy the source text over from the cached plan. Add Asserts in the places that set up cached plans and portals to reject null source strings, and simplify a bunch of places that formerly needed to guard against nulls. a1c69235 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jul 18, 2008 |
| Committer | Provide a function hook to let plug-ins get control around ExecutorRun. 6cc88f0a | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jul 18, 2008 |
| Committer | Fix a race condition that I introduced into sinvaladt.c during the recent rewrite. When called from SIInsertDataEntries, SICleanupQueue releases the write lock if it has to issue a kill() to signal some laggard backend. That still seems like a good idea --- but it's possible that by the time we get the lock back, there are no longer enough free message slots to satisfy SIInsertDataEntries' requirement. Must recheck, and repeat the whole SICleanupQueue process if not. Noted while reading code. dc02a481 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jul 18, 2008 |
| Committer | Suppress compiler warning, and not incidentally make the code more robust. The previous coding was quite risky because it was testing conditions different from 'is the array really allocated?'. a4775a80 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jul 18, 2008 |
| Committer | Implement SQL-spec RETURNS TABLE syntax for functions. 69a785b8 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jul 18, 2008 |
| Committer | Add dump support for SortBy nodes. Needed this while debugging a reported problem with DISTINCT, so might as well commit it. a41f73a0 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jul 17, 2008 |
| Committer | Fix previous patch so that it actually works --- consider TRUNCATE foo, public.foo 5ef5abe3 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jul 16, 2008 |
| Committer | Add a "provariadic" column to pg_proc to eliminate the remarkably expensive need to deconstruct proargmodes for each pg_proc entry inspected by FuncnameGetCandidates(). Fixes function lookup performance regression caused by yesterday's variadic-functions patch. 6563e9e2 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jul 16, 2008 |
| Committer | Support "variadic" functions, which can accept a variable number of arguments so long as all the trailing arguments are of the same (non-array) type. The function receives them as a single array argument (which is why they have to all be the same type). d89737d3 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jul 16, 2008 |
| Committer | Clean up buildfarm failures arising from the seemingly straightforward page macros patch :-(. Results from both baiji and mastodon imply that MSVC fails to perceive offsetof(PageHeaderData, pd_linp[0]) as a constant expression in some contexts where offsetof(PageHeaderData, pd_linp) works fine. Sloth, thy name is Micro. d92c370c | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jul 14, 2008 |
| Committer | Create a type-specific typanalyze routine for tsvector, which collects stats on the most common individual lexemes in place of the mostly-useless default behavior of counting duplicate tsvectors. Future work: create selectivity estimation functions that actually do something with these stats. 6f6d8632 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jul 14, 2008 |
| Committer | Change the PageGetContents() macro to guarantee its result is maxalign'd, thereby forestalling any problems with alignment of the data structure placed there. Since SizeOfPageHeaderData is maxalign'd anyway in 8.3 and HEAD, this does not actually change anything right now, but it is foreseeable that the header size will change again someday. I had to fix a couple of places that were assuming that the content offset is just SizeOfPageHeaderData rather than MAXALIGN(SizeOfPageHeaderData). Per discussion of Zdenek's page-macros patch. 6816577a | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jul 13, 2008 |
| Committer | Clean up the use of some page-header-access macros: principally, use SizeOfPageHeaderData instead of sizeof(PageHeaderData) in places where that makes the code clearer, and avoid casting between Page and PageHeader where possible. Zdenek Kotala, with some additional cleanup by Heikki Linnakangas. 9d035f42 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jul 13, 2008 |
| Committer | Fix a couple of stray misuses of "binary compatible". 45efb09a | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jul 12, 2008 |
| Committer | Don't make --enable-cassert turn on RANDOMIZE_ALLOCATED_MEMORY automatically; it's just too dang expensive. Per recent discussion, but I just got my nose rubbed in it again while doing some performance checking. c96439b5 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jul 12, 2008 |
| Committer | Const-ify the arguments of str_tolower() and friends to suppress compile warnings. Clean up various unneeded cruft that was left behind after creating those routines. Introduce some convenience functions str_tolower_z etc to eliminate tedious and error-prone double arguments in formatting.c. (Currently there seems no need to export the latter, but maybe reconsider this later.) 960af47e | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jul 12, 2008 |
| Committer | Multi-column GIN indexes. Teodor Sigaev 27cb66fd | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jul 11, 2008 |
| CommitterBackported | Fix an oversight in the original implementation of performMultipleDeletions(): the alreadyDeleted list has to be passed down through deleteDependentObjects(), else objects that are deleted via auto/internal dependencies don't get reported back up to performMultipleDeletions(). Depending on the visitation order, this could cause the code to try to delete an already-deleted object, leading to strange errors in DROP OWNED (typically "cache lookup failed for relation NNNNN" or similar). Per bug #4289. 6dafb5b4 | REL8_3_STABLE8.3.4REL8_2_STABLE8.2.10 | No linked thread | Jul 11, 2008 |
| Committer | Add unchangeable GUC "variables" segment_size, wal_block_size, and wal_segment_size to make those configuration parameters available to clients, in the same way that block_size was previously exposed. Bernd Helmle, with comments from Abhijit Menon-Sen and some further tweaking by me. 7a97abe8 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jul 10, 2008 |
| Committer | Tighten up SS_finalize_plan's computation of valid_params to exclude Params of the current query level that aren't in fact output parameters of the current initPlans. (This means, for example, output parameters of regular subplans.) To make this work correctly for output parameters coming from sibling initplans requires rejiggering the API of SS_finalize_plan just a bit: we need the siblings to be visible to it, rather than hidden as SS_make_initplan_from_plan had been doing. This is really part of my response to bug #4290, but I concluded this part probably shouldn't be back-patched, since all that it's doing is to make a debugging cross-check tighter. eaf1b5d3 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jul 10, 2008 |
| CommitterBackported | Fix mis-calculation of extParam/allParam sets for plan nodes, as seen in bug #4290. The fundamental bug is that masking extParam by outer_params, as finalize_plan had been doing, caused us to lose the information that an initPlan depended on the output of a sibling initPlan. On reflection the best thing to do seemed to be not to try to adjust outer_params for this case but get rid of it entirely. The only thing it was really doing for us was to filter out param IDs associated with SubPlan nodes, and that can be done (with greater accuracy) while processing individual SubPlan nodes in finalize_primnode. This approach was vindicated by the discovery that the masking method was hiding a second bug: SS_finalize_plan failed to remove extParam bits for initPlan output params that were referenced in the main plan tree (it only got rid of those referenced by other initPlans). It's not clear that this caused any real problems, given the limited use of extParam by the executor, but it's certainly not what was intended. 772a6d45 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+19 more | No linked thread | Jul 10, 2008 |
| Committer | Increase PG_SYSLOG_LIMIT (the max line length sent to syslog()) from 128 to 1024 to improve performance when sending large elog messages. Also add a comment about why we use that number. 6b7eebc0 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jul 09, 2008 |
| CommitterBackported | Fix performance bug in write_syslog(): the code to preferentially break the log message at newlines cost O(N^2) for very long messages with few or no newlines. For messages in the megabyte range this became the dominant cost. Per gripe from Achilleas Mantzios. 37933102 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+21 more | No linked thread | Jul 08, 2008 |
| CommitterBackported | Fix estimate_num_groups() to assume that GROUP BY expressions yielding boolean results always contribute two groups, regardless of the expression contents. This is very substantially more accurate than the regular heuristic for certain boolean tests like "col IS NULL". Per gripe from Sam Mason. 170063cd | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+21 more | No linked thread | Jul 07, 2008 |
| CommitterBackported | Fix AT TIME ZONE (in all three variants) so that we first try to interpret the timezone argument as a timezone abbreviation, and only try it as a full timezone name if that fails. The zic database has four zones (CET, EET, MET, WET) that are full daylight-savings zones and yet have names that are the same as their abbreviations for standard time, resulting in ambiguity. In the timestamp input functions we resolve the ambiguity by preferring the abbreviation, and AT TIME ZONE should work the same way. (No functionality is lost because the zic database also has other names for these zones, eg Europe/Zurich.) Per gripe from Jaromir Talir. c5083853 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+19 more | No linked thread | Jul 07, 2008 |
| CommitterBackported | Prevent integer overflows during units conversion when displaying a GUC variable that has units. Per report from Stefan Kaltenbrunner. fbcc69c1 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+18 more | No linked thread | Jul 06, 2008 |
| Committer | Add a function pg_get_keywords() to let clients find out the set of keywords known to the SQL parser. Dave Page c63147d6 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jul 03, 2008 |
| Committer | Fix psql's \d and allied commands to work with all server versions back to 7.4. Guillaume Lelarge, with some additional fixes by me. 0a8f6b79 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jul 03, 2008 |
| CommitterBackported | Fix transaction-lifespan memory leak in xpath(). Report by Matt Magoffin, fix by Kris Jurka. c5f4b98f | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Jul 03, 2008 |
| Committer | Remove GUC extra_desc strings that are redundant with the enum value lists. 009a6c9a | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jul 01, 2008 |
| CommitterBackported | Fix identify_system_timezone() so that it tests the behavior of the system timezone setting in the current year and for 100 years back, rather than always examining years 1904-2004. The original coding would have problems distinguishing zones whose behavior diverged only after 2004; which is a situation we will surely face sometime, if it's not out there already. 8c3340fe | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+20 more | No linked thread | Jul 01, 2008 |
| Committer | Teach autovacuum how to determine whether a temp table belongs to a crashed backend. If so, send a LOG message to the postmaster log, and if the table is beyond the vacuum-for-wraparound horizon, forcibly drop it. Per recent discussions. Perhaps we ought to back-patch this, but it probably needs to age a bit in HEAD first. 5b965bf0 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jul 01, 2008 |
| Committer | Remove unnecessary coziness of GIN code with datum copying. Now that space is tracked via GetMemoryChunkSpace, there's really no advantage to duplicating datumCopy's innards here. This is one bit of my toast indirection patch that should go in anyway. 7ea9b997 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jun 29, 2008 |
| Committer | If pnstrdup is going to be promoted to a generally available function, it ought to conform to the rest of palloc.h in using Size for sizes. 4a8d573c | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jun 28, 2008 |
| CommitterBackported | Consider a clause to be outerjoin_delayed if it references the nullable side of any lower outer join, even if it also references the non-nullable side and so could not get pushed below the outer join anyway. We need this in case the clause is an OR clause: if it doesn't get marked outerjoin_delayed, create_or_index_quals() could pull an indexable restriction for the nullable side out of it, leading to wrong results as demonstrated by today's bug report from toruvinn. (See added regression test case for an example.) dcc23347 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Jun 27, 2008 |
| Committer | Improve planner's estimation of the size of an append relation: rather than taking the maximum of any child rel's width, we should weight the widths proportionally to the number of rows expected from each child. In hindsight this is obviously correct because row width is really a proxy for the total physical size of the relation. Per discussion with Scott Carey (bug #4264). 2c2161a4 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jun 27, 2008 |
| Committer | Clarify plpgsql documentation by not treating IF THEN ELSE IF ... as a truly distinct version of IF. Per suggestion from Marko Kreen. 8530c82f | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jun 27, 2008 |
| Committer | Modify the recently-added probe for -Wl,--as-needed some more, because RHEL-4 vintage Linux is even more broken than we realized: a link to libreadline will succeed, and fail only at runtime. It seems that an AC_TRY_RUN test is the only reliable way to check whether this is really safe. Per report from Tatsuo. 623f8a09 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jun 27, 2008 |
| Committer | Reduce the alignment requirement of type "name" from int to char, and arrange to suppress zero-padding of "name" entries in indexes. 5f6f840e | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jun 24, 2008 |
| Committer | Oops, make the MSVC build put fmgroids.h where it needs to be. Per buildfarm results. 320c7eb8 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jun 24, 2008 |
| Committer | Fix Gen_fmgrtab.sh to not rely on hard-wired knowledge of the column numbers in pg_proc. Also make it not emit duplicate extern declarations, and make it a bit more bulletproof in some other small ways. Likewise fix the equally hard-wired, and utterly undocumented, knowledge in the MSVC build scripts. For testing purposes and perhaps other uses in future, pull out that portion of the MSVC scripts into a standalone perl script equivalent to Gen_fmgrtab.sh, and make it generate actually identical output, rather than just more-or-less-the-same output. eeee0691 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jun 23, 2008 |
| Committer | Seems I was too optimistic in supposing that sinval's maxMsgNum could be read and written without a lock. The value itself is atomic, sure, but on processors with weak memory ordering it's possible for a reader to see the value change before it sees the associated message written into the buffer array. Fix by introducing a spinlock that's used just to read and write maxMsgNum. (We could do this with less overhead if we recognized a concept of "memory access barrier"; is it worth introducing such a thing? At the moment probably not --- I can't measure any clear slowdown from adding the spinlock, so this solution is probably fine.) Per buildfarm results. dab421d2 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jun 20, 2008 |
| Committer | Rewrite the sinval messaging mechanism to reduce contention and avoid unnecessary cache resets. The major changes are: fad153ec | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jun 19, 2008 |
| CommitterBackported | Fix a few places that were non-multibyte-safe in tsearch configuration file parsing. Per bug #4253 from Giorgio Valoti. 30dc388a | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Jun 19, 2008 |
| Committer | Fix compiler warning introduced by recent patch. Tsk tsk. d1da215d | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jun 18, 2008 |
| CommitterBackported | Improve error reporting for problems in text search configuration files by installing an error context subroutine that will provide the file name and line number for all errors detected while reading a config file. Some of the reader routines were already doing that in an ad-hoc way for errors detected directly in the reader, but it didn't help for problems detected in subroutines, such as encoding violations. fbeb9da2 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Jun 18, 2008 |
| Committer | Remove freeBackends counter from the sinval shared memory area. We used to use it to help enforce superuser_reserved_backends, but since 8.1 it's just been dead weight. 86fdb32b | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jun 17, 2008 |
| Committer | Clean up some problems with redundant cross-type arithmetic operators. Add int2-and-int8 implementations of the basic arithmetic operators +, -, *, /. This doesn't really add any new functionality, but it avoids "operator is not unique" failures that formerly occurred in these cases because the parser couldn't decide whether to promote the int2 to int4 or int8. We could alternatively have removed the existing cross-type operators, but experimentation shows that the cost of an additional type coercion expression node is noticeable compared to such cheap operators; so let's not give up any performance here. On the other hand, I removed the int2-and-int4 modulo (%) operators since they didn't seem as important from a performance standpoint. Per a complaint last January from ykhuang. b163baa8 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jun 17, 2008 |
| CommitterBackported | Fix the code that adds regclass constants to a plan's list of relation OIDs that it depends on for replan-forcing purposes. We need to consider plain OID constants too, because eval_const_expressions folds a RelabelType atop a Const to just a Const. This change could result in OID values that aren't really for tables getting added to the dependency list, but the worst-case consequence would be occasional useless replans. Per report from Gabriele Messineo. 2e835a49 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Jun 17, 2008 |
| CommitterBackported | Clean up a number of bogosities around pltcl's handling of the Tcl "result": 19a6bace | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+20 more | No linked thread | Jun 17, 2008 |
| Committer | Rewrite docs section about routine vacuuming --- it's gotten rather mangled of late, with lots of redundancy, bad grammar, and just plain poor exposition. Make it clear that autovacuum is now considered the normal solution. 9dac1b46 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jun 16, 2008 |
| Committer | Make DROP INDEX lock the parent table before locking the index. This behavior is necessary to avoid deadlock against ordinary queries, but we'd broken it with recent changes that made the DROP machinery lock the index before arriving at index_drop. Per intermittent buildfarm failures. 906f27dd | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jun 15, 2008 |
| Committer | Fix 64-bit problem in recent patch. 71ff461a | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jun 15, 2008 |
| Committer | Rearrange ALTER TABLE syntax processing as per my recent proposal: the grammar allows ALTER TABLE/INDEX/SEQUENCE/VIEW interchangeably for all subforms of those commands, and then we sort out what's really legal at execution time. This allows the ALTER SEQUENCE/VIEW reference pages to fully document all the ALTER forms available for sequences and views respectively, and eliminates a longstanding cause of confusion for users. a0b012a1 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jun 15, 2008 |
| Committer | Refactor the handling of the various DropStmt variants so that when multiple objects are specified, we drop them all in a single performMultipleDeletions call. This makes the RESTRICT/CASCADE checks more relaxed: it's not counted as a cascade if one of the later objects has a dependency on an earlier one. NOTICE messages about such cases go away, too. 0cefb50f | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jun 14, 2008 |
| CommitterBackported | Improve the various elog messages in tuptoaster.c to report which TOAST table the problem happened in. These are all supposedly can't-happen cases, but when they do happen it's useful to know where. 55a56845 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Jun 13, 2008 |
| Committer | Improve reporting of dependencies in DROP to work like the scheme that we devised for pg_shdepend, namely the individual dependencies are reported as DETAIL lines rather than coming out as separate NOTICEs. The client-side report is capped at 100 lines, but the server log always gets a full report. c4f2a045 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jun 11, 2008 |
| CommitterBackported | Create a script to handle stamping release version numbers into files, replacing the tedious and error-prone manual process we've been using. 99b8ebec | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+21 more | No linked thread | Jun 10, 2008 |
| CommitterBackported | Fix unportable (and incorrect anyway) usage of LL constant suffix that recently snuck into cash.c. Per report from Edmundo Robles Lopez. 0b510ad9 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Jun 09, 2008 |
| CommitterBackported | Fix datetime input functions to correctly detect integer overflow when running on a 64-bit platform ... strtol() will happily return 64-bit output in that case. Per bug #4231 from Geoff Tolley. 3a4e929b | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+21 more | No linked thread | Jun 09, 2008 |
| Committer | Fix an ALTER TABLE test case so that it actually tests what the comment says it is testing. Ah, the perils of making keywords optional ... 5862cda6 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jun 09, 2008 |
| Committer | tag 8.0.17 fdc891be | REL8_0_STABLE8.0.17 | No linked thread | Jun 09, 2008 |
| Committer | tag 7.4.21 9acedf8f | REL7_4_STABLE7.4.21 | No linked thread | Jun 09, 2008 |
| Committer | Rewrite DROP's dependency traversal algorithm into an honest two-pass algorithm, replacing the original intention of a one-pass search, which had been hacked up over time to be partially two-pass in hopes of handling various corner cases better. It still wasn't quite there, especially as regards emitting unwanted NOTICE messages. More importantly, this approach lets us fix a number of open bugs concerning concurrent DROP scenarios, because we can take locks during the first pass and avoid traversing to dependent objects that were just deleted by someone else. 281a724d | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jun 08, 2008 |
| Committer | Stamp 7.4.21 (except for configure.in/configure) 33266e07 | REL7_4_STABLE7.4.21 | No linked thread | Jun 08, 2008 |
| Committer | Stamp 8.0.17 (except for configure.in/configure) ee439b52 | REL8_0_STABLE8.0.17 | No linked thread | Jun 08, 2008 |
| Committer | Stamp 8.1.13 (except for configure.in/configure) 638aa5a7 | REL8_1_STABLE8.1.13 | No linked thread | Jun 08, 2008 |
| Committer | Stamp 8.2.9 (except for configure.in/configure) ea83cc1f | REL8_2_STABLE8.2.9 | No linked thread | Jun 08, 2008 |
| Committer | Stamp 8.3.3 (except for configure.in/configure) f1869c79 | REL8_3_STABLE8.3.3 | No linked thread | Jun 08, 2008 |
| CommitterBackported | Update release notes for ALTER AGGREGATE fix. 2071865c | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+19 more | No linked thread | Jun 08, 2008 |
| CommitterBackported | ALTER AGGREGATE OWNER seems to have been missed by the last couple of patches that dealt with object ownership. It wasn't updating pg_shdepend nor adjusting the aggregate's ACL. In 8.2 and up, fix this permanently by making it use AlterFunctionOwner_oid. In 8.1, the function code wasn't factored that way, so just copy and paste. 395f8b91 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+19 more | No linked thread | Jun 08, 2008 |
| CommitterBackported | Update release notes for 8.3.3 et al. 6d61b404 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+21 more | No linked thread | Jun 07, 2008 |
| CommitterBackported | Fix pg_get_ruledef() so that negative numeric constants are parenthesized. This is needed because :: casting binds more tightly than minus, so for example -1::integer is not the same as (-1)::integer, and there are cases where the difference is important. In particular this caused a failure in SELECT DISTINCT ... ORDER BY ... where expressions that should have matched were seen as different by the parser; but I suspect that there could be other cases where failure to parenthesize leads to subtler semantic differences in reloaded rules. Per report from Alexandr Popov. c1943dba | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+21 more | No linked thread | Jun 06, 2008 |
| CommitterBackported | Remove link that pre-8.2 doc tools don't support. 5766e917 | REL8_1_STABLE8.1.12REL8_0_STABLE8.0.16REL7_4_STABLE7.4.20 | No linked thread | Jun 06, 2008 |
| Committer | tag 7.4.20 c2e35991 | REL7_4_STABLE7.4.20 | No linked thread | Jun 06, 2008 |
| Committer | tag 8.0.16 9525ec1a | REL8_0_STABLE8.0.16 | No linked thread | Jun 06, 2008 |
| Committer | Stamp 7.4.20 (except for configure.in/configure) fd3a8343 | REL7_4_STABLE7.4.20 | No linked thread | Jun 05, 2008 |
| Committer | Stamp 8.0.16 (except for configure.in/configure) 6a2cd0bf | REL8_0_STABLE8.0.16 | No linked thread | Jun 05, 2008 |
| Committer | Stamp 8.1.12 (except for configure.in/configure) 7ac3f848 | REL8_1_STABLE8.1.12 | No linked thread | Jun 05, 2008 |
| Committer | Stamp 8.2.8 (except for configure.in/configure) f0f335ed | REL8_2_STABLE8.2.8 | No linked thread | Jun 05, 2008 |
| Committer | Stamp 8.3.2 (except for configure.in/configure) 6deaeb3e | REL8_3_STABLE8.3.2 | No linked thread | Jun 05, 2008 |
| CommitterBackported | Translation updates. 2d289650 | REL8_3_STABLE8.3.2REL8_2_STABLE8.2.8REL8_1_STABLE8.1.12REL8_0_STABLE8.0.16REL7_4_STABLE7.4.20 | No linked thread | Jun 05, 2008 |
| CommitterBackported | Draft release notes for upcoming back-branch updates. 393ad11c | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+21 more | No linked thread | Jun 04, 2008 |
| Committer | Remove unused variable (was already done in HEAD) 3ea40a11 | REL8_3_STABLE8.3.2 | No linked thread | Jun 03, 2008 |
| CommitterBackported | Fix initdb to reject a relative path for -X (--xlogdir) argument. This doesn't work, and the real reason why not is it's unclear where the path is relative to (initdb's CWD, or the data directory?). We could make an arbitrary decision, but it seems best to make the user be unambiguous. Per gripe from Devrim. eaa70a38 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Jun 02, 2008 |
| CommitterBackported | Update time zone data files to tzdata release 2008c (DST law changes in Morocco, Iraq, Choibalsan, Pakistan, Syria, Cuba, Argentina/San_Luis). c4fdebd9 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+20 more | No linked thread | Jun 01, 2008 |
| Committer | Refactor SPI_cursor_open/SPI_cursor_open_with_args so that the latter sets the PARAM_FLAG_CONST flag on the parameters that are passed into the portal, while the former's behavior is unchanged. This should only affect the case where the portal is executing an EXPLAIN; it will cause the generated plan to look more like what would be generated if the portal were actually executing the command being explained. Per gripe from Pavel. 6a9fffcd | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jun 01, 2008 |
| Committer | Marginal improvements to the documentation for PGOPTIONS. 6d19e9ff | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Jun 01, 2008 |
| Committer | Copy refint.so and autoinc.so into the src/test/regress directory during "make all", and then reference them there during the actual tests. This makes the handling of these files more parallel to that of regress.so, and in particular simplifies use of the regression tests outside the original build tree. The PGDG and Red Hat RPMs have been doing this via patches for a very long time. Inclusion of the change in core was requested by Jørgen Austvik of Sun, and I can't see any reason not to. bf4bd50f | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 30, 2008 |
| Committer | Improve the documentation comment for replace(). Robert Treat d11e301a | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 29, 2008 |
| Committer | Tweak libpq to avoid crashing due to incorrect buffer size calculation when we are on a 64-bit machine (ie, size_t is wider than int) and someone passes in a query string that approaches or exceeds INT_MAX bytes. Also, just for paranoia's sake, guard against similar overflows in sizing the input buffer. 02ac3054 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 29, 2008 |
| Committer | Make 8.3.x psql print tab characters as an appropriate number of spaces, rather than "\x09". Before 8.3 we just printed tabs as-is, leading to poor formatting of subsequent columns, but consensus is that "\x09" is not an improvement over that. Back-patch of fix that's already in HEAD. 8146f890 | REL8_3_STABLE8.3.2 | No linked thread | May 29, 2008 |
| CommitterBackported | Fix some bugs introduced by the 8.2-era conversion of cube functions to V1 calling convention. cube_inter and cube_distance could attempt to pfree their input arguments, and cube_dim returned a value from a struct it might have just pfree'd (which would only really cause a problem in a debug build, but it's still wrong). Per bug #4208 and additional code reading. 5914140a | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+18 more | No linked thread | May 29, 2008 |
| CommitterBackported | Backpatch Zdenek Kotala's fix to prevent pglz_decompress from stomping on memory if the compressed data is corrupt. f26cbcab | REL8_3_STABLE8.3.2REL8_2_STABLE8.2.8 | No linked thread | May 28, 2008 |
| CommitterBackported | Improve GRANT documentation to point out that UPDATE and DELETE typically require SELECT privilege as well, since you normally need to read existing column values within such commands. This behavior is according to spec, but we'd never documented it before. Per gripe from Volkan Yazici. a8f98c06 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+21 more | No linked thread | May 28, 2008 |
| CommitterBackported | Require bind_textdomain_codeset() not just gettext() to enable NLS support. GNU gettext before 0.10.36 does not have that function, and is generally too incomplete to be usable. 7e8374a3 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+18 more | No linked thread | May 27, 2008 |
| CommitterBackported | Back-patch the 8.3 fix that prohibits TRUNCATE, CLUSTER, and REINDEX when the current transaction has any open references to the target relation or index (implying it has an active query using the relation). Also back-patch the 8.2 fix that prohibits TRUNCATE and CLUSTER when there are pending AFTER-trigger events. Per suggestion from Heikki. 35b6007e | REL8_2_STABLE8.2.8REL8_1_STABLE8.1.12REL8_0_STABLE8.0.16REL7_4_STABLE7.4.20 | No linked thread | May 27, 2008 |
| CommitterBackported | Clarify description of typmod input function, per Jeff Davis. e35ee671 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | May 27, 2008 |
| Committer | Alter the xxx_pattern_ops opclasses to use the regular equality operator of the associated datatype as their equality member. This means that these opclasses can now support plain equality comparisons along with LIKE tests, thus avoiding the need for an extra index in some applications. This optimization was not possible when the pattern opclasses were first introduced, because we didn't insist that text equality meant bitwise equality; but we do now, so there is no semantic difference between regular and pattern equality operators. 7b8a63c3 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 27, 2008 |
| CommitterBackported | Fix an old corner-case bug in set_config_option: push_old_value has to be called before, not after, calling the assign_hook if any. This is because push_old_value might fail (due to palloc out-of-memory), and in that case there would be no stack entry to tell transaction abort to undo the GUC assignment. Of course the actual assignment to the GUC variable hasn't happened yet --- but the assign_hook might have altered subsidiary state. Without a stack entry we won't call it again to make it undo such actions. So this is necessary to make the world safe for assign_hooks with side effects. Per a discussion a couple weeks ago with Magnus. a3d9a242 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+20 more | No linked thread | May 26, 2008 |
| CommitterBackported | Adjust timestamp regression tests to prevent two low-probability failure cases. Recent buildfarm experience shows that it is sometimes possible to execute several SQL commands in less time than the granularity of Windows' not-very-high-resolution gettimeofday(), leading to a failure because the tests expect the value of now() to change and it doesn't. Also, it was recognized some time ago that the same area of the tests could fail if local midnight passes between the insertion and the checking of the values for 'yesterday', 'tomorrow', etc. Clean all this up per ideas from myself and Greg Stark. 8c2ac75c | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+21 more | No linked thread | May 25, 2008 |
| Committer | Adjust -Wl,--asneeded test to avoid using the switch if it breaks libreadline. What we will do for compatibility :-( 1ac1bea0 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 20, 2008 |
| Committer | Make to_char()'s localized month/day names depend on LC_TIME, not LC_MESSAGES. 07a56067 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 19, 2008 |
| CommitterBackported | Coercion sanity check in ri_HashCompareOp failed to allow for enums, as per example from Rod Taylor. On reflection the correct test here is for any polymorphic type, not specifically ANYARRAY as in the original coding. 63e98b55 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | May 19, 2008 |
| Committer | Make another try at using -Wl,--as-needed to suppress linking of unnecessary shared libraries. We've tried this before and had problems with libreadline not linking properly on some platforms, but that seems to be a libreadline bug that may have been fixed by now. In any case, it's early enough in the 8.4 devel cycle that we can afford to have some transient breakage while we work out any portability problems. 2dad10f4 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 18, 2008 |
| Committer | okay, looks like ecpg/compatlib needs -lintl too. Per buildfarm results. d4b9f44b | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 18, 2008 |
| Committer | Rewrite the warning about non-transaction-safety of TRUNCATE ... RESTART IDENTITY to be more explicit about the possible hazards. Per gripe from Neil and subsequent discussion. Eventually we may be able to get rid of this warning, but for now it had better be there. 1bfe97e5 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 17, 2008 |
| Committer | ecpglib needs to link with libintl if it's in use. Per buildfarm results. 5248e02b | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 17, 2008 |
| Committer | Improve pg_regress so that it reports the fact if any test process exits with nonzero status. The Windows part of this is untested ... 55de145d | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 17, 2008 |
| Committer | Fix utterly-bogus code for computing row heights. Per crashes on spoonbill, though one wonders why it didn't misbehave everywhere. In passing remove some unnecessary modulo calculations. 2e27b0e1 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 17, 2008 |
| Committer | Fix a subtle bug exposed by recent wal_sync_method rearrangements. Formerly, the default value of wal_sync_method was determined inside xlog.c, but now it is determined inside guc.c. guc.c was reading xlogdefs.h without having read <fcntl.h>, leading to wrong determination of DEFAULT_SYNC_METHOD. Obviously xlogdefs.h needs to include <fcntl.h> for itself to ensure stable results. 1a604b4e | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 17, 2008 |
| Committer | Remove DEFAULT_SYNC_FLAGBIT ... not used anymore. 55f6f8f2 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 17, 2008 |
| Committer | Allow ALTER SEQUENCE START WITH to change the recorded start_value of a sequence. This seems an obvious extension to the recent patch, and it makes the code noticeably cleaner and more orthogonal. caede71b | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 17, 2008 |
| Committer | Fix declarations of pthread functions, missed in recent commit. 3951fae5 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 16, 2008 |
| Committer | Add a RESTART (without parameter) option to ALTER SEQUENCE, allowing a sequence to be reset to its original starting value. This requires adding the original start value to the set of parameters (columns) of a sequence object, which is a user-visible change with potential compatibility implications; it also forces initdb. 10a3471b | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 16, 2008 |
| Committer | Reduce unnecessary PANIC to ERROR, improve a couple of comments. 8a2f5d22 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 16, 2008 |
| Committer | Recent patch doesn't compile without <limits.h> e7b498bd | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 16, 2008 |
| Committer | Suppress a possibly-uninitialized-variable warning. (I'm only seeing it on Apple's gcc and not my other machines, but still it seems worth getting rid of.) c3fc2bf7 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 16, 2008 |
| Committer | Suppress compiler warning induced by recent header file refactoring. 0ff81a52 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 16, 2008 |
| Committer | Update contrib for tsearch changes. 8461ab5a | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 16, 2008 |
| Committer | Extend GIN to support partial-match searches, and extend tsquery to support prefix matching using this facility. e6dbcb72 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 16, 2008 |
| Committer | Persuade GIN to react to control-C in a reasonable amount of time while building a GIN index. 8282d6fc | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 16, 2008 |
| Committer | Support SQL/PSM-compatible CASE statement in plpgsql. b62f246f | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 15, 2008 |
| CommitterBackported | Add code to eval_const_expressions() to support const-simplification of CoerceViaIO nodes. This improves the ability of the planner to deal with cases where the node input is a constant. Per bug #4170. 0fdb350c | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | May 15, 2008 |
| Committer | Add support for tracking call counts and elapsed runtime for user-defined functions. 93c701ed | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 15, 2008 |
| Committer | Move the "instr_time" typedef and associated macros into a new header file portability/instr_time.h, and add a couple more macros to eliminate some abstraction leakage we formerly had. Also update psql to use this header instead of its own copy of nearly the same code. 3bc25384 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 14, 2008 |
| Committer | Improve plpgsql's RAISE command. It is now possible to attach DETAIL and HINT fields to a user-thrown error message, and to specify the SQLSTATE error code to use. The syntax has also been tweaked so that the Oracle-compatible case "RAISE exception_name" works (though you won't get a very nice error message if you just write that much). Lastly, support the Oracle-compatible syntax "RAISE" with no parameters to re-throw the current error from within an EXCEPTION block. 4107478d | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 13, 2008 |
| Committer | Restore psql's former behavior that padding spaces to the right of the last output column are not emitted. (That change already caused more noise in the regression test output files than I would like.) Provide some needed editorial help for comments, clean up code formatting. 125ed685 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 10, 2008 |
| Committer | Change the rules for inherited CHECK constraints to be essentially the same as those for inherited columns; that is, it's no longer allowed for a child table to not have a check constraint matching one that exists on a parent. This satisfies the principle of least surprise (rows selected from the parent will always appear to meet its check constraints) and eliminates some longstanding bogosity in pg_dump, which formerly had to guess about whether check constraints were really inherited or not. cd902b33 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 09, 2008 |
| CommitterBackported | Fix an ancient oversight in change_varattnos_of_a_node: it neglected to update varoattno along with varattno. This resulted in having Vars that were not seen as equal(), causing inheritance of the "same" constraint from different parent relations to fail. An example is 27731958 | REL8_3_STABLE8.3.2REL8_2_STABLE8.2.8REL8_1_STABLE8.1.12REL8_0_STABLE8.0.16REL7_4_STABLE7.4.20 | No linked thread | May 09, 2008 |
| Committer | Give a warning if -s switch is used with a non-custom pgbench test. Also, clean up the code that assigned the scale into :scale variables. Greg Smith and Tom Lane 6b1b4641 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 09, 2008 |
| Committer | Fix bogus expected output that should have made it quite clear that something was wrong with that tab patch. 706fcbd8 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 09, 2008 |
| Committer | Fix memory stomp that's turning the whole buildfarm pink: you can't hack up pg_wcsformat without changing pg_wcssize to match. Add some comments to try to make that clearer, and make a couple other minor editorializations. e1435983 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 09, 2008 |
| Committer | Fix contrib/xml makefile to not override CFLAGS. d42f2125 | REL8_0_STABLE8.0.16 | No linked thread | May 08, 2008 |
| CommitterBackported | Fix contrib/xml2 makefile to not override CFLAGS. eb23d802 | REL8_2_STABLE8.2.8REL8_1_STABLE8.1.12REL8_0_STABLE8.0.16 | No linked thread | May 08, 2008 |
| CommitterBackported | Fix contrib/xml2 makefile to not override CFLAGS, and in passing make it auto-configure properly for libxslt present or not. eb915caf | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | May 08, 2008 |
| Committer | Fix rules regression test for recent pg_stat_activity change. abb78b1b | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 08, 2008 |
| Committer | The CONSTROID syscache should show conrelid as a relation OID column. Not clear that there's any observable bug at present from this omission, but it seems like something to fix going forward. 053948ae | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 07, 2008 |
| Committer | Convert the list of syscache names from a series of #define's into an enum, to avoid the pain of manually renumbering them anytime we insert another name in alphabetical order. An excellent idea from Alex Hunsaker and NikhilS' inherited-constraints patch --- whether or not the rest of that gets in, this should. Dunno why we never thought of it before. 4136e1d0 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 07, 2008 |
| Committer | Add timestamp and timestamptz versions of generate_series(). b6d15590 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 04, 2008 |
| Committer | Add pg_conf_load_time() function to report when the Postgres configuration files were last loaded. 600da67f | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 04, 2008 |
| Committer | Use new cstring/text conversion functions in some additional places. These changes assume that the varchar and xml data types are represented the same as text. (I did not, however, accept the portions of the proposed patch that wanted to assume bytea is the same as text --- tgl.) 45173ae2 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 04, 2008 |
| CommitterBackported | The 8.2 patch that added support for an alias on the target table of UPDATE/DELETE forgot to teach ruleutils.c to display the alias. Per bug #4141 from Mathias Seiler. c88850f4 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+18 more | No linked thread | May 03, 2008 |
| Committer | Fix plpython to not get totally confused by OUT arguments. (It still doesn't support multiple OUT arguments, though.) bdc7dd67 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 03, 2008 |
| Committer | Support RETURN QUERY EXECUTE in plpgsql. 47391591 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 03, 2008 |
| Committer | Update documentation for psql relation-size-in-\dt+ patch. 511b798c | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 02, 2008 |
| Committer | Allow the planner's estimate of the fraction of a cursor's rows that will be retrieved to be controlled through a GUC variable. db147b34 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 02, 2008 |
| Committer | Extend yesterday's patch making BLCKSZ and RELSEG_SIZE configurable to also let XLOG_BLCKSZ and XLOG_SEG_SIZE be set via configure. Per a proposal by Mark Wong, though I thought it better to call the switches after "wal" rather than "xlog". cf9f6c8d | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 02, 2008 |
| Committer | Sigh ... pg_config.h.win32 needs to define BLCKSZ and RELSEG_SIZE now. 170e331c | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 02, 2008 |
| Committer | Remove the recently added USE_SEGMENTED_FILES option, and indeed remove all support for a nonsegmented mode from md.c. Per recent discussions, there doesn't seem to be much value in a "never segment" option as opposed to segmenting with a suitably large segment size. So instead provide a configure-time switch to set the desired segment size in units of gigabytes. While at it, expose a configure switch for BLCKSZ as well. 3c6248a8 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 02, 2008 |
| Committer | Add SGT (Singapore time) to the default list of known timezone abbreviations. It doesn't conflict with any other abbreviation so there seems no reason not to include it. Per a recent gripe. 94b0b545 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 01, 2008 |
| Committer | Make the minimum allowed value of work_mem be 64KB always, rather than having it vary with BLCKSZ as before. This agrees with what the documentation says, and avoids a regression test problem when BLCKSZ is larger than default. Per recent discussion. 1b1e335b | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | May 01, 2008 |
| CommitterBackported | Fix nodeTidscan.c to not trigger an error if the block number portion of a user-supplied TID is out of range for the relation. This is needed to preserve compatibility with our pre-8.3 behavior, and it is sensible anyway since if the query were implemented by brute force rather than optimized into a TidScan, the behavior for a non-existent TID would be zero rows out, never an error. Per gripe from Gurjeet Singh. 772f63dd | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Apr 30, 2008 |
| Committer | Some minor further cleanup around A_Const. Don't attach a typecast in makeFloatConst, and avoid "manual" construction of A_Const nodes in grammar productions, in favor of using makeXXXConst subroutines. c0cf5c37 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Apr 29, 2008 |
| Committer | Increase the statement_timeout value used in the prepared_xacts regression test. We have seen some buildfarm failures that seem to be due to this limit being unexpectedly exceeded when the machine is under load. 98c4ebd3 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Apr 28, 2008 |
| CommitterBackported | Fix broken configure test for libxslt: it was probing for xsltLibxmlVersion, which is a global variable not a function, and so the probe failed on machines where the linker makes a distinction (cf. Red Hat bug #444317). Probe for an actual function instead. 9c37aa29 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Apr 28, 2008 |
| Committer | Back-patch Heikki's fix to make TransactionIdIsCurrentTransactionId() use binary search instead of linear search when checking child-transaction XIDs. Per example from Robert Treat, the speed of TransactionIdIsCurrentTransactionId is significantly more important in 8.3 than it was in prior releases, so this seems worth taking back-patching risk for. f7288cde | REL8_3_STABLE8.3.2 | No linked thread | Apr 26, 2008 |
| Committer | Code review for recent patch to terminate online backup during shutdown: do CancelBackup at a sane place, fix some oversights in the state transitions, allow only superusers to connect while we are waiting for backup mode to end. ea0382e3 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Apr 26, 2008 |
| Committer | Remove transformAlterTableStmt's kluge to replace ColumnDef.is_not_null flags by separate AT_SetNotNull subcommands. That was always ugly and inefficient, and it's now clear that it was merely a partial workaround for the bug just identified in ATExecAddColumn. This is just code beautification not a bug fix, so no back-patch. 46e9709f | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Apr 24, 2008 |
| CommitterBackported | Fix ALTER TABLE ADD COLUMN ... PRIMARY KEY so that the new column is correctly checked to see if it's been initialized to all non-nulls. The implicit NOT NULL constraint was not being checked during the ALTER (in fact, not even if there was an explicit NOT NULL too), because ATExecAddColumn neglected to set the flag needed to make the test happen. This has been broken since the capability was first added, in 8.0. 5c068038 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+20 more | No linked thread | Apr 24, 2008 |
| Committer | Issue explicit error messages for attempts to use "shell" operators in ordinary expressions. This probably doesn't catch every single case where you might get "cache lookup failed for function 0" for use of a shell operator, but it will catch most. Per bug #4120 from Pedro Gimeno. 1ad76112 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Apr 22, 2008 |
| CommitterBackported | Fix convert_IN_to_join to properly handle the case where the subselect's output is not of the same type that's needed for the IN comparison (ie, where the parser inserted an implicit coercion above the subselect result). We should record the coerced expression, not just a raw Var referencing the subselect output, as the quantity that needs to be unique-ified if we choose to implement the IN as Unique followed by a plain join. ff673f55 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Apr 21, 2008 |
| CommitterBackported | Fix a couple of places in execMain that erroneously assumed that SELECT FOR UPDATE/SHARE couldn't occur as a subquery in a query with a non-SELECT top-level operation. Symptoms included outright failure (as in report from Mark Mielke) and silently neglecting to take the requested row locks. f593f623 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Apr 21, 2008 |
| Committer | Add FLOAT4PASSBYVAL/FLOAT8PASSBYVAL to pg_config.h.win32, as a stopgap measure to get the Windows buildfarm members working again. I don't know if it's worth exposing these as configurables, or exactly how to do it in the MSVC build system ... 819b49a6 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Apr 21, 2008 |
| Committer | Make earthdistance use version-0 calling convention if not USE_FLOAT8_BYVAL, and version-1 if USE_FLOAT8_BYVAL. This might seem a bit pointless, but the idea is to have at least one regression test that will fail if we ever accidentally break version-0 functions that return float8. However, they're already broken, or at least hopelessly unportable, in the USE_FLOAT8_BYVAL case. 3d1588cd | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Apr 21, 2008 |
| Committer | Allow float8, int8, and related datatypes to be passed by value on machines where Datum is 8 bytes wide. Since this will break old-style C functions (those still using version 0 calling convention) that have arguments or results of these types, provide a configure option to disable it and retain the old pass-by-reference behavior. Likewise, provide a configure option to disable the recently-committed float4 pass-by-value change. 8472bf7a | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Apr 21, 2008 |
| Committer | Convert earthdistance's only C function to v1 call convention, to future-proof it against pass-by-value float8. dc192a5d | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Apr 20, 2008 |
| Committer | seg_size() has to be V1 calling convention, too. 7c81d795 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Apr 19, 2008 |
| Committer | Fix typo. 41de1d15 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Apr 18, 2008 |
| CommitterBackported | Fix rmtree() so that it keeps going after failure to remove any individual file; the idea is that we should clean up as much as we can, even if there's some problem removing one file. Make the error messages a bit less misleading, too. In passing, const-ify function arguments. b8e5581d | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Apr 18, 2008 |
| Committer | Cause EXPLAIN's VERBOSE option to print the target list (output column list) of each plan node, instead of its former behavior of dumping the internal representation of the plan tree. The latter display is still available for those who really want it (see debug_print_plan), but uses for it are certainly few and and far between. Per discussion. 87a2f050 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Apr 18, 2008 |
| CommitterBackported | Fix a couple of oversights associated with the "physical tlist" optimization: we had several code paths where a physical tlist could be used for the input to a Sort node, which is a dumb idea because any unneeded table columns will increase the volume of data the sort has to push around. 25e46a50 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Apr 17, 2008 |
| Committer | Add some code to EXPLAIN to show the targetlist (ie, output columns) of each plan node. For the moment this is debug support only and is not enabled unless EXPLAIN_PRINT_TLISTS is defined at build time. Later I'll see about the idea of letting EXPLAIN VERBOSE do it. c5e4e91a | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Apr 17, 2008 |
| CommitterBackported | Repair two places where SIGTERM exit could leave shared memory state corrupted. (Neither is very important if SIGTERM is used to shut down the whole database cluster together, but there's a problem if someone tries to SIGTERM individual backends.) To do this, introduce new infrastructure macros PG_ENSURE_ERROR_CLEANUP/PG_END_ENSURE_ERROR_CLEANUP that take care of transiently pushing an on_shmem_exit cleanup hook. Also use this method for createdb cleanup --- that wasn't a shared-memory-corruption problem, but SIGTERM abort of createdb could leave orphaned files lying around. d1cbd26d | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+18 more | No linked thread | Apr 16, 2008 |
| CommitterBackported | Fix LOAD_CRIT_INDEX() macro to take out AccessShareLock on the system index it is trying to build a relcache entry for. This is an oversight in my 8.2 patch that tried to ensure we always took a lock on a relation before trying to build its relcache entry. The implication is that if someone committed a reindex of a critical system index at about the same time that some other backend were starting up without a valid pg_internal.init file, the second one might PANIC due to not seeing any valid version of the index's pg_class row. Improbable case, but definitely not impossible. 0f45d1eb | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+18 more | No linked thread | Apr 16, 2008 |
| Committer | Push index operator lossiness determination down to GIST/GIN opclass "consistent" functions, and remove pg_amop.opreqcheck, as per recent discussion. The main immediate benefit of this is that we no longer need 8.3's ugly hack of requiring @@@ rather than @@ to test weight-using tsquery searches on GIN indexes. In future it should be possible to optimize some other queries better than is done now, by detecting at runtime whether the index match is exact or not. 9b5c8d45 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Apr 14, 2008 |
| Committer | Since createplan.c no longer cares whether index operators are lossy, it has no particular need to do get_op_opfamily_properties() while building an indexscan plan. Postpone that lookup until executor start. This simplifies createplan.c a lot more than it complicates nodeIndexscan.c, and makes things more uniform since we already had to do it that way for RowCompare expressions. Should be a bit faster too, at least for plans that aren't re-used many times, since we avoid palloc'ing and perhaps copying the intermediate list data structure. 226837e5 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Apr 13, 2008 |
| Committer | Phase 2 of project to make index operator lossiness be determined at runtime instead of plan time. Extend the amgettuple API so that the index AM returns a boolean indicating whether the indexquals need to be rechecked, and make that rechecking happen in nodeIndexscan.c (currently the only place where it's expected to be needed; other callers of index_getnext are just erroring out for now). For the moment, GIN and GIST have stub logic that just always sets the recheck flag to TRUE --- I'm hoping to get Teodor to handle pushing that control down to the opclass consistent() functions. The planner no longer pays any attention to amopreqcheck, and that catalog column will go away in due course. 24558da1 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Apr 13, 2008 |
| Committer | Turn the -i/--ignore-version options of pg_dump and pg_dumpall into no-ops: the server version check is now always enforced. Relax the version check to allow a server that is of pg_dump's own major version but a later minor version; this is the only case that -i was at all safe to use in. c22ed3d5 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Apr 13, 2008 |
| Committer | Clean up a few places where Datums were being treated as pointers without going through DatumGetPointer or some other "official" conversion macro. Not actually a bug, since Datum the same size as pointer is the only supported case at the moment, but good cleanup for the future. ba1c4630 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Apr 12, 2008 |
| Committer | Create new routines systable_beginscan_ordered, systable_getnext_ordered, systable_endscan_ordered that have API similar to systable_beginscan etc (in particular, the passed-in scankeys have heap not index attnums), but guarantee ordered output, unlike the existing functions. For the moment these are just very thin wrappers around index_beginscan/index_getnext/etc. Someday they might need to get smarter; but for now this is just a code refactoring exercise to reduce the number of direct callers of index_getnext, in preparation for changing that function's API. ec498cdc | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Apr 12, 2008 |
| CommitterBackported | A quick try at un-breaking the Cygwin build. Whether it needs the pgwin32_safestat remains to be determined, but in any case the current code is not tolerable. 00832809 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+18 more | No linked thread | Apr 11, 2008 |
| Committer | Add some debug support code to try to catch future mistakes in the area of input functions that include garbage bytes in their results. Provide a compile-time option RANDOMIZE_ALLOCATED_MEMORY to make palloc fill returned blocks with variable contents. This option also makes the parser perform conversions of literal constants twice and compare the results, emitting a WARNING if they don't match. (This is the code I used to catch the input function bugs fixed in the previous commit.) For the moment, I've set it to be activated automatically by --enable-cassert. 65c3d05e | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Apr 11, 2008 |
| CommitterBackported | Fix several datatype input functions that were allowing unused bytes in their results to contain uninitialized, unpredictable values. While this was okay as far as the datatypes themselves were concerned, it's a problem for the parser because occurrences of the "same" literal might not be recognized as equal by datumIsEqual (and hence not by equal()). It seems sufficient to fix this in the input functions since the only critical use of equal() is in the parser's comparisons of ORDER BY and DISTINCT expressions. Per a trouble report from Marc Cousin. c846f7ca | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+21 more | No linked thread | Apr 11, 2008 |
| Committer | Replace "amgetmulti" AM functions with "amgetbitmap", in which the whole indexscan always occurs in one call, and the results are returned in a TIDBitmap instead of a limited-size array of TIDs. This should improve speed a little by reducing AM entry/exit overhead, and it is necessary infrastructure if we are ever to support bitmap indexes. 4e82a954 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Apr 10, 2008 |
| CommitterBackported | Fix tsvector_update_trigger() to be domain-friendly: it needs to allow all the columns it works with to be domains over the expected type, not just exactly the expected type. In passing, fix ts_stat() the same way. Per report from Markus Wollny. 635aaab2 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Apr 08, 2008 |
| Committer | Make plpgsql support FOR over a query specified by a cursor declaration, for improved compatibility with Oracle. 347dd6a1 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Apr 06, 2008 |
| Committer | Improve hash_any() to use word-wide fetches when hashing suitably aligned data. This makes for a significant speedup at the cost that the results now vary between little-endian and big-endian machines; which forces us to add explicit ORDER BYs in a couple of regression tests to preserve machine-independent comparison results. Also, force initdb by bumping catversion, since the contents of hash indexes will change (at least on big-endian machines). 26043592 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Apr 06, 2008 |
| Committer | A small visit from the portability and localization police. d785b39f | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Apr 05, 2008 |
| CommitterBackported | Defend against JOINs having more than 32K columns altogether. We cannot currently support this because we must be able to build Vars referencing join columns, and varattno is only 16 bits wide. Perhaps this should be improved in future, but considering that it never came up before, I'm not sure the problem is worth much effort. Per bug #4070 from Marcello Ceschia. ceb5db69 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+21 more | No linked thread | Apr 05, 2008 |
| Committer | Re-implement division for numeric values using the traditional "schoolbook" algorithm. This is a good deal slower than our old roundoff-error-prone code for long inputs, so we keep the old code for use in the transcendental functions, where everything is approximate anyway. Also create a user-accessible function div(numeric, numeric) to provide access to the exact result of trunc(x/y) --- since the regular numeric / operator will round off its result, simply computing that expression in SQL doesn't reliably give the desired answer. This fixes bug #3387 and various related corner cases, and improves the usefulness of PG for high-precision integer arithmetic. a0fad976 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Apr 04, 2008 |
| Committer | Remove no-longer-used function assign_backslash_quote() a051ab0a | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Apr 04, 2008 |
| Committer | Add a variant of the Levenshtein string-distance function that lets the user specify the cost values to use, instead of always using 1's. Volkan Yazici 55f6e5f6 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Apr 03, 2008 |
| Committer | Remove heap_release_fetch, which is no longer used anywhere; this simplifies heap_fetch a little. b0327159 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Apr 03, 2008 |
| CommitterBackported | Teach ANALYZE to distinguish dead and in-doubt tuples, which it formerly classed all as "dead"; also get it to count DEAD item pointers as dead rows, instead of ignoring them as before. Also improve matters so that tuples previously inserted or deleted by our own transaction are handled nicely: the stats collector's live-tuple and dead-tuple counts will end up correct after our transaction ends, regardless of whether we end in commit or abort. 51e1445f | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Apr 03, 2008 |
| CommitterBackported | Revert my bad decision of about a year ago to make PortalDefineQuery responsible for copying the query string into the new Portal. Such copying is unnecessary in the common code path through exec_simple_query, and in this case it can be enormously expensive because the string might contain a large number of individual commands; we were copying the entire, long string for each command, resulting in O(N^2) behavior for N commands. (This is the cause of bug #4079.) A second problem with it is that PortalDefineQuery really can't risk error, because if it elog's before having set up the Portal, we will leak the plancache refcount that the caller is trying to hand off to the portal. So go back to the design in which the caller is responsible for making sure everything is copied into the portal if necessary. 1591fcbe | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Apr 02, 2008 |
| Committer | Support EXECUTE USING in plpgsql. e2a88043 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Apr 01, 2008 |
| Committer | Add SPI-level support for executing SQL commands with one-time-use plans, that is commands that have out-of-line parameters but the plan is prepared assuming that the parameter values are constants. This is needed for the plpgsql EXECUTE USING patch, but will probably have use elsewhere. d5466e38 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Apr 01, 2008 |
| CommitterBackported | Fix an oversight I made in a cleanup patch over a year ago: eval_const_expressions needs to be passed the PlannerInfo ("root") structure, because in some cases we want it to substitute values for Param nodes. (So "constant" is not so constant as all that ...) This mistake partially disabled optimization of unnamed extended-Query statements in 8.3: in particular the LIKE-to-indexscan optimization would never be applied if the LIKE pattern was passed as a parameter, and constraint exclusion depending on a parameter value didn't work either. 6b73d7e5 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Apr 01, 2008 |
| CommitterBackported | Apply my original fix for Taiki Yamaguchi's bug report about DISTINCT MAX(). Add some regression tests for plausible failures in this area. d3441155 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Mar 31, 2008 |
| Committer | Fix my brain fade in TRUNCATE triggers patch: can't release relcache refcounts while EState still contains pointers to those relations. Exposed by the CLOBBER_CACHE_ALWAYS tests that buildfarm member jaguar is running (I knew those cycles would pay off...) e86237ff | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 31, 2008 |
| Committer | Use error message wordings for permissions checks on .pgpass and SSL private key files that are similar to the one for the postmaster's data directory permissions check. (I chose to standardize on that one since it's the most heavily used and presumably best-wordsmithed by now.) Also eliminate explicit tests on file ownership in these places, since the ensuing read attempt must fail anyway if it's wrong, and there seems no value in issuing the same error message for distinct problems. (But I left in the explicit ownership test in postmaster.c, since it had its own error message anyway.) Also be more specific in the documentation's descriptions of these checks. Per a gripe from Kevin Hunter. 3405f2b9 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 31, 2008 |
| CommitterBackported | Fix a number of places that were making file-type tests infelicitously. The places that did, eg, (statbuf.st_mode & S_IFMT) == S_IFDIR were correct, but there is no good reason not to use S_ISDIR() instead, especially when that's what the other 90% of our code does. The places that did, eg, (statbuf.st_mode & S_IFDIR) were flat out *wrong* and would fail in various platform-specific ways, eg a symlink could be mistaken for a regular file on most Unixen. c5f11f9d | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+20 more | No linked thread | Mar 31, 2008 |
| Committer | Show database access privileges in psql's \l command. For \l+, also show database size, when available to the current user. b65a5097 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 30, 2008 |
| Committer | Display incoming as well as outgoing foreign-key constraints in psql's \d output for a table. 2be368a5 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 30, 2008 |
| Committer | Improve description of \du and \dg, per suggestion from Harald Armin Massa. 2f6e61b8 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 29, 2008 |
| Committer | Improve psql's tab completion to handle completing attribute names in cases where the relation name was schema-qualified, for example UPDATE foo.bar SET <tab> Also support cases where the relation name was quoted unnecessarily, for example UPDATE "foo" SET <tab> 5787d50a | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 29, 2008 |
| CommitterBackported | Revert my erroneous fix for Taiki Yamaguchi's DISTINCT MAX() bug. Whatever we do about that, this isn't the path to the solution. 6fc9d427 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Mar 29, 2008 |
| Committer | Department of second thoughts: the rule that ORDER BY and DISTINCT are useless for an ungrouped-aggregate query holds regardless of whether optimize_minmax_aggregates succeeds. So we might as well apply the optimization in any case. 2e4094da | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 28, 2008 |
| Committer | Support statement-level ON TRUNCATE triggers. Simon Riggs 7692d8d5 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 28, 2008 |
| CommitterBackported | When we have successfully optimized a MIN or MAX aggregate into an indexscan, the query result must be exactly one row (since we don't do this when there's any GROUP BY). Therefore any ORDER BY or DISTINCT attached to the query is useless and can be dropped. Aside from saving useless cycles, this protects us against problems with matching the hacked-up tlist entries to sort clauses, as seen in a bug report from Taiki Yamaguchi. We might need to work harder if we ever try to optimize grouped queries with this approach, but this solution will do for now. ff72280c | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Mar 27, 2008 |
| Committer | Reduce the need for frontend programs to include "postgres.h" by refactoring inclusions in src/include/catalog/*.h files. The main idea here is to push function declarations for src/backend/catalog/*.c files into separate headers, rather than sticking them into the corresponding catalog definition file as has been done in the past. This commit only carries out that idea fully for pg_proc, pg_type and pg_conversion, but that's enough for the moment --- if pg_list.h ever becomes unsafe for frontend code to include, we'll need to work a bit more. 039dfbfd | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 27, 2008 |
| Committer | Fix bad spelling and worse grammar in recent doc commits. Propagate pg_dump --ignore-version comments into pg_dumpall and pg_restore pages. 2d013c41 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 26, 2008 |
| CommitterBackported | Fix core dump in contrib/xml2's xpath_table() when the input query returns a NULL value. Per bug #4058. ff8a1204 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+20 more | No linked thread | Mar 26, 2008 |
| Committer | Simplify and standardize conversions between TEXT datums and ordinary C strings. This patch introduces four support functions cstring_to_text, cstring_to_text_with_len, text_to_cstring, and text_to_cstring_buffer, and two macros CStringGetTextDatum and TextDatumGetCString. A number of existing macros that provided variants on these themes were removed. 220db7cc | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 25, 2008 |
| CommitterBackported | When a relation has been proven empty by constraint exclusion, propagate that knowledge up through any joins it participates in. We were doing that already in some special cases but not in the general case. Also, defend against zero row estimates for the input relations in cost_mergejoin --- this fix may have eliminated the only scenario in which that can happen, but be safe. Per report from Alex Solovey. fd791e7b | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Mar 24, 2008 |
| Committer | Use new errdetail_log() mechanism to provide a less klugy way of reporting large numbers of dependencies on a role that couldn't be dropped. Per a comment from Alvaro. 2a346725 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 24, 2008 |
| CommitterBackported | Fix various infelicities that have snuck into usage of errdetail() and friends. Avoid double translation of some messages, ensure other messages are exposed for translation (and make them follow the style guidelines), avoid unsafe passing of an unpredictable message text as a format string. 32b58d02 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Mar 24, 2008 |
| Committer | Adjust the recent patch for reporting of deadlocked queries so that we report query texts only to the server log. This eliminates the issue of possible leaking of security-sensitive data in other sessions' queries. Since the log is presumed secure, we can now log the queries of all sessions involved in the deadlock, whether or not they belong to the same user as the one reporting the failure. 9b8e1eb3 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 24, 2008 |
| Committer | Add a new ereport auxiliary function errdetail_log(), which works the same as errdetail except the string goes only to the server log, replacing the normal errdetail there. This provides a reasonably clean way of dealing with error details that are too security-sensitive or too bulky to send to the client. 05fc744b | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 24, 2008 |
| Committer | Avoid a useless tuple copy within nodeMaterial. Neil Conway 598b97dc | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 23, 2008 |
| Committer | Create a function quote_nullable(), which works the same as quote_literal() except that it returns the string 'NULL', rather than a SQL null, when called with a null argument. This is often a much more useful behavior for constructing dynamic queries. Add more discussion to the documentation about how to use these functions. 7de81124 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 23, 2008 |
| Committer | Refactor to_char/to_date formatting code; primarily, replace DCH_processor with two new functions DCH_to_char and DCH_from_char that have less confusing APIs. Brendan Jurd 19595835 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 22, 2008 |
| Committer | Remove TypeName struct's timezone flag, which has been write-only storage for a very long time --- in current usage it's entirely redundant with the name field. 58a82855 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 21, 2008 |
| Committer | Give an explicit error for serial[], rather than silently ignoring the array decoration as the code had been doing. 20e82a7c | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 21, 2008 |
| Committer | Report the current queries of all backends involved in a deadlock (if they'd be visible to the current user in pg_stat_activity). 4b7ae4af | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 21, 2008 |
| Committer | Adjust pgstatindex() to give correct answers for indexes larger than 2^31 blocks. Also fix pg_relpages() for the same case. Tatsuhito Kasahara d287818e | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 21, 2008 |
| Committer | Get rid of a bunch of #ifdef HAVE_INT64_TIMESTAMP conditionals by inventing a new typedef TimeOffset to represent an intermediate time value. It's either int64 or double as appropriate, and in most usages will be measured in microseconds or seconds the same as Timestamp. We don't call it Timestamp, though, since the value doesn't necessarily represent an absolute time instant. 2d0583a1 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 21, 2008 |
| Committer | Arrange for an explicit cast applied to an ARRAY[] constructor to be applied directly to all the member expressions, instead of the previous implementation where the ARRAY[] constructor would infer a common element type and then we'd coerce the finished array after the fact. This has a number of benefits, one being that we can allow an empty ARRAY[] construct so long as its element type is specified by such a cast. 6b0706ac | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 20, 2008 |
| Committer | Dept of second thoughts: --no-tablespaces had better also prevent pg_dumpall from attaching TABLESPACE options to CREATE DATABASE commands. 27dfc11d | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 20, 2008 |
| Committer | Support a --no-tablespaces option in pg_dump/pg_dumpall/pg_restore, so that dumps can be loaded into databases without the same tablespaces that the source had. The option acts by suppressing all "SET default_tablespace" commands, and also CREATE TABLESPACE commands in pg_dumpall's case. 68528d37 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 20, 2008 |
| Committer | Support ALTER TYPE RENAME. Petr Jelinek 5507b22d | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 19, 2008 |
| CommitterBackported | Fix regexp substring matching (substring(string from pattern)) for the corner case where there is a match to the pattern overall but the user has specified a parenthesized subexpression and that subexpression hasn't got a match. An example is substring('foo' from 'foo(bar)?'). This should return NULL, since (bar) isn't matched, but it was mistakenly returning the whole-pattern match instead (ie, 'foo'). Per bug #4044 from Rui Martins. 965a2a19 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+21 more | No linked thread | Mar 19, 2008 |
| Committer | Arrange to "inline" SQL functions that appear in a query's FROM clause, are declared to return set, and consist of just a single SELECT. We can replace the FROM-item with a sub-SELECT and then optimize much as if we were dealing with a view. Patch from Richard Rowell, cleaned up by me. 0d49838d | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 18, 2008 |
| Committer | Advance multiple array keys rightmost-first instead of leftmost-first during a bitmap index scan. This cannot affect the query results (since we're just dumping the TIDs into a bitmap) but it might offer some advantage in locality of access to the index. Per Greg Stark. 8e850b91 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 18, 2008 |
| Committer | Fix our printf implementation to follow spec: if a star parameter value for a precision is negative, act as though precision weren't specified at all, that is the whole .* part of the format spec should be ignored. Our previous coding took it as .0 which is certainly wrong. Per report from Kris Jurka and local testing. 206b1e55 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 18, 2008 |
| Committer | Revert thinko introduced into prefix_selectivity() by my recent patch: make_greater_string needs the < procedure not the >= one. Spotted by Peter. 164899db | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 17, 2008 |
| Committer | Grab some low-hanging fruit in the new hash index build code. oprofile shows that a nontrivial amount of time is being spent in repeated calls to index_getprocinfo, which really only needs to be called once. So do that, and inline _hash_datum2hashkey to make it work. 0c5962c0 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 17, 2008 |
| Committer | Fix TransactionIdIsCurrentTransactionId() to use binary search instead of linear search when checking child-transaction XIDs. This makes for an important speedup in transactions that have large numbers of children, as in a recent example from Craig Ringer. We can also get rid of an ugly kluge that represented lists of TransactionIds as lists of OIDs. 32846f81 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 17, 2008 |
| Committer | Add a note to the CREATE INDEX reference page about the impact of maintenance_work_mem and effective_cache_size on index creation speed. ff213239 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 16, 2008 |
| Committer | When creating a large hash index, pre-sort the index entries by estimated bucket number, so as to ensure locality of access to the index during the insertion step. Without this, building an index significantly larger than available RAM takes a very long time because of thrashing. On the other hand, sorting is just useless overhead when the index does fit in RAM. We choose to sort when the initial index size exceeds effective_cache_size. 787eba73 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 16, 2008 |
| Committer | Change hash index creation so that rather than always establishing exactly two buckets at the start, we create a number of buckets appropriate for the estimated size of the table. This avoids a lot of expensive bucket-split actions during initial index build on an already-populated table. c9a1cc69 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 15, 2008 |
| CommitterBackported | Fix inappropriately-timed memory context switch in autovacuum_do_vac_analyze. This accidentally failed to fail before 8.3, because the context we were switching back to was long-lived anyway; but it sure looks risky as can be now. Well spotted by Pavan Deolasee. 4873c96f | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Mar 14, 2008 |
| Committer | Stamp version 8.2.7, except for configure.in/configure. 3dbe7e40 | REL8_2_STABLE8.2.7 | No linked thread | Mar 13, 2008 |
| Committer | Stamp version 8.3.1, except for configure.in/configure. eb66892e | REL8_3_STABLE8.3.1 | No linked thread | Mar 13, 2008 |
| CommitterBackported | Update release notes for 8.3.1 and 8.2.7 releases. be5d6df3 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+18 more | No linked thread | Mar 13, 2008 |
| CommitterBackported | Update to tzdata 2008a distribution (Chilean DST law change). d31fb0e6 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+20 more | No linked thread | Mar 13, 2008 |
| CommitterBackported | Fix varstr_cmp's special case for UTF8 encoding on Windows so that strings that are reported as "equal" by wcscoll() are checked to see if they really are bitwise equal, and are sorted per strcmp() if not. We made this happen a couple of years ago in the regular code path, but it unaccountably got left out of the Windows/UTF8 case (probably brain fade on my part at the time). As in the prior set of changes, affected users may need to reindex indexes on textual columns. 5e00913d | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+18 more | No linked thread | Mar 13, 2008 |
| CommitterBackported | Fix heap_page_prune's problem with failing to send cache invalidation messages if the calling transaction aborts later on. Collapsing out line pointer redirects is a done deal as soon as we complete the page update, so syscache *must* be notified even if the VACUUM FULL as a whole doesn't complete. To fix, add some functionality to inval.c to allow the pending inval messages to be sent immediately while heap_page_prune is still running. The implementation is a bit chintzy: it will only work in the context of VACUUM FULL. But that's all we need now, and it can always be extended later if needed. Per my trouble report of a week ago. 3e701a04 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Mar 13, 2008 |
| CommitterBackported | Fix pg_plan_queries() to restore the previous setting of ActiveSnapshot (probably NULL) before exiting. Up to now it's just left the variable as it set it, which means that after we're done processing the current client message, ActiveSnapshot is probably pointing at garbage (because this function is typically run in MessageContext which will get reset). There doesn't seem to have been any code path in which that mattered before 8.3, but now the plancache module might try to use the stale value if the next client message is a Bind for a prepared statement that is in need of replanning. Per report from Alex Hunsaker. da6a707c | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Mar 12, 2008 |
| CommitterBackported | Fix LISTEN/NOTIFY race condition reported by Laurent Birtz, by postponing pg_listener modifications commanded by LISTEN and UNLISTEN until the end of the current transaction. This allows us to hold the ExclusiveLock on pg_listener until after commit, with no greater risk of deadlock than there was before. Aside from fixing the race condition, this gets rid of a truly ugly kludge that was there before, namely having to ignore HeapTupleBeingUpdated failures during NOTIFY. There is a small potential incompatibility, which is that if a transaction issues LISTEN or UNLISTEN and then looks into pg_listener before committing, it won't see any resulting row insertion or deletion, where before it would have. It seems unlikely that anyone would be depending on that, though. 033eb158 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+21 more | No linked thread | Mar 12, 2008 |
| Committer | Add a comment explaining one of the ways that pgbench fails to fully comply with TPC-B. Per Itagaki Takahiro and discussion of bug#3681. b7a67c28 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 12, 2008 |
| Committer | Make TransactionIdIsInProgress check transam.c's single-item XID status cache before it goes groveling through the ProcArray. In situations where the same recently-committed transaction ID is checked repeatedly by tqual.c, this saves a lot of shared-memory searches. And it's cheap enough that it shouldn't hurt noticeably when it doesn't help. Concept and patch by Simon, some minor tweaking and comment-cleanup by Tom. 611b4393 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 11, 2008 |
| CommitterBackported | Use -fwrapv in CFLAGS if we are using a version of gcc that accepts this flag. This prevents compiler optimizations that assume overflow won't occur, which breaks numerous overflow tests that we need to have working. It is known that gcc 4.3 causes problems and possible that 4.1 does. Per my proposal of some time ago and a recent report from Kris Jurka. fe83a3fd | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+20 more | No linked thread | Mar 10, 2008 |
| Committer | Provide a build-time option to store large relations as single files, rather than dividing them into 1GB segments as has been our longtime practice. This requires working support for large files in the operating system; at least for the time being, it won't be the default. f0828b2f | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 10, 2008 |
| Committer | Fix unportable coding of new error message, per Kris Jurka. 9d966c2e | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 10, 2008 |
| Committer | Document and enforce that the usable range of setseed() arguments is -1 to 1, not 0 to 1. The actual behavior for values within this range does not change. Kris Jurka 23c356cc | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 10, 2008 |
| Committer | Throw an error for negative LIMIT or OFFSET values, instead of silently treating them as zero. Simon Riggs bfce56ee | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 10, 2008 |
| Committer | Increase the default value of log_min_messages to WARNING, so that NOTICE-grade messages are not logged by default. Per pgsql-hackers discussion back on 21-Nov-2007. 2abf130a | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 10, 2008 |
| Committer | Add a CaseSensitive parameter to synonym dictionaries. Simon Riggs 7953fdcd | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 10, 2008 |
| Committer | Remove no-longer-used XLogCacheByte field of XLogCtl. Itagaki Takahiro 2fc27954 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 10, 2008 |
| Committer | Reduce memory consumption during VACUUM of large relations, by using FSMPageData (6 bytes) instead of PageFreeSpaceInfo (8 or 16 bytes) for the temporary array of page-free-space information. 3fcc7e8e | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 10, 2008 |
| Committer | Fix pgbench's getrand() function so that min and max have approximately the same chance of being selected as do numbers between them. Problem noted by Greg Stark; fix by Alexey Klyukin. 9537739f | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 10, 2008 |
| Committer | Remove postmaster.c's check that NBuffers is at least twice MaxBackends. With the addition of multiple autovacuum workers, our choices were to delete the check, document the interaction with autovacuum_max_workers, or complicate the check to try to hide that interaction. Since this restriction has never been adequate to ensure backends can't run out of pinnable buffers, it doesn't really have enough excuse to live to justify the second or third choices. Per discussion of a complaint from Andreas Kling (see also bug #3888). d9384a4b | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 09, 2008 |
| Committer | Change patternsel() so that instead of switching from a pure pattern-examination heuristic method to purely histogram-driven selectivity at histogram size 100, we compute both estimates and use a weighted average. The weight put on the heuristic estimate decreases linearly with histogram size, dropping to zero for 100 or more histogram entries. Likewise in ltreeparentsel(). After a patch by Greg Stark, though I reorganized the logic a bit to give the caller of histogram_selectivity() more control. f4230d29 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 09, 2008 |
| Committer | Modify prefix_selectivity() so that it will never estimate the selectivity of the generated range condition var >= 'foo' AND var < 'fop' as being less than what eqsel() would estimate for var = 'foo'. This is intuitively reasonable and it gets rid of the need for some entirely ad-hoc coding we formerly used to reject bogus estimates. The basic problem here is that if the prefix is more than a few characters long, the two boundary values are too close together to be distinguishable by comparison to the column histogram, resulting in a selectivity estimate of zero, which is often not very sane. Change motivated by an example from Peter Eisentraut. 422495d0 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 08, 2008 |
| CommitterBackported | Refactor heap_page_prune so that instead of changing item states on-the-fly, it accumulates the set of changes to be made and then applies them. It had to accumulate the set of changes anyway to prepare a WAL record for the pruning action, so this isn't an enormous change; the only new complexity is to not doubly mark tuples that are visited twice in the scan. The main advantage is that we can substantially reduce the scope of the critical section in which the changes are applied, thus avoiding PANIC in foreseeable cases like running out of memory in inval.c. A nice secondary advantage is that it is now far clearer that WAL replay will actually do the same thing that the original pruning did. 6f10eb21 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Mar 08, 2008 |
| Committer | Improve pglz_decompress() so that it cannot clobber memory beyond the available output buffer when presented with corrupt input. Some testing suggests that this slows the decompression loop about 1%, which seems an acceptable price to pay for more robustness. (Curiously, the penalty seems to be *less* on not-very-compressible data, which I didn't expect since the overhead per output byte ought to be more in the literal-bytes path.) 9c767ad5 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 08, 2008 |
| Committer | This patch addresses some issues in TOAST compression strategy that were discussed last year, but we felt it was too late in the 8.3 cycle to change the code immediately. Specifically, the patch: ad434473 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Mar 07, 2008 |
| CommitterBackported | Change hashscan.c to keep its list of active hash index scans in TopMemoryContext, rather than scattered through executor per-query contexts. This poses no danger of memory leak since the ResourceOwner mechanism guarantees release of no-longer-needed items. It is needed because the per-query context might already be released by the time we try to clean up the hash scan list. Report by ykhuang, diagnosis by Heikki. 6a178266 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+20 more | No linked thread | Mar 07, 2008 |
| CommitterBackported | In PrepareToInvalidateCacheTuple, don't force initialization of catalog caches that we don't actually need to touch. This saves some trivial number of cycles and avoids certain cases of deadlock when doing concurrent VACUUM FULL on system catalogs. Per report from Gavin Roy. 649e856c | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+18 more | No linked thread | Mar 05, 2008 |
| CommitterBackported | Include -lgss in libpq link, if available. Bjorn Munch 0e50b080 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Mar 05, 2008 |
| CommitterBackported | Fix PREPARE TRANSACTION to reject the case where the transaction has dropped a temporary table; we can't support that because there's no way to clean up the source backend's internal state if the eventual COMMIT PREPARED is done by another backend. This was checked correctly in 8.1 but I broke it in 8.2 :-(. Patch by Heikki Linnakangas, original trouble report by John Smith. 7d6e6e2e | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+18 more | No linked thread | Mar 04, 2008 |
| CommitterBackported | Venezuela Time now means UTC-4:30, not UTC-4:00. Adjust our treatment of "VET" accordingly. Per bug #3997 from Aaron Mizrachi. 0f855d62 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+18 more | No linked thread | Mar 02, 2008 |
| CommitterBackported | Fix another place that was assuming that a local variable declared as "struct varlena" would be at least word-aligned. Per buildfarm results from gypsy_moth. I did a little bit of trawling for other instances of this coding pattern, and didn't find any; but if we turn up any more of them I think we'd better revert the "char [4]" patch and find another way of making tuptoaster.c alignment-safe. d50e256b | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Mar 01, 2008 |
| CommitterBackported | Fix unportable usages of tolower(). On signed-char machines, it is necessary to explicitly cast the output back to char before comparing it to a char value, else we get the wrong result for high-bit-set characters. Found by Rolf Jentsch. Also, fix several places where <ctype.h> functions were being called without casting the argument to unsigned char; this is likewise unportable, but we keep making that mistake :-(. These found by buildfarm member salamander, which I will desperately miss if it ever goes belly-up. e04fa58d | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Mar 01, 2008 |
| CommitterBackported | Disable the undocumented xmlvalidate() function, which was unintentionally left in the code though it was not meant to be provided. It represents a security hole because unprivileged users could use it to look at (at least the first line of) any file readable by the backend. Fortunately, this is only possible if the backend was built with XML support, so the damage is at least mitigated; and 8.3 probably hasn't propagated into any security-critical uses yet anyway. Per report from Sergey Burladyan. 3bf822c4 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Mar 01, 2008 |
| CommitterBackported | Reducing the assumed alignment of struct varlena means that the compiler is also licensed to put a local variable declared that way at an unaligned address. Which will not work if the variable is then manipulated with SET_VARSIZE or other macros that assume alignment. So the previous patch is not an unalloyed good, but on balance I think it's still a win, since we have very few places that do that sort of thing. Fix the one place in tuptoaster.c that does it. Per buildfarm results from gypsy_moth (I'm a bit surprised that only one machine showed a failure). c67f6f2f | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Feb 29, 2008 |
| CommitterBackported | If RelationBuildDesc() fails to open a critical system index, PANIC with a relevant error message instead of just dumping core. Odd that nobody reported this before Darren Reed. 1743778d | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+21 more | No linked thread | Feb 27, 2008 |
| CommitterBackported | Fix encode(...bytea..., 'escape') so that it converts all high-bit-set byte values into \nnn octal escape sequences. When the database encoding is multibyte this is *necessary* to avoid generating invalidly encoded text. Even in a single-byte encoding, the old behavior seems very hazardous --- consider for example what happens if the text is transferred to another database with a different encoding. Decoding would then yield some other bytea value than what was encoded, which is surely undesirable. Per gripe from Hernan Gonzalez. fd15dba5 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Feb 26, 2008 |
| Committer | Reject year zero during datetime input, except when it's a 2-digit year (then it means 2000 AD). Formerly we silently interpreted this as 1 BC, which at best is unwarranted familiarity with the implementation. It's barely possible that some app somewhere expects the old behavior, though, so we won't back-patch this into existing release branches. bc93919b | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Feb 25, 2008 |
| CommitterBackported | Fix datetime input to behave correctly for Feb 29 in years BC. 05506fc4 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+20 more | No linked thread | Feb 25, 2008 |
| CommitterBackported | Use our own getopt() and getopt_long() on Solaris, because that platform's versions don't handle long options the way we want. Per Zdenek Kotala. ad20c990 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+21 more | No linked thread | Feb 24, 2008 |
| CommitterBackported | Avoid trying to print a NULL char pointer in --describe-config. On some platforms this works, but on some it crashes. Zdenek Kotala 2e0e5631 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+21 more | No linked thread | Feb 23, 2008 |
| CommitterBackported | Change the declaration of struct varlena so that the length word is represented as "char ...[4]" not "int32". Since the length word is never supposed to be accessed via this struct member anyway, this won't break any existing code that is following the rules. The advantage is that C compilers will no longer assume that a pointer to struct varlena is word-aligned, which prevents incorrect optimizations in TOAST-pointer access and perhaps other places. gcc doesn't seem to do this (at least not at -O2), but the problem is demonstrable on some other compilers. 9713c063 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Feb 23, 2008 |
| Committer | Rename miscadmin.h's PG_VERSIONSTR macro to PG_BACKEND_VERSIONSTR to make it a bit clearer what it is, and get rid of duplicate definitions in initdb and pg_ctl. 870993e8 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Feb 20, 2008 |
| Committer | Make pg_regress -V consistent with the corresponding code in other programs: use puts with a compile-time-constant string. 8dd6c4b4 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Feb 20, 2008 |
| CommitterBackported | Fix mistakes in pg_ctl's code for "start -w" that tries to cope with non-default settings for the postmaster's port number. The code to parse command line options and postgresql.conf entries wasn't quite right about whitespace or quotes, and it was coded in a not-very-readable way too. Per bug #3969 from Itagaki Takahiro, though this is more extensive than his proposed patch (which fixed only the whitespace problem). This code has been broken since it was put in in 8.0, so patch all the way back. 7454515e | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+20 more | No linked thread | Feb 20, 2008 |
| CommitterBackported | Put a CHECK_FOR_INTERRUPTS call into the loops that try to find a unique new OID or new relfilenode. If the existing OIDs are sufficiently densely populated, this could take a long time (perhaps even be an infinite loop), so it seems wise to allow the system to respond to a cancel interrupt here. Per a gripe from Jacky Leng. 5ce6829b | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+19 more | No linked thread | Feb 20, 2008 |
| CommitterBackported | Remove unnecessary opening of other relation in RI_FKey_keyequal_upd_pk and RI_FKey_keyequal_upd_fk, as well as no-longer-needed calls of ri_BuildQueryKeyFull. Aside from saving a few cycles, this avoids needless deadlock risks when an update is not changing the columns that participate in an RI constraint. Per a gripe from Alexey Nalbat. cf59277a | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Feb 18, 2008 |
| Committer | Add back #include <time.h> in a couple of files that seem to need it on Linux. 8b63aa1f | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Feb 17, 2008 |
| Committer | Replace time_t with pg_time_t (same values, but always int64) in on-disk data structures and backend internal APIs. This solves problems we've seen recently with inconsistent layout of pg_control between machines that have 32-bit time_t and those that have already migrated to 64-bit time_t. Also, we can get out from under the problem that Windows' Unix-API emulation is not consistent about the width of time_t. cd004067 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Feb 17, 2008 |
| Committer | Update docs to reflect the fact that we can now deal with DST rules outside the 32-bit-time_t range. Also, refer to Olson's tz database as the 'zoneinfo' database, a name that upstream sometimes uses, not 'zic database' which they never use. 2874d38d | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Feb 16, 2008 |
| Committer | Update timezone code to track the upstream changes since 2003. In particular this adds support for 64-bit tzdata files, which is needed to support DST calculations beyond 2038. Add a regression test case to give some minimal confidence that that really works. 0171e72d | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Feb 16, 2008 |
| Committer | Allow AS to be omitted when specifying an output column name in SELECT (or RETURNING), but only when the output name is not any SQL keyword. This seems as close as we can get to the standard's syntax without a great deal of thrashing. Original patch by Hiroshi Saito, amended by me. e67867b2 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Feb 15, 2008 |
| Committer | Remove ancient restriction that LIMIT/OFFSET can't contain a sub-select. This was probably protecting some implementation limitation when it was put in, but as far as I can tell the planner and executor have no such assumption anymore; the case seems to work fine. Per a gripe from Grzegorz Jaskiewicz. cc80f0a3 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Feb 15, 2008 |
| Committer | Sync our regex code with upstream changes since last time we did this, which was Tcl 8.4.8. The main changes are to remove the never-fully-implemented code for multi-character collating elements, and to const-ify some stuff a bit more fully. In combination with the recent security patch, this commit brings us into line with Tcl 8.5.0. df1e965e | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Feb 14, 2008 |
| Committer | Stamp HEAD as 8.4devel. cf9e1561 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Feb 13, 2008 |
| Committer | Fix SPI_cursor_open() and SPI_is_cursor_plan() to push the SPI stack before doing anything interesting, such as calling RevalidateCachedPlan(). The necessity of this is demonstrated by an example from Willem Buitendyk: during a replan, the planner might try to evaluate SPI-using functions, and so we'd better be in a clean SPI context. 745e6eda | master8.3.1REL_19_STABLE8.3.1REL_18_STABLE8.3.1REL_17_STABLE8.3.1REL_16_STABLE8.3.1REL_15_STABLE8.3.1REL_14_STABLE8.3.1REL_13_STABLE8.3.1+17 more | No linked thread | Feb 12, 2008 |
| CommitterBackported | Repair VACUUM FULL bug introduced by HOT patch: the original way of calculating a page's initial free space was fine, and should not have been "improved" by letting PageGetHeapFreeSpace do it. VACUUM FULL is going to reclaim LP_DEAD line pointers later, so there is no need for a guard against the page being too full of line pointers, and having one risks rejecting pages that are perfectly good move destinations. c931c071 | master8.3.1REL_19_STABLE8.3.1REL_18_STABLE8.3.1REL_17_STABLE8.3.1REL_16_STABLE8.3.1REL_15_STABLE8.3.1REL_14_STABLE8.3.1REL_13_STABLE8.3.1+21 more | No linked thread | Feb 11, 2008 |
| Committer | Fix PageGetExactFreeSpace() so that it actually behaves sensibly if pd_lower > pd_upper, rather than merely claiming to. This would only matter if the page header were corrupt, which shouldn't occur, but ... 082aca9e | master8.3.1REL_19_STABLE8.3.1REL_18_STABLE8.3.1REL_17_STABLE8.3.1REL_16_STABLE8.3.1REL_15_STABLE8.3.1REL_14_STABLE8.3.1REL_13_STABLE8.3.1+17 more | No linked thread | Feb 10, 2008 |
| Committer | Some small editorialization on the protocol documentation for GSSAPI/SSPI authentication. 0028b22d | master8.3.1REL_19_STABLE8.3.1REL_18_STABLE8.3.1REL_17_STABLE8.3.1REL_16_STABLE8.3.1REL_15_STABLE8.3.1REL_14_STABLE8.3.1REL_13_STABLE8.3.1+17 more | No linked thread | Feb 08, 2008 |
| Committer | Since GSSAPI and SSPI authentication don't work in protocol version 2, issue a helpful error message instead of sending unparsable garbage. (It is clearly a design error that this doesn't work, but fixing it is not worth the trouble at this point.) Per discussion. 81e77085 | master8.3.1REL_19_STABLE8.3.1REL_18_STABLE8.3.1REL_17_STABLE8.3.1REL_16_STABLE8.3.1REL_15_STABLE8.3.1REL_14_STABLE8.3.1REL_13_STABLE8.3.1+17 more | No linked thread | Feb 08, 2008 |
| Committer | Avoid misbehavior in foreign key checks when casting to a datatype for which the parser supplies a default typmod that can result in data loss (ie, truncation). Currently that appears to be only CHARACTER and BIT. We can avoid the problem by specifying the type's internal name instead of using SQL-spec syntax. Since the queries generated here are only used internally, there's no need to worry about portability. This problem is new in 8.3; before we just let the parser do whatever it wanted to resolve the operator, but 8.3 is trying to be sure that the semantics of FK checks are consistent. Per report from Harald Fuchs. 9b43c245 | master8.3.1REL_19_STABLE8.3.1REL_18_STABLE8.3.1REL_17_STABLE8.3.1REL_16_STABLE8.3.1REL_15_STABLE8.3.1REL_14_STABLE8.3.1REL_13_STABLE8.3.1+17 more | No linked thread | Feb 07, 2008 |
| CommitterBackported | Some variants of ALTER OWNER tried to make the "object" field of the statement be a list of bare C strings, rather than String nodes, which is what they need to be for copyfuncs/equalfuncs to work. Fortunately these node types never go out to disk (if they did, we'd likely have noticed the problem sooner), so we can just fix it without creating a need for initdb. This bug has been there since 8.0, but 8.3 exposes it in a more common code path (Parse messages) than prior releases did. Per bug #3940 from Vladimir Kokovic. 1ab19a36 | master8.3.1REL_19_STABLE8.3.1REL_18_STABLE8.3.1REL_17_STABLE8.3.1REL_16_STABLE8.3.1REL_15_STABLE8.3.1REL_14_STABLE8.3.1REL_13_STABLE8.3.1+20 more | No linked thread | Feb 07, 2008 |
| Committer | Add missing copyfuncs/equalfuncs support for AlterTSDictionaryStmt and AlterTSConfigurationStmt. All utility statement node types are expected to be supported here, though they do not have to have outfuncs/readfuncs support. Found by running regression tests with COPY_PARSE_PLAN_TREES enabled. 49a73012 | master8.3.1REL_19_STABLE8.3.1REL_18_STABLE8.3.1REL_17_STABLE8.3.1REL_16_STABLE8.3.1REL_15_STABLE8.3.1REL_14_STABLE8.3.1REL_13_STABLE8.3.1+17 more | No linked thread | Feb 07, 2008 |
| Committer | Fix silly mistake in expand_indexqual_rowcompare --- in converting a forboth() into an iteration over three parallel lists, I had accidentally put the lnext steps outside the loop. Sigh. Per bug #3938. 09bb6f6e | master8.3.1REL_19_STABLE8.3.1REL_18_STABLE8.3.1REL_17_STABLE8.3.1REL_16_STABLE8.3.1REL_15_STABLE8.3.1REL_14_STABLE8.3.1REL_13_STABLE8.3.1+17 more | No linked thread | Feb 07, 2008 |
| Committer | Fix CREATE TABLE ... LIKE ... INCLUDING INDEXES to not cause unwanted tablespace permissions failures when copying an index that is in the database's default tablespace. A side-effect of the change is that explicitly specifying the default tablespace no longer triggers a permissions check; this is not how it was done in pre-8.3 releases but is argued to be more consistent. Per bug #3921 from Andrew Gilligan. (Note: I argued in the subsequent discussion that maybe LIKE shouldn't copy index tablespaces at all, but since no one indicated agreement with that idea, I've refrained from doing it.) b7fe5f70 | master8.3.1REL_19_STABLE8.3.1REL_18_STABLE8.3.1REL_17_STABLE8.3.1REL_16_STABLE8.3.1REL_15_STABLE8.3.1REL_14_STABLE8.3.1REL_13_STABLE8.3.1+17 more | No linked thread | Feb 07, 2008 |
| Committer | Fix mistaken duplicate reference to max_fsm_pages, per bug #3926. Also make links clickable. 701cd5af | master8.3.1REL_19_STABLE8.3.1REL_18_STABLE8.3.1REL_17_STABLE8.3.1REL_16_STABLE8.3.1REL_15_STABLE8.3.1REL_14_STABLE8.3.1REL_13_STABLE8.3.1+17 more | No linked thread | Feb 03, 2008 |
| Committer | Minor wordsmithing in release notes' description of asynchronous commit. 09bcb248 | master8.3.1REL_19_STABLE8.3.1REL_18_STABLE8.3.1REL_17_STABLE8.3.1REL_16_STABLE8.3.1REL_15_STABLE8.3.1REL_14_STABLE8.3.1REL_13_STABLE8.3.1+17 more | No linked thread | Feb 02, 2008 |
| Committer | Move example of turning off synchronous_commit to a more logical place, to wit in the description of that variable rather than some other one. 19c40492 | master8.3.1REL_19_STABLE8.3.1REL_18_STABLE8.3.1REL_17_STABLE8.3.1REL_16_STABLE8.3.1REL_15_STABLE8.3.1REL_14_STABLE8.3.1REL_13_STABLE8.3.1+17 more | No linked thread | Feb 02, 2008 |
| CommitterBackported | Fix WaitOnLock() to ensure that the process's "waiting" flag is reset after erroring out of a wait. We can use a PG_TRY block for this, but add a comment explaining why it'd be a bad idea to use it for any other state cleanup. 6f906905 | master8.3.1REL_19_STABLE8.3.1REL_18_STABLE8.3.1REL_17_STABLE8.3.1REL_16_STABLE8.3.1REL_15_STABLE8.3.1REL_14_STABLE8.3.1REL_13_STABLE8.3.1+18 more | No linked thread | Feb 02, 2008 |
| Committer | Mention synchronize_seqscans GUC variable in release notes. Update expected release date. 06462f51 | master8.3.0REL_19_STABLE8.3.0REL_18_STABLE8.3.0REL_17_STABLE8.3.0REL_16_STABLE8.3.0REL_15_STABLE8.3.0REL_14_STABLE8.3.0REL_13_STABLE8.3.0+17 more | No linked thread | Jan 31, 2008 |
| Committer | Remove the old table of "supported platforms" in favor of a link to the buildfarm plus a narrative description of the CPU types and operating systems on which Postgres is likely to work. Now that we've almost completely decoupled CPU and OS considerations, the former tabular style isn't all that enlightening anyway. Perhaps more importantly, no one seems particularly interested in maintaining the table by hand when we have the buildfarm. 73d9544e | master8.3.0REL_19_STABLE8.3.0REL_18_STABLE8.3.0REL_17_STABLE8.3.0REL_16_STABLE8.3.0REL_15_STABLE8.3.0REL_14_STABLE8.3.0REL_13_STABLE8.3.0+17 more | No linked thread | Jan 31, 2008 |
| Committer | Fix pg_GSS_error to use conn->errorMessage more sanely, ie, actually work with the PQExpBuffer code instead of fighting it. This avoids an unnecessary limit on message length and fixes the latent bug that errorMessage.len wasn't getting set. cf82aee7 | master8.3.0REL_19_STABLE8.3.0REL_18_STABLE8.3.0REL_17_STABLE8.3.0REL_16_STABLE8.3.0REL_15_STABLE8.3.0REL_14_STABLE8.3.0REL_13_STABLE8.3.0+17 more | No linked thread | Jan 31, 2008 |
| CommitterBackported | Improve pg_autovacuum documentation to clarify that the enabled field cannot prevent anti-wraparound vacuuming, and to caution against setting unreasonably small values of freeze_max_age. Also put in a notice that this catalog is likely to disappear entirely in some future release. Per discussion of bug #3898 from Steven Flatt. 7c15b10a | master8.3.0REL_19_STABLE8.3.0REL_18_STABLE8.3.0REL_17_STABLE8.3.0REL_16_STABLE8.3.0REL_15_STABLE8.3.0REL_14_STABLE8.3.0REL_13_STABLE8.3.0+18 more | No linked thread | Jan 31, 2008 |
| Committer | Add checks to TRUNCATE, CLUSTER, and REINDEX to prevent performing these operations when the current transaction has any open references to the target relation or index (implying it has an active query using the relation). The need for this was previously recognized in connection with ALTER TABLE, but anything that summarily eliminates tuples or moves them around would confuse an active scan. 0688d840 | master8.3.0REL_19_STABLE8.3.0REL_18_STABLE8.3.0REL_17_STABLE8.3.0REL_16_STABLE8.3.0REL_15_STABLE8.3.0REL_14_STABLE8.3.0REL_13_STABLE8.3.0+17 more | No linked thread | Jan 30, 2008 |
| Committer | Add a GUC variable "synchronize_seqscans" to allow clients to disable the new synchronized-scanning behavior, and make pg_dump disable sync scans so that it will reliably preserve row ordering. Per recent discussions. 47df4f66 | master8.3.0REL_19_STABLE8.3.0REL_18_STABLE8.3.0REL_17_STABLE8.3.0REL_16_STABLE8.3.0REL_15_STABLE8.3.0REL_14_STABLE8.3.0REL_13_STABLE8.3.0+17 more | No linked thread | Jan 30, 2008 |
| Committer | Don't putenv() a string that is allocated in a context that will go away soon. I suspect this explains bug #3902, though I'm still not able to reproduce that. b58d8c9a | master8.3.0REL_19_STABLE8.3.0REL_18_STABLE8.3.0REL_17_STABLE8.3.0REL_16_STABLE8.3.0REL_15_STABLE8.3.0REL_14_STABLE8.3.0REL_13_STABLE8.3.0+17 more | No linked thread | Jan 30, 2008 |
| Committer | Fix up closePGconn() so that PQreset() will work on GSSAPI/SSPI connections; the patch for those features put its cleanup code into freePGconn() which is really the wrong place. Remove redundant code from freePGconn() and add comments in hopes of preventing similar mistakes in future. Noticed while trying (futilely) to reproduce bug #3902. 5037ed83 | master8.3.0REL_19_STABLE8.3.0REL_18_STABLE8.3.0REL_17_STABLE8.3.0REL_16_STABLE8.3.0REL_15_STABLE8.3.0REL_14_STABLE8.3.0REL_13_STABLE8.3.0+17 more | No linked thread | Jan 29, 2008 |
| Committer | Arrange to ignore SIGPIPE during SSL_read() and SSL_shutdown(), as these are known to write on the socket sometimes and thus we are vulnerable to being killed by the signal if the server happens to go away unexpectedly. Noticed while trying (futilely) to reproduce bug #3902. fad2b995 | master8.3.0REL_19_STABLE8.3.0REL_18_STABLE8.3.0REL_17_STABLE8.3.0REL_16_STABLE8.3.0REL_15_STABLE8.3.0REL_14_STABLE8.3.0REL_13_STABLE8.3.0+17 more | No linked thread | Jan 29, 2008 |
| Committer | Minor editorial improvements in documentation of session_replication_role; in particular correct the obsolete claim that it can't be changed once any plans have been cached. b5518c8e | master8.3.0REL_19_STABLE8.3.0REL_18_STABLE8.3.0REL_17_STABLE8.3.0REL_16_STABLE8.3.0REL_15_STABLE8.3.0REL_14_STABLE8.3.0REL_13_STABLE8.3.0+17 more | No linked thread | Jan 27, 2008 |
| Committer | Change StatementCancelHandler() to check the DoingCommandRead flag to decide whether to execute an immediate interrupt, rather than testing whether LockWaitCancel() cancelled a lock wait. The old way misclassified the case where we were blocked in ProcWaitForSignal(), and arguably would misclassify any other future additions of new ImmediateInterruptOK states too. This allows reverting the old kluge that gave LockWaitCancel() a return value, since no callers care anymore. Improve comments in the various implementations of PGSemaphoreLock() to explain that on some platforms, the assumption that semop() exits after a signal is wrong, and so we must ensure that the signal handler itself throws elog if we want cancel or die interrupts to be effective. Per testing related to bug #3883, though this patch doesn't solve those problems fully. 6322e844 | master8.3.0REL_19_STABLE8.3.0REL_18_STABLE8.3.0REL_17_STABLE8.3.0REL_16_STABLE8.3.0REL_15_STABLE8.3.0REL_14_STABLE8.3.0REL_13_STABLE8.3.0+17 more | No linked thread | Jan 26, 2008 |
| Committer | Fix two different copy-and-paste-os in CSV log rotation logic; one that led to a double-pfree crash and another that effectively disabled size-based rotation for CSV logs. Also suppress a memory leak and make some trivial cosmetic improvements. Per bug #3901 from Chris Hoover and additional code-reading. ace1b29b | master8.3.0REL_19_STABLE8.3.0REL_18_STABLE8.3.0REL_17_STABLE8.3.0REL_16_STABLE8.3.0REL_15_STABLE8.3.0REL_14_STABLE8.3.0REL_13_STABLE8.3.0+17 more | No linked thread | Jan 25, 2008 |
| Committer | Release any detoasted copies of arrays that are made temporarily in ri_FetchConstraintInfo, to avoid a query-duration memory leak when that routine is called by RI_FKey_keyequal_upd_fk (which isn't executed in a short-lived context). This problem was latent when the routine was added in February, but it didn't become serious until the varvarlena patch made it quite likely that the fields being examined would be "toasted" (ie, have short headers). Per report from Stephen Denne. 353a1cca | master8.3.0REL_19_STABLE8.3.0REL_18_STABLE8.3.0REL_17_STABLE8.3.0REL_16_STABLE8.3.0REL_15_STABLE8.3.0REL_14_STABLE8.3.0REL_13_STABLE8.3.0+17 more | No linked thread | Jan 25, 2008 |
| CommitterBackported | Prevent integer overflow within the integer-datetimes version of TimestampTzPlusMilliseconds. An integer argument of more than INT_MAX/1000 milliseconds (ie, about 35 minutes) would provoke a wrong result, resulting in incorrect enforcement of statement_timestamp values larger than that. Bug was introduced in my rewrite of 2006-06-20, which fixed some other overflow risks, but missed this one :-( Per report from Elein. b9ff7443 | master8.3.0REL_19_STABLE8.3.0REL_18_STABLE8.3.0REL_17_STABLE8.3.0REL_16_STABLE8.3.0REL_15_STABLE8.3.0REL_14_STABLE8.3.0REL_13_STABLE8.3.0+18 more | No linked thread | Jan 23, 2008 |
| Committer | Provide a concrete example of parameter expansion in archive_command. Per discussion of bug #3877. Simon Riggs, some fixes by moi. 1570d046 | master8.3.0REL_19_STABLE8.3.0REL_18_STABLE8.3.0REL_17_STABLE8.3.0REL_16_STABLE8.3.0REL_15_STABLE8.3.0REL_14_STABLE8.3.0REL_13_STABLE8.3.0+17 more | No linked thread | Jan 23, 2008 |
| Committer | Avoid mathematical inconsistency in example about avoiding division by zero with a CASE expression. Per gripe from Russell Smith. 216e63bb | master8.3.0REL_19_STABLE8.3.0REL_18_STABLE8.3.0REL_17_STABLE8.3.0REL_16_STABLE8.3.0REL_15_STABLE8.3.0REL_14_STABLE8.3.0REL_13_STABLE8.3.0+17 more | No linked thread | Jan 23, 2008 |
| Committer | Reference pgAdmin as a typical client-side tool, rather than the no-longer-maintained PgAccess. Per Erik Rijkers. 6a7a63d3 | master8.3.0REL_19_STABLE8.3.0REL_18_STABLE8.3.0REL_17_STABLE8.3.0REL_16_STABLE8.3.0REL_15_STABLE8.3.0REL_14_STABLE8.3.0REL_13_STABLE8.3.0+17 more | No linked thread | Jan 23, 2008 |
| Committer | Improve description of bgwriter_lru_multiplier, per discussion. 1e985720 | master8.3.0REL_19_STABLE8.3.0REL_18_STABLE8.3.0REL_17_STABLE8.3.0REL_16_STABLE8.3.0REL_15_STABLE8.3.0REL_14_STABLE8.3.0REL_13_STABLE8.3.0+17 more | No linked thread | Jan 21, 2008 |
| Committer | Fix RS_isRegis() to agree exactly with RS_compile()'s idea of what's a valid regis. Correct the latter's oversight that a bracket-expression needs to be terminated. Reduce the ereports to elogs, since they are now not expected to ever be hit (thus addressing Alvaro's original complaint). In passing, const-ify the string argument to RS_compile. 716e8b83 | master8.3.0REL_19_STABLE8.3.0REL_18_STABLE8.3.0REL_17_STABLE8.3.0REL_16_STABLE8.3.0REL_15_STABLE8.3.0REL_14_STABLE8.3.0REL_13_STABLE8.3.0+17 more | No linked thread | Jan 21, 2008 |
| Committer | Fix psql \h output for case of no parameters (ie, list all the known commands) to format properly for the actually needed column width, instead of having a hard-wired assumption about the longest command name length. Also make it respond to the current screen width. In passing, const-ify the constant table. f7108ce0 | master8.3.0REL_19_STABLE8.3.0REL_18_STABLE8.3.0REL_17_STABLE8.3.0REL_16_STABLE8.3.0REL_15_STABLE8.3.0REL_14_STABLE8.3.0REL_13_STABLE8.3.0+17 more | No linked thread | Jan 20, 2008 |
| Committer | Make pg_regress clean out the testtablespace directory only on Windows. On other platforms it's better to let the Makefile handle it, but we want the regression tests to be invokable without make on Windows. A batch file would be a better solution, but no time for that before 8.3. Per my discovery that this breaks testing under SELinux, and subsequent discussion. f10589e5 | master8.3.0REL_19_STABLE8.3.0REL_18_STABLE8.3.0REL_17_STABLE8.3.0REL_16_STABLE8.3.0REL_15_STABLE8.3.0REL_14_STABLE8.3.0REL_13_STABLE8.3.0+17 more | No linked thread | Jan 19, 2008 |
| Committer | Insert into getCopyDataMessage() the same logic that already existed in the main code path for enlarging libpq's input buffer in one swoop when needing to read a long data message. Without this, the code will double the buffer size, read more data, notice it still hasn't got the whole message, and repeat till it finally has a large enough buffer. Which wastes a lot of data-moving effort and also memory (since malloc probably can't do anything very useful with the freed-up smaller buffers). Not sure why this wasn't there already; certainly the COPY data path is a place where we're quite likely to see long data messages. I'm not backpatching though, since this is just a marginal performance issue rather than a real bug. 70066eb1 | master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+17 more | No linked thread | Jan 17, 2008 |
| CommitterBackported | Fix subselect.c to avoid assuming that a SubLink's testexpr references each subquery output column exactly once left-to-right. Although this is the case in the original parser output, it might not be so after rewriting and constant-folding, as illustrated by bug #3882 from Jan Mate. Instead scan the subquery's target list to obtain needed per-column information; this is duplicative of what the parser did, but only a couple dozen lines need be copied, and we can clean up a couple of notational uglinesses. Bug was introduced in 8.2 as part of revision of SubLink representation. a44174cf | master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+18 more | No linked thread | Jan 17, 2008 |
| Committer | Fix ALTER INDEX RENAME so that if the index belongs to a unique or primary key constraint, the constraint is renamed as well. This avoids inconsistent situations that could confuse pg_dump (not to mention humans). We might at some point provide ALTER TABLE RENAME CONSTRAINT as a more general solution, but there seems no reason not to allow doing it this way too. Per bug #3854 and related discussions. 0df7717f | master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+17 more | No linked thread | Jan 17, 2008 |
| Committer | Remove inappropriate cd commands, per David Wheeler. Also make the PATH responsive to the installation prefix, which was the apparent intent of the previous edit, but not well executed. 97e3a6e9 | master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+17 more | No linked thread | Jan 16, 2008 |
| Committer | Be less wishy-washy in the documentation and comments about whether a ParameterStatus message can be sent during COPY OUT: it's definitely possible, since COPY from a SELECT subquery can trigger any user-defined function. 0153c4c4 | master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+17 more | No linked thread | Jan 15, 2008 |
| Committer | Prevent CLUSTER from decreasing a relation's relfrozenxid. Bug introduced in rewrite to make CLUSTER MVCC-safe. 14e2a260 | master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+17 more | No linked thread | Jan 15, 2008 |
| Committer | Revise memory management for libxml calls. Instead of keeping libxml's data in whichever context happens to be current during a call of an xml.c function, use a dedicated context that will not go away until we explicitly delete it (which we do at transaction end or subtransaction abort). This makes recovery after an error much simpler --- we don't have to individually delete the data structures created by libxml. Also, we need to initialize and cleanup libxml only once per transaction (if there's no error) instead of once per function call, so it should be a bit faster. We'll need to keep an eye out for intra-transaction memory leaks, though. Alvaro and Tom. ac12412e | master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+17 more | No linked thread | Jan 15, 2008 |
| Committer | Tweak new error message to conform to style guidelines. deb7deda | master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+17 more | No linked thread | Jan 15, 2008 |
| Committer | Somebody forgot to add this ERRCODE everywhere it should go ... abab776b | master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+17 more | No linked thread | Jan 15, 2008 |
| Committer | Prevent pg_dump from dumping the comment (if any) on the 'public' schema. This is to avoid uselessly requiring superuser permissions to restore the dump without errors. Pretty grotty, but no better alternative seems available, at least not in the near term. ea00ab8d | master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+17 more | No linked thread | Jan 14, 2008 |
| Committer | Avoid cluttering the postmaster log with bogus complaints during transaction abort, per my note from a couple days ago. 98c0ebca | master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+17 more | No linked thread | Jan 14, 2008 |
| CommitterBackported | Fix an ancient oversight in libpq's handling of V3-protocol COPY OUT mode: we need to be able to swallow NOTICE messages, and potentially also ParameterStatus messages (although the latter would be a bit weird), without exiting COPY OUT state. Fix it, and adjust the protocol documentation to emphasize the need for this. Per off-list report from Alexander Galler. 5c767142 | master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+21 more | No linked thread | Jan 14, 2008 |
| Committer | Fix pgstat_heap() to not be broken by syncscans starting from a block higher than zero. Same problem as just detected in CREATE INDEX CONCURRENTLY. b775d93a | master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+17 more | No linked thread | Jan 14, 2008 |
| Committer | Use an indexscan not a heapscan to search pg_index in get_pkey_attnames. Noted while looking for heapscans that might need to start from block zero. 66661858 | master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+17 more | No linked thread | Jan 14, 2008 |
| Committer | Fix CREATE INDEX CONCURRENTLY so that it won't use synchronized scan for its second pass over the table. It has to start at block zero, else the "merge join" logic for detecting which TIDs are already in the index doesn't work. Hence, extend heapam.c's API so that callers can enable or disable syncscan. (I put in an option to disable buffer access strategy, too, just in case somebody needs it.) Per report from Hannes Dorbath. d3b1b1f9 | master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+17 more | No linked thread | Jan 14, 2008 |
| Committer | Fix a regression test that fails if default_text_search_config isn't 'english'. 689d02a2 | master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+17 more | No linked thread | Jan 13, 2008 |
| Committer | Add note pointing out that read-only commands no longer consume command IDs. 05a381ad | master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+17 more | No linked thread | Jan 13, 2008 |
| Committer | It turns out the LIBXML_TEST_VERSION macro calls xmlInitParser(). Therefore we must xmlCleanupParser(), or we risk leaving behind dangling pointers to whatever memory context is current when xml_init() is called. This seems to fix bug #3860, though we might still want the more invasive solution being worked on by Alvaro. 1bbf8706 | master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+17 more | No linked thread | Jan 12, 2008 |
| CommitterBackported | Fix logical errors in constraint exclusion: we cannot assume that a CHECK constraint yields TRUE for every row of its table, only that it does not yield FALSE (a NULL result isn't disallowed). This breaks a couple of implications that would be true in two-valued logic. I had put in one such mistake in an 8.2.5 patch: foo IS NULL doesn't refute a strict operator on foo. But there was another in the original 8.2 release: NOT foo doesn't refute an expression whose truth would imply the truth of foo. Per report from Rajesh Kumar Mallah. 208d0a23 | master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+18 more | No linked thread | Jan 12, 2008 |
| Committer | The original implementation of polymorphic aggregates didn't really get the checking of argument compatibility right; although the problem is only exposed with multiple-input aggregates in which some arguments are polymorphic and some are not. Per bug #3852 from Sokolov Yura. 89c0a87f | master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+17 more | No linked thread | Jan 11, 2008 |
| Committer | Fix an old error in clause_selectivity: the default selectivity estimate for unhandled clause types ought to be 0.5, not 1.0. I fear I introduced this silliness due to misreading the intent of the very-poorly-structured code that was there when we inherited the file from Berkeley. The lack of sanity in this behavior was exposed by an example from Sim Zacks. (Arguably this is a bug fix and should be back-patched, but I'm a bit hesitant to introduce a possible planner behavior change in the back branches; it might detune queries that worked acceptably in the past.) df62977d | master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+17 more | No linked thread | Jan 11, 2008 |
| CommitterBackported | Fix a conceptual error in my patch of 2007-10-26 that avoided considering clauseless joins of relations that have unexploited join clauses. Rather than looking at every other base relation in the query, the correct thing is to examine the other relations in the "initial_rels" list of the current make_rel_from_joinlist() invocation, because those are what we actually have the ability to join against. This might be a subset of the whole query in cases where join_collapse_limit or from_collapse_limit or full joins have prevented merging the whole query into a single join problem. This is a bit untidy because we have to pass those rels down through a new PlannerInfo field, but it's necessary. Per bug #3865 from Oleg Kharin. 59fc64ac | master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+18 more | No linked thread | Jan 11, 2008 |
| Committer | Restructure the shutdown procedure for the archiver process to allow it to finish archiving everything (when there's no error), and to eliminate various hazards as best we can. This fixes a previous 8.3 patch that caused the postmaster to kill and then restart the archiver during shutdown (!?). e6a442c7 | master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+17 more | No linked thread | Jan 11, 2008 |
| Committer | Remove incorrect (and ill-advised anyway) pfree's in pg_convert_from and pg_convert_to. Per bug #3866 from Andrew Gilligan. a9742f12 | master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+17 more | No linked thread | Jan 09, 2008 |
| Committer | Fix CREATE INDEX CONCURRENTLY to not deadlock against an automatic or manual VACUUM that is blocked waiting to get lock on the table being indexed. Per report and fix suggestion from Greg Stark. ceb93600 | master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+17 more | No linked thread | Jan 09, 2008 |
| Committer | Fix a bug in 8.2.x that was exposed while investigating Kevin Grittner's report of poor planning in 8.3: it's unsafe to push a constant across an outer join when the outer-join condition is delayed by lower outer joins, unless we recheck the outer-join condition at the upper outer join. 8.2.x doesn't really have the ability to tell whether this is the case or not, but fortunately it doesn't matter --- it seems most desirable to keep the join condition whether it's entirely redundant or not. However, it's usually mostly redundant, so force its selectivity to 1.0. 02b3f326 | REL8_2_STABLE8.2.7 | No linked thread | Jan 09, 2008 |
| Committer | Fix some planner issues found while investigating Kevin Grittner's report of poorer planning in 8.3 than 8.2: 6a652252 | master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+17 more | No linked thread | Jan 09, 2008 |
| Committer | lmgr.c:DescribeLockTag was never taught about virtual xids, per Greg Stark. Also a couple of minor tweaks to try to future-proof the code a bit better against future locktag additions. da3df47c | master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+17 more | No linked thread | Jan 08, 2008 |
| Committer | informix.c was violating the coding rule about not including any system headers before c.h. Per report from J6M. 867ff072 | master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+17 more | No linked thread | Jan 08, 2008 |
| Committer | Remove unnecessary comma in enum definition ... some C compilers don't like that. Per report from J6M. 8c71752a | master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+17 more | No linked thread | Jan 08, 2008 |
| CommitterBackported | A long time ago, Peter pointed out that ruleutils.c didn't dump simple constant ORDER/GROUP BY entries properly: http://archives.postgresql.org/pgsql-hackers/2001-04/msg00457.php The original solution to that was in fact no good, as demonstrated by today's report from Martin Pitt: http://archives.postgresql.org/pgsql-bugs/2008-01/msg00027.php We can't use the column-number-reference format for a constant that is a resjunk targetlist entry, a case that was unfortunately not thought of in the original discussion. What we can do instead (which did not work at the time, but does work in 7.3 and up) is to emit the constant with explicit ::typename decoration, even if it otherwise wouldn't need it. This is sufficient to keep the parser from thinking it's a column number reference, and indeed is probably what the user must have done to get such a thing into the querytree in the first place. 59358907 | master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+21 more | No linked thread | Jan 06, 2008 |
| Committer | Stamp release 7.3.21. 9d4269f0 | REL7_3_STABLE7.3.21 | No linked thread | Jan 03, 2008 |
| Committer | Stamp release 7.4.19. 56a2a417 | REL7_4_STABLE7.4.19 | No linked thread | Jan 03, 2008 |
| Committer | Stamp release 8.0.15. 23196790 | REL8_0_STABLE8.0.15 | No linked thread | Jan 03, 2008 |
| Committer | Stamp release 8.1.11. d419ce45 | REL8_1_STABLE8.1.11 | No linked thread | Jan 03, 2008 |
| Committer | Stamp release 8.2.6. e29972bb | REL8_2_STABLE8.2.6 | No linked thread | Jan 03, 2008 |
| Committer | Stamp release 8.3RC1. 2bf121e4 | master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more | No linked thread | Jan 03, 2008 |
| CommitterBackported | Update release notes for security releases. 019fac77 | master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+22 more | No linked thread | Jan 03, 2008 |
| CommitterBackported | The original patch to disallow non-passworded connections to non-superusers failed to cover all the ways in which a connection can be initiated in dblink. Plug the remaining holes. Also, disallow transient connections in functions for which that feature makes no sense (because they are only sensible as part of a sequence of operations on the same connection). Joe Conway 919c9f6c | master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+22 more | No linked thread | Jan 03, 2008 |
| CommitterBackported | Make standard maintenance operations (including VACUUM, ANALYZE, REINDEX, and CLUSTER) execute as the table owner rather than the calling user, using the same privilege-switching mechanism already used for SECURITY DEFINER functions. The purpose of this change is to ensure that user-defined functions used in index definitions cannot acquire the privileges of a superuser account that is performing routine maintenance. While a function used in an index is supposed to be IMMUTABLE and thus not able to do anything very interesting, there are several easy ways around that restriction; and even if we could plug them all, there would remain a risk of reading sensitive information and broadcasting it through a covert channel such as CPU usage. eedb068c | master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+22 more | No linked thread | Jan 03, 2008 |
| CommitterBackported | Fix assorted security-grade bugs in the regex engine. All of these problems are shared with Tcl, since it's their code to begin with, and the patches have been copied from Tcl 8.5.0. Problems: 98f27aae | master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+21 more | No linked thread | Jan 03, 2008 |
| Committer | Forbid ALTER TABLE and CLUSTER when there are pending AFTER-trigger events in the current backend for the target table. These operations move tuples around and would thus invalidate the TIDs stored in the trigger event records. (We need not worry about events in other backends, since acquiring exclusive lock should be enough to ensure there aren't any.) It might be sufficient to forbid only the table-rewriting variants of ALTER TABLE, but in the absence of any compelling use-case, let's just be safe and simple. Per follow-on investigation of bug #3847, though this is not actually the same problem reported therein. 20e86215 | master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more | No linked thread | Jan 02, 2008 |
| CommitterBackported | Insert ARST into the list of known timezone abbreviations. 69528aef | master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+21 more | No linked thread | Jan 02, 2008 |
| CommitterBackported | Fix plpython's overoptimistic caching of information about the rowtype of a trigger's target table. The rowtype could change from one call to the next, so cope in such cases, while avoiding doing repetitive catalog lookups. Per bug #3847 from Mark Reid. baecbb91 | master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+18 more | No linked thread | Jan 02, 2008 |
| CommitterBackported | Update time zone data files to tzdata release 2007k. 1af45f1d | master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+20 more | No linked thread | Jan 01, 2008 |
| Committer | Fix some missed copyright updates. ce9baa06 | master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more | No linked thread | Jan 01, 2008 |