| CommitterBackported | Ensure the previous Perl interpreter selection is restored upon exit from plperl_call_handler, in both the normal and error-exit paths. Per report from Alexey Klyukin. ef59fa04 | master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+16 more | No linked thread | Oct 31, 2009 |
| Committer | Implement parser hooks for processing ColumnRef and ParamRef nodes, as per my recent proposal. As proof of concept, remove knowledge of Params from the core parser, arranging for them to be handled entirely by parser hook functions. It turns out we need an additional hook for that --- I had forgotten about the code that handles inferring a parameter's type from context. fb5d0580 | master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more | No linked thread | Oct 31, 2009 |
| CommitterBackported | Make the overflow guards in ExecChooseHashTableSize be more protective. The original coding ensured nbuckets and nbatch didn't exceed INT_MAX, which while not insane on its own terms did nothing to protect subsequent code like "palloc(nbatch * sizeof(BufFile *))". Since enormous join size estimates might well be planner error rather than reality, it seems best to constrain the initial sizes to be not more than work_mem/sizeof(pointer), thus ensuring the allocated arrays don't exceed work_mem. We will allow nbatch to get bigger than that during subsequent ExecHashIncreaseNumBatches calls, but we should still guard against integer overflow in those palloc requests. Per bug #5145 from Bernt Marius Johnsen. 8442317b | master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+19 more | No linked thread | Oct 30, 2009 |
| Committer | Un-break EXPLAIN for Append plans. I messed this up a few days ago while adding the ModifyTable node type --- I had been thinking ModifyTable should replace Append as a special case in push_plan(), but actually both of them have to be special-cased. 77c666fe | master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more | No linked thread | Oct 28, 2009 |
| CommitterBackported | Fix \df to re-allow regexp special characters in the function name pattern. This has always worked, up until somebody's thinko here: http://archives.postgresql.org/pgsql-committers/2009-04/msg00233.php Per bug #5143 from Piotr Wolinski. be6899f1 | master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+14 more | No linked thread | Oct 28, 2009 |
| Committer | Fix AcquireRewriteLocks to be sure that it acquires the right lock strength when FOR UPDATE is propagated down into a sub-select expanded from a view. Similar bug to parser's isLockedRel issue that I fixed yesterday; likewise seems not quite worth the effort to back-patch. cbcd1701 | master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more | No linked thread | Oct 28, 2009 |
| Committer | When FOR UPDATE/SHARE is used with LIMIT, put the LockRows plan node underneath the Limit node, not atop it. This fixes the old problem that such a query might unexpectedly return fewer rows than the LIMIT says, due to LockRows discarding updated rows. 46e3a16b | master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more | No linked thread | Oct 28, 2009 |
| CommitterBackported | Fix AfterTriggerSaveEvent to use a test and elog, not just Assert, to check that it's called within an AfterTriggerBeginQuery/AfterTriggerEndQuery pair. The RI cascade triggers suppress that overhead on the assumption that they are always run non-deferred, so it's possible to violate the condition if someone mistakenly changes pg_trigger to mark such a trigger deferred. We don't really care about supporting that, but throwing an error instead of crashing seems desirable. Per report from Marcelo Costa. 44956c52 | master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+18 more | No linked thread | Oct 27, 2009 |
| CommitterBackported | Make FOR UPDATE/SHARE in the primary query not propagate into WITH queries; for example in WITH w AS (SELECT * FROM foo) SELECT * FROM w, bar ... FOR UPDATE the FOR UPDATE will now affect bar but not foo. This is more useful and consistent than the original 8.4 behavior, which tried to propagate FOR UPDATE into the WITH query but always failed due to assorted implementation restrictions. Even though we are in process of removing those restrictions, it seems correct on philosophical grounds to not let the outer query's FOR UPDATE affect the WITH query. 61e53282 | master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+14 more | No linked thread | Oct 27, 2009 |
| Committer | Re-implement EvalPlanQual processing to improve its performance and eliminate a lot of strange behaviors that occurred in join cases. We now identify the "current" row for every joined relation in UPDATE, DELETE, and SELECT FOR UPDATE/SHARE queries. If an EvalPlanQual recheck is necessary, we jam the appropriate row into each scan node in the rechecking plan, forcing it to emit only that one row. The former behavior could rescan the whole of each joined relation for each recheck, which was terrible for performance, and what's much worse could result in duplicated output tuples. 9f2ee8f2 | master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more | No linked thread | Oct 26, 2009 |
| Committer | Remove regex_flavor GUC, so that regular expressions are always "advanced" style by default. Per discussion, there seems to be hardly anything that really relies on being able to change the regex flavor, so the ability to select it via embedded options ought to be enough for any stragglers. Also, if we didn't remove the GUC, we'd really be morally obligated to mark the regex functions non-immutable, which'd possibly create performance issues. ab61df9e | master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more | No linked thread | Oct 21, 2009 |
| Committer | Remove add_missing_from GUC and associated parser support for "implicit RTEs". Per recent discussion, add_missing_from has been deprecated for long enough to consider removing, and it's getting in the way of planned parser refactoring. The system now always behaves as though add_missing_from were OFF. 289e2905 | master8.5alpha3REL_19_STABLE8.5alpha3REL_18_STABLE8.5alpha3REL_17_STABLE8.5alpha3REL_16_STABLE8.5alpha3REL_15_STABLE8.5alpha3REL_14_STABLE8.5alpha3REL_13_STABLE8.5alpha3+13 more | No linked thread | Oct 21, 2009 |
| CommitterBackported | Rewrite pam_passwd_conv_proc to be more robust: avoid assuming that the pam_message array contains exactly one PAM_PROMPT_ECHO_OFF message. Instead, deal with however many messages there are, and don't throw error for PAM_ERROR_MSG and PAM_TEXT_INFO messages. This logic is borrowed from openssh 5.2p1, which hopefully has seen more real-world PAM usage than we have. Per bug #5121 from Ryan Douglas, which turned out to be caused by the conv_proc being called with zero messages. Apparently that is normal behavior given the combination of Linux pam_krb5 with MS Active Directory as the domain controller. 76c09dbe | master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+20 more | No linked thread | Oct 16, 2009 |
| Committer | First committed version of plpython_unicode_0.out did not actually contain the required \200 bytes. Let's see if this commit works, or if CVS is messing it up. 198483a2 | master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more | No linked thread | Oct 15, 2009 |
| Committer | Support SQL-compliant triggers on columns, ie fire only if certain columns are named in the UPDATE's SET list. b2734a0d | master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more | No linked thread | Oct 14, 2009 |
| Committer | Add "\pset linestyle ascii/unicode" option to psql, allowing our traditional ASCII-art style of table output to be upgraded to use Unicode box drawing characters if desired. By default, psql will use the Unicode characters whenever client_encoding is UTF8. 42ec8ad6 | master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more | No linked thread | Oct 13, 2009 |
| CommitterBackported | Fix ts_stat's failure on empty tsvector. Also insert a couple of Asserts that check for stack overflow. Bogus coding appears to be new in 8.4 --- older releases had a much simpler algorithm here. Per bug #5111. b1407116 | master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+15 more | No linked thread | Oct 13, 2009 |
| Committer | Code review for LIKE INCLUDING patch --- clean up some cosmetic and not so cosmetic stuff. 8d54c248 | master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more | No linked thread | Oct 13, 2009 |
| Committer | Use plurals (TABLES, FUNCTIONS, etc) in ALTER DEFAULT PRIVILEGES. We have the keywords as a consequence of the GRANT ALL patch, so we might as well use them and make the ALTER commands read more naturally. 5ec13411 | master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more | No linked thread | Oct 12, 2009 |
| Committer | Support GRANT/REVOKE ON ALL TABLES/SEQUENCES/FUNCTIONS IN SCHEMA. 11ca04b4 | master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more | No linked thread | Oct 12, 2009 |
| Committer | Move the handling of SELECT FOR UPDATE locking and rechecking out of execMain.c and into a new plan node type LockRows. Like the recent change to put table updating into a ModifyTable plan node, this increases planning flexibility by allowing the operations to occur below the top level of the plan tree. It's necessary in any case to restore the previous behavior of having FOR UPDATE locking occur before ModifyTable does. 0adaf4cb | master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more | No linked thread | Oct 12, 2009 |
| Committer | Improve similar_escape() in two different ways: 05d24971 | master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more | No linked thread | Oct 10, 2009 |
| Committer | Split the processing of INSERT/UPDATE/DELETE operations out of execMain.c. They are now handled by a new plan node type called ModifyTable, which is placed at the top of the plan tree. In itself this change doesn't do much, except perhaps make the handling of RETURNING lists and inherited UPDATEs a tad less klugy. But it is necessary preparation for the intended extension of allowing RETURNING queries inside WITH. 8a5849b7 | master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more | No linked thread | Oct 10, 2009 |
| Committer | Remove very ancient tuple-counting infrastructure (IncrRetrieved() and friends). This code has all been ifdef'd out for many years, and doesn't seem to have any prospect of becoming any more useful in the future. EXPLAIN ANALYZE is what people use in practice, and I think if we did want process-wide counters we'd be more likely to put in dtrace events for that than try to resurrect this code. Get rid of it so as to have one less detail to worry about while refactoring execMain.c. c970292a | master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more | No linked thread | Oct 08, 2009 |
| Committer | Update plhandler.sgml to describe validators and inline handlers for procedural languages. 822b0159 | master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more | No linked thread | Oct 08, 2009 |
| Committer | Support use of function argument names to identify which actual arguments match which function parameters. The syntax uses AS, for example funcname(value AS arg1, anothervalue AS arg2) 717fa274 | master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more | No linked thread | Oct 08, 2009 |
| CommitterBackported | Change CREATE TABLE so that column default expressions coming from different inheritance parent tables are compared using equal(), instead of doing strcmp() on the nodeToString representation. The old implementation was always a tad cheesy, and it finally fails completely as of 8.4, now that the node tree might contain syntax location information. equal() knows it's supposed to ignore those fields, but strcmp() hardly can. Per recent report from Scott Ribe. e0c433c4 | master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+15 more | No linked thread | Oct 06, 2009 |
| Committer | Create an ALTER DEFAULT PRIVILEGES command, which allows users to adjust the privileges that will be applied to subsequently-created objects. 249724cb | master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more | No linked thread | Oct 05, 2009 |
| CommitterBackported | Fix assorted memory leaks in pg_hba.conf parsing. Over a sufficiently large number of SIGHUP cycles, these would have run the postmaster out of memory. Noted while testing memory-leak scenario in postgresql.conf configuration-change-printing patch. 35a173ab | master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+15 more | No linked thread | Oct 03, 2009 |
| Committer | Fix a couple of issues in recent patch to print updates to postgresql.conf settings: avoid calling superuser() in contexts where it's not defined, don't leak the transient copies of GetConfigOption output, and avoid the whole exercise in postmaster child processes. 54d60bbd | master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more | No linked thread | Oct 03, 2009 |
| CommitterBackported | Fix an oversight in an 8.3-era patch: pgstat_initstats should allow stats to be collected for sequences. 66a8417f | master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+16 more | No linked thread | Oct 02, 2009 |
| CommitterBackported | Make sure that GIN fast-insert and regular code paths enforce the same tuple size limit. Improve the error message for index-tuple-too-large so that it includes the actual size, the limit, and the index name. Sync with the btree occurrences of the same error. e66d7143 | master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+15 more | No linked thread | Oct 02, 2009 |
| CommitterBackported | Fix erroneous handling of shared dependencies (ie dependencies on roles) in CREATE OR REPLACE FUNCTION. The original code would update pg_shdepend as if a new function was being created, even if it wasn't, with two bad consequences: pg_shdepend might record the wrong owner for the function, and any dependencies for roles mentioned in the function's ACL would be lost. The fix is very easy: just don't touch pg_shdepend at all when doing a function replacement. d691cb91 | master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+18 more | No linked thread | Oct 02, 2009 |
| Committer | Support "samehost" and "samenet" specifications in pg_hba.conf, by enumerating the machine's IP interfaces to look for a match. f3aec2c7 | master8.5alpha2REL_19_STABLE8.5alpha2REL_18_STABLE8.5alpha2REL_17_STABLE8.5alpha2REL_16_STABLE8.5alpha2REL_15_STABLE8.5alpha2REL_14_STABLE8.5alpha2REL_13_STABLE8.5alpha2+14 more | No linked thread | Oct 01, 2009 |