| CommitterBackported | Clean up rather sloppy fix in HEAD for the ancient bug that CREATE CONVERSION didn't create a dependency from the new conversion to its schema. Back-patch to all supported releases. a83c71eb | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+22 more | No linked thread | Aug 31, 2006 |
| Committer | Extend COPY to support COPY (SELECT ...) TO ... 85188ab8 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 30, 2006 |
| Committer | Fix things so that fopen's, not only open's, pass FILE_SHARE_DELETE and other special flags on Windows. May fix intermittent 'Permission denied' errors. Magnus Hagander 3a6e2ff0 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 30, 2006 |
| Committer | Dept. of second thoughts: if query fails part way through, shut down the pager before reporting the error. f6d7ef08 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 29, 2006 |
| Committer | Create a FETCH_COUNT parameter that causes psql to execute SELECT-like queries via a cursor, fetching a limited number of rows at a time and therefore not risking exhausting memory. A disadvantage of the scheme is that 'aligned' output mode will align each group of rows independently leading to odd-looking output, but all the other output formats work reasonably well. Chris Mair, with some additional hacking by moi. c2f60711 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 29, 2006 |
| Committer | Invent an assign-hook mechanism for psql variables similar to the one existing for backend GUC variables, and use this to eliminate repeated fetching/parsing of psql variables in psql's inner loops. In a trivial test with lots of 'select 1;' commands, psql's CPU time went down almost 10%, although of course the effect on total elapsed time was much less. Per discussion about how to ensure the upcoming FETCH_COUNT patch doesn't cost any performance when not being used. 0434c46d | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 29, 2006 |
| Committer | Fix pgstat_report_waiting() to not dump core if called before pgstat_bestart() has been called; else any lock-block occurring during InitPostgres() is disastrous. I believe this explains recent wasp regression failure; at least it explains the crash I got while trying to duplicate the problem. I also made pgstat_report_activity() safe against the same scenario, just in case. The report_waiting hazard was created by my patch of 19-Aug to include waiting status in pg_stat_activity. 1832cefd | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 28, 2006 |
| Committer | Partial fix for ecpg's VPATH problems. It compiles and successfully builds all the files needed for its regression tests, but the tests themselves fail because of diffs in the #line directives output by ecpg itself. Not sure what to do about that. ae28cfe6 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 28, 2006 |
| Committer | Tweak trivial_subqueryscan() to consider a SubqueryScan's targetlist trivial if it contains either Vars referencing the corresponding subplan columns, or Consts equaling the corresponding subplan columns. This lets the planner eliminate the SubqueryScan in some cases generated by generate_setop_tlist(). fcba3b82 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 28, 2006 |
| Committer | Add new return codes SPI_OK_INSERT_RETURNING etc to the SPI API. Fix all the standard PLs to be able to return tuples from FOO_RETURNING statements as well as utility statements that return tuples. Also, fix oversight that SPI_processed wasn't set for a utility statement returning tuples. Per recent discussion. ea2e2635 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 27, 2006 |
| Committer | Add some notes about why it's not a bug that RI_FKey_check calls HeapTupleSatisfiesItself without doing LockBuffer first. This code is a bit fragile, but AFAICS it's not actually broken. 7a2fe85b | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 27, 2006 |
| Committer | Add a function GetLockConflicts() to lock.c to report xacts holding locks that would conflict with a specified lock request, without actually trying to get that lock. Use this instead of the former ad hoc method of doing the first wait step in CREATE INDEX CONCURRENTLY. Fixes problem with undetected deadlock and in many cases will allow the index creation to proceed sooner than it otherwise could've. Per discussion with Greg Stark. e06fda0a | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 27, 2006 |
| Committer | Move xact.c's partial support for Lists of TransactionIds into pg_list.h. Needed because lock.c is now going to use the same type of list. ca1fd0ea | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 27, 2006 |
| Committer | Make saveHistory work properly on OS X when HISTFILE is set to /dev/null. Per discussion with Martin Atukunda. 162e8f1f | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 27, 2006 |
| Committer | Add the ability to create indexes 'concurrently', that is, without blocking concurrent writes to the table. Greg Stark, with a little help from Tom Lane. e093dcdd | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 25, 2006 |
| Committer | Add some debug logging code to AllocateFile's failure path to log the specific Windows error code (GetLastError). This is a hopefully temporary hack to try to diagnose rare failures. Magnus Hagander f836c2e3 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 24, 2006 |
| Committer | Optimize the case where a btree indexscan has current and mark positions on the same index page; we can avoid data copying as well as buffer refcount manipulations in this common case. Makes for a small but noticeable improvement in mergejoin speed. 08ae5edc | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 24, 2006 |
| Committer | Ooops, ldap fix for win32 broke the non-win32 case. daebd525 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 22, 2006 |
| Committer | Fix encrypted-LDAP support so that it doesn't cause the server to fail entirely on older Windows platforms without the needed library function. Magnus Hagander 5405576a | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 21, 2006 |
| Committer | Minor code rearrangement to save a few cycles in RI_FKey_check when the subject tuple is already deleted: we need not open the pk_rel until after we check that. d7c310c1 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 21, 2006 |
| CommitterBackported | Remove obsolete tip about casting bool to int, per Taiki Yamaguchi. 548237fc | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Aug 21, 2006 |
| Committer | Make the server track an 'XID epoch', that is, maintain higher-order bits of the transaction ID counter. Nothing is done with the epoch except to store it in checkpoint records, but this provides a foundation with which add-on code can pretend that XIDs never wrap around. This is a severely trimmed and rewritten version of the xxid patch submitted by Marko Kreen. Per discussion, the epoch counter seems the only part of xxid that really needs to be in the core server. 35af5422 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 21, 2006 |
| Committer | Fix all known problems with pg_dump's handling of serial sequences by abandoning the idea that it should say SERIAL in the dump. Instead, dump serial sequences and column defaults just like regular ones. Add a new backend command ALTER SEQUENCE OWNED BY to let pg_dump recreate the sequence-to-column dependency that was formerly created "behind the scenes" by SERIAL. This restores SERIAL to being truly "just a macro" consisting of component operations that can be stated explicitly in SQL. Furthermore, the new command allows sequence ownership to be reassigned, so that old mistakes can be cleaned up. 2b2a5072 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 21, 2006 |
| Committer | Suppress subquery pullup/pushdown when a subquery contains volatile functions in its targetlist, to avoid introducing multiple evaluations of volatile functions that textually appear only once. This is a slightly tighter version of Jaime Casanova's recent patch. fb9e56ee | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 19, 2006 |
| Committer | Add a 'waiting' column to pg_stat_activity to carry the same information that ps_status provides by appending 'waiting' to the PS display. This completes the project of making it feasible to turn off process title updates and instead rely on pg_stat_activity. Per my suggestion a few weeks ago. 9bf760f7 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 19, 2006 |
| Committer | Add PQdescribePrepared, PQdescribePortal, and related functions to libpq to allow obtaining information about previously prepared statements and open cursors. Volkan Yazici 9a8920e1 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 18, 2006 |
| Committer | Now that we've rearranged relation open to get a lock before touching the rel, it's easy to get rid of the narrow race-condition window that used to exist in VACUUM and CLUSTER. Did some minor code-beautification work in the same area, too. 7aa772f0 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 18, 2006 |
| Committer | Implement archive_timeout feature to force xlog file switches to occur no more than N seconds apart. This allows a simple, if not very high performance, means of guaranteeing that a PITR archive is no more than N seconds behind real time. Also make pg_current_xlog_location return the WAL Write pointer, add pg_current_xlog_insert_location to return the Insert pointer, and fix pg_xlogfile_name_offset to return its results as a two-element record instead of a smashed-together string, as per recent discussion. e8ea9e95 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 17, 2006 |
| Committer | Fix an oversight in mergejoin planning: the planner would reject a mergejoin possibility where the inner rel was less well sorted than the outer (ie, it matches some but not all of the merge clauses that can work with the outer), if the inner path in question is also the overall cheapest path for its rel. This is an old bug, but I'm not sure it's worth back-patching, because it's such a corner case. Noted while investigating a test case from Peter Hardman. 92c651f8 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 17, 2006 |
| Committer | Teach convert_subquery_pathkeys() to handle the case where the subquery's pathkey is a RelabelType applied to something that appears in the subquery's output; for example where the subquery returns a varchar Var and the sort order is shown as that Var coerced to text. This comes up because varchar doesn't have its own sort operator. Per example from Peter Hardman. 144b0ae8 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 17, 2006 |
| Committer | Seems some C compilers think 'restrict' is a fully reserved word. Per buildfarm results from warthog. d6ac61cd | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 16, 2006 |
| Committer | Add a hack so that get_type_io_data() can work from bootstrap.c's internal TypInfo table in bootstrap mode. This allows array_in and array_out to be used during early bootstrap, which eliminates the former obstacle to giving OUT parameters to built-in functions. 1395ac6c | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 15, 2006 |
| Committer | Add hooks to allow debugging and performance measurement plugins to instrument PL/pgSQL. Korry Douglas 355865c5 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 15, 2006 |
| Committer | Add server support for "plugin" libraries that can be used for add-on tasks such as debugging and performance measurement. This consists of two features: a table of "rendezvous variables" that allows separately-loaded shared libraries to communicate, and a new GUC setting "local_preload_libraries" that allows libraries to be loaded into specific sessions without explicit cooperation from the client application. To make local_preload_libraries as flexible as possible, we do not restrict its use to superusers; instead, it is restricted to load only libraries stored in $libdir/plugins/. The existing LOAD command has also been modified to allow non-superusers to LOAD libraries stored in this directory. abc3120e | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 15, 2006 |
| Committer | Cause '*' and 'foo.*' notations to mark the referenced RTE(s) as requiring read permissions. Up till now there was no possible case in which the RTEs wouldn't already have ACL_SELECT set ... but now that you can say something like 'INSERT INTO foo ... RETURNING *' this is an essential step. With this commit, a RETURNING clause adds the requirement for SELECT permissions on the target table if and only if the clause actually reads the value of at least one target-table column. 58538a0f | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 14, 2006 |
| Committer | Fix oversight in initial implementation of PORTAL_ONE_RETURNING mode: we cannot assume that there's exactly one Query in the Portal, as we can for ONE_SELECT mode, because non-SELECT queries might have extra queries added during rule rewrites. Fix things up so that we'll use ONE_RETURNING mode when a Portal contains one primary (canSetTag) query and that query has a RETURNING list. This appears to be a second showstopper reason for running the Portal to completion before we start to hand anything back --- we want to be sure that the rule-added queries get run too. 65b2f93b | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 14, 2006 |
| Committer | Support INSERT/UPDATE/DELETE RETURNING in plpgsql, with rowcount checking as per yesterday's proposal. Also make things a tad more orthogonal by adding the recent STRICT addition to EXECUTE INTO. Jonah Harris and Tom Lane 3d1e01ca | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 14, 2006 |
| Committer | When executing a list of queries derived from rule expansion, _SPI_execute_plan's return code should reflect the type of the query that is marked canSetTag, not necessarily the last one in the list. 29fa0513 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 14, 2006 |
| Committer | Remove hash_destroy calls in hash_create's failure paths. As noted by a Coverity warning, these are risky since the hashtable isn't necessarily fully set up yet. They're unnecessary anyway: a deletable hashtable should be in a memory context that will be cleared following elog(ERROR). Per report from Martijn van Oosterhout. c859294c | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 14, 2006 |
| CommitterBackported | Get rid of "lookahead" functionality in plpgsql's yylex() function, and instead make the grammar production for the RETURN statement do the heavy lifting. The lookahead idea was copied from the main parser, but it does not work in plpgsql's parser because here gram.y looks explicitly at the scanner's yytext variable, which will be out of sync after a failed lookahead step. A minimal example is 36481474 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Aug 14, 2006 |
| CommitterBackported | Fix core dump in duration logging for a V3-protocol Execute message when what's being executed is a COMMIT or ROLLBACK. Per report from Sergey Koposov. Backpatch to 8.1; 8.0 and before don't have the bug due to lack of any logging at all here. 1b67e0cc | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Aug 13, 2006 |
| Committer | Cause psql to report both the returned data and the command status tag for INSERT/UPDATE/DELETE RETURNING. Per discussion. b475d25f | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 13, 2006 |
| Committer | If test postmaster fails to start within 60 seconds, try to kill -9 it so that it won't interfere with later trials. Per recent buildfarm experience. Anyone know how to do this on Windows? fbc7f59b | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 13, 2006 |
| Committer | Extend 'guc' regression test to check manipulations of datestyle as well as vacuum_cost_delay. Since datestyle is a string variable, this exercises memory allocation issues that might not appear when modifying an integer GUC variable. Also, we can observe the side effects of changing datestyle to check that assign hooks are called at the right times. a1dad99c | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 13, 2006 |
| Committer | Original coding of 'returning' regression test inadvertently chose a nonunique join value, leading to plan-choice-dependent results ... and it seems some platforms will choose a different plan. Tweak the test so that it has well-defined results. Per report from Olivier Prenant. d2ccc707 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 13, 2006 |
| Committer | Tweak SPI_cursor_open to allow INSERT/UPDATE/DELETE RETURNING; this was merely a matter of fixing the error check, since the underlying Portal infrastructure already handles it. This in turn allows these statements to be used in some existing plpgsql and plperl contexts, such as a plpgsql FOR loop. Also, do some marginal code cleanup in places that were being sloppy about distinguishing SELECT from SELECT INTO. 3f8db37c | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 12, 2006 |
| Committer | Remove ancient, obsolete comment. 883f4b42 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 12, 2006 |
| Committer | Add INSERT/UPDATE/DELETE RETURNING, with basic docs and regression tests. plpgsql support to come later. Along the way, convert execMain's SELECT INTO support into a DestReceiver, in order to eliminate some ugly special cases. 7a3e30e6 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 12, 2006 |
| Committer | Fix UNION/INTERSECT/EXCEPT so that when two inputs being merged have same data type and same typmod, we show that typmod as the output typmod, rather than generic -1. This responds to several complaints over the past few years about UNIONs unexpectedly dropping length or precision info. 0ee26100 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 10, 2006 |
| Committer | Fix inadequate makefile-fu in ecpg regression tests. I think this will fix current platypus build failure. 0bf9d3a5 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 09, 2006 |
| Committer | Fix 'make clean' for change of regression.diffs file name. 644e3fe3 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 08, 2006 |
| Committer | Add a feature for automatic initialization and finalization of dynamically loaded libraries: call functions _PG_init() and _PG_fini() if the library defines such symbols. Hence we no longer need to specify an initialization function in preload_libraries: we can assume that the library used the _PG_init() convention, instead. This removes one source of pilot error in use of preloaded libraries. Original patch by Ralf Engelschall, preload_libraries changes by me. b09bfcaa | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 08, 2006 |
| Committer | Put back another improperly-removed #include. 2dd7ab06 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 07, 2006 |
| CommitterBackported | Back-port HEAD's configure fixes to select appropriate compiler switches for Intel's icc and AIX's xlc. 804e7c5c | REL8_1_STABLE8.1.5REL8_0_STABLE8.0.9 | No linked thread | Aug 07, 2006 |
| Committer | On some platforms, pg_usleep isn't interruptible by signals; fix archiver to behave per original coder's expectation on these machines. We already know this everywhere else AFAICT. 2dc7c88c | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 07, 2006 |
| Committer | Make recovery from WAL be restartable, by executing a checkpoint-like operation every so often. This improves the usefulness of PITR log shipping for hot standby: formerly, if the standby server crashed, it was necessary to restart it from the last base backup and replay all the WAL since then. Now it will only need to reread about the same amount of WAL as the master server would. The behavior might also come in handy during a long PITR replay sequence. Simon Riggs, with some editorialization by Tom Lane. e0028369 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 07, 2006 |
| Committer | Tweak sanity_check regression test to display more tables (viz, those without indexes) but not to display temp tables. It's a bit hard to credit that sanity_check could get through a database-wide VACUUM while the preceding create_index test is still trying to clean up its temp tables ... but I see no other explanation for the current failure report from buildfarm member sponge. 23dc3082 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 06, 2006 |
| Committer | Add support for forcing a switch to a new xlog file; cause such a switch to happen automatically during pg_stop_backup(). Add some functions for interrogating the current xlog insertion point and for easily extracting WAL filenames from the hex WAL locations displayed by pg_stop_backup and friends. Simon Riggs with some editorialization by Tom Lane. 704ddaaa | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 06, 2006 |
| Committer | Fix inheritance_planner() to delete dummy subplans from its Append plan list, when some of the child rels have been excluded by constraint exclusion. This doesn't save a huge amount of time but it'll save some, and it makes the EXPLAIN output look saner. We already did the equivalent thing in set_append_rel_pathlist(), but not here. 635d42e9 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 05, 2006 |
| Committer | Extend relation_excluded_by_constraints() to check for mutually contradictory WHERE-clauses applied to a relation. This makes the GUC variable constraint_exclusion rather inappropriately named, but I've refrained for the moment from renaming it. Per example from Martin Lesser. 5f789c5e | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 05, 2006 |
| Committer | Teach predicate_refuted_by() how to do proofs involving NOT-clauses. This doesn't matter too much for ordinary NOTs, since prepqual.c does its best to get rid of those, but it helps with IS NOT TRUE clauses which the rule rewriter likes to insert. Per example from Martin Lesser. 6357f4ea | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 05, 2006 |
| Committer | Fix domain_in() bug exhibited by Darcy Buskermolen. The idea of an EState that's shorter-lived than the expression state being evaluated in it really doesn't work :-( --- we end up with fn_extra caches getting deleted while still in use. Rather than abandon the notion of caching expression state across domain_in calls altogether, I chose to make domain_in a bit cozier with ExprContext. All we really need for evaluating variable-free expressions is an ExprContext, not an EState, so I invented the notion of a "standalone" ExprContext. domain_in can prevent resource leakages by doing a ReScanExprContext on this rather than having to free it entirely; so we can make the ExprContext have the same lifespan (and particularly the same per_query memory context) as the expression state structs. c6848986 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 04, 2006 |
| Committer | Remove redeclaration of struct sqlca_t --- unnecessary and provokes warnings on some compilers. 6db6714f | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 04, 2006 |
| Committer | Fix missing 'static' keywords --- some compilers gripe about this. 34677588 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 04, 2006 |
| Committer | Fix inadequate quoting in test for AIX xlc. a7d400ad | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 04, 2006 |
| Committer | 'make clean' must remove the create subdirectories results/ and log/, not merely remove their contents. Else 'cvs update' complains. 5d844d32 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 04, 2006 |
| Committer | Teach eval_const_expressions to simplify BooleanTest nodes that have constant input. Seems worth doing because rule rewriter inserts IS NOT TRUE tests into WHERE clauses. e2d34d75 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 04, 2006 |
| Committer | Add some basic tests of GUC behavior. Joachim Wieland c8226429 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 04, 2006 |
| Committer | Cause ALTER TABLE to perform ALTER COLUMN DROP DEFAULT operations during the DROP pass rather than the ADD_CONSTR pass. On examining the code I think this was just an oversight rather than intentional, and it seems to satisfy the principle of least surprise better than the alternative solution that was discussed. Add an example to the ref page showing how to do ALTER TYPE and update the default in one command. Per gripe from Markus Bertheau that that wasn't possible. 7946f772 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 03, 2006 |
| Committer | Remove use of a regex character class in resultmap (for freebsd version check). This isn't supported by pg_regress since the recent rewrite into C. While we could add char classes to pg_regress.c's code, it's not really needed at the moment: thanks to Andrew's patch to make pg_regress always accept the 'standard' comparison file, we can just drop the version check. 89c07b18 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 03, 2006 |
| Committer | Fix AfterTriggerExecute() to pass tg_trigtuple and tg_newtuple as NULLs rather than pointers to garbage, when calling AFTER STATEMENT triggers. Michael Fuhr f5b78fa5 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 03, 2006 |
| Committer | Add missing pgstat_count_index_scan(), per Andreas Seltenreich. bc8ac3ce | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 03, 2006 |
| Committer | A few regression tests for VALUES, from Gavin Sherry. d841cc44 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 03, 2006 |
| Committer | Arrange for ValuesScan to keep per-sublist expression eval state in a temporary context that can be reset when advancing to the next sublist. This is faster and more thorough at recovering space than the previous method; moreover it will do the right thing if something in the sublist tries to register an expression context callback. 0dfb595d | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 02, 2006 |
| CommitterBackported | Fix documentation error: GRANT/REVOKE for roles only accept role names as grantees, not PUBLIC ... and you can't say GROUP either. Noted by Brian Hurt. 9649b182 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Aug 02, 2006 |
| Committer | Wups, got the test for contain_vars_of_level-not-needed wrong in transformInsertStmt: the target table is already in p_rtable at that point. e79aed7c | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 02, 2006 |
| Committer | Add a HINT per suggestion from Michael Glaesemann. Also, tweak OLD/NEW test to avoid expensive contain_vars_of_level() scan in the normal case where we're not inside a rule. 6392518c | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 02, 2006 |