PostgreSQL 9.0.0 commit log

tag v9.0.0 … the big day approaches

  
commit   : 861861edcc04a6e3ebdfe363311f122e2b226196    
  
author   : Marc G. Fournier <scrappy@hub.org>    
date     : Fri, 17 Sep 2010 01:18:41 +0000    
  
committer: Marc G. Fournier <scrappy@hub.org>    
date     : Fri, 17 Sep 2010 01:18:41 +0000    

Click here for diff

  
  

Treat exit code 128 (ERROR_WAIT_NO_CHILDREN) as non-fatal on Win32, since it can happen when a process fails to start when the system is under high load.

  
commit   : ec6fca101e81d7bb3a5e2e2df38c1236b26c8698    
  
author   : Magnus Hagander <magnus@hagander.net>    
date     : Thu, 16 Sep 2010 20:37:18 +0000    
  
committer: Magnus Hagander <magnus@hagander.net>    
date     : Thu, 16 Sep 2010 20:37:18 +0000    

Click here for diff

  
Per several bug reports and many peoples investigation.  
  
Back-patch to 8.4, which is as far back as the "deadman-switch"  
for shared memory access exists.  
  

Translation updates for 9.0.0

  
commit   : 765b69ddb1a9357b25c4efc3290264b32f757c13    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 16 Sep 2010 19:09:39 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 16 Sep 2010 19:09:39 +0000    

Click here for diff

  
  

Stamp 9.0 release notes with expected release date; also some last-minute copy-editing.

  
commit   : 57d115c449d24166b7bb1a2646aa4fba0cd07a02    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 16 Sep 2010 18:15:28 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 16 Sep 2010 18:15:28 +0000    

Click here for diff

  
  

Fix bad grammar.

  
commit   : a59eaf28ccdf5c4ac89cd411b00e71a79067a55a    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 16 Sep 2010 14:31:26 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 16 Sep 2010 14:31:26 +0000    

Click here for diff

  
  

Fix two new-in-9.0 bugs in hstore.

  
commit   : c5ed269164f5bff46aaf13d05cd6e23dfd362728    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 16 Sep 2010 02:54:07 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 16 Sep 2010 02:54:07 +0000    

Click here for diff

  
There was an incorrect Assert in hstoreValidOldFormat(), which would cause  
immediate core dumps when attempting to work with pre-9.0 hstore data,  
but of course only in an assert-enabled build.  
  
Also, ghstore_decompress() incorrectly applied DatumGetHStoreP() to a datum  
that wasn't actually an hstore, but rather a ghstore (ie, a gist signature  
bitstring).  That used to be harmless, but could now result in misbehavior  
if the hstore format conversion code happened to trigger.  In reality,  
since ghstore is not marked toastable (and doesn't need to be), this  
function is useless anyway; we can lobotomize it down to returning the  
passed-in pointer.  
  
Both bugs found by Andrew Gierth, though this isn't exactly his proposed  
patch.  
  

Add a compatibility note about plpgsql’s treatment of SELECT INTO rec.fld when fld is of composite type. Per discussion of bug #5644 from Valentine Gogichashvili.

  
commit   : e3171be674658f9ce1decaddae51462bfda517aa    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 15 Sep 2010 17:46:02 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 15 Sep 2010 17:46:02 +0000    

Click here for diff

  
  

Fix join-removal logic for pseudoconstant and outerjoin-delayed quals.

  
commit   : bab9f1d585b15db59ec2703adaadc3efcf3f1810    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 14 Sep 2010 23:15:37 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 14 Sep 2010 23:15:37 +0000    

Click here for diff

  
In these cases a qual can get marked with the removable rel in its  
required_relids, but this is just to schedule its evaluation correctly, not  
because it really depends on the rel.  We were assuming that, in effect,  
we could throw away *all* quals so marked, which is nonsense.  Tighten up  
the logic to be a little more paranoid about which quals belong to the  
outer join being considered for removal, and arrange for all quals that  
don't belong to be updated so they will still get evaluated correctly.  
  
Also fix another problem that happened to be exposed by this test case,  
which was that make_join_rel() was failing to notice some cases where  
a constant-false qual could be used to prove a join relation empty.  If it's  
a pushed-down constant false, then the relation is empty even if it's an  
outer join, because the qual applies after the outer join expansion.  
  
Per report from Nathan Grange.  Back-patch into 9.0.  
  

Don’t warn about an in-progress online backup, when we’re recovering from an online backup instead of performing one. pg_ctl can detect that by checking if recovery.conf exists.

  
commit   : 105faeb3569b83a2bb2a6b6e367b77d1c51c1789    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Tue, 14 Sep 2010 08:05:54 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Tue, 14 Sep 2010 08:05:54 +0000    

Click here for diff

  
Backup label file is renamed away early in recovery, so the window where  
backup label exists during recovery is normally very small, but you can run  
into it e.g if restore_command is set incorrectly and the startup process  
never finds even the first WAL segment containing the checkpoint record to  
start recovery from.  
  
Fujii Masao with comments by me.  
  

Elaborate on what gets stored in pg_authid.rolpasswd.

  
commit   : 3b08e09fe7bc2640930aaa9e6d284700f4920f5f    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Mon, 13 Sep 2010 17:03:23 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Mon, 13 Sep 2010 17:03:23 +0000    

Click here for diff

  
Also, add cross-reference from pg_shadow.passwd to pg_authid.rolpasswd and  
fix a bit of markup I muffed in my previous commit.  
  
Per discussion with Josh Kupershmidt.  
  

Remove prototype for non-existent function from walreceiver.h. Tidy up by separating prototypes for functions in walreceiver.c and walreceiverfuncs.c with comments.

  
commit   : d9ac2fdaa96d85830925151aa5751ee79aa6b01d    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Mon, 13 Sep 2010 10:14:30 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Mon, 13 Sep 2010 10:14:30 +0000    

Click here for diff

  
  

Process options from the startup packed in walsender. Only few options make sense for walsender, but for example application_name and client_encoding do. We still don’t apply per-role settings from pg_db_role_setting, because that would require connecting to a database to read the table.

  
commit   : 035081676b2493bcced7659d8f608305b787d4b2    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Mon, 13 Sep 2010 09:00:35 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Mon, 13 Sep 2010 09:00:35 +0000    

Click here for diff

  
Fujii Masao  
  

Don’t try aligning comments for new archive_command Win32 doc example; it doesn’t work.

  
commit   : 6bb4a7b30563483c646fb0e5bd08465dc8f373d9    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Mon, 13 Sep 2010 01:35:54 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Mon, 13 Sep 2010 01:35:54 +0000    

Click here for diff

  
Backpatch to 9.0.X.  
  

  
commit   : 1cdf188aa66846f2edef5276e85e07ba592aeefb    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Mon, 13 Sep 2010 01:25:12 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Mon, 13 Sep 2010 01:25:12 +0000    

Click here for diff

  
Per discussion with Josh Kupershmidt.  
  

Re-add documentation for Win32 copy syntax for archive_command.

  
commit   : f499c211d85068514ba76bcbbd55e8d7004b9152    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sun, 12 Sep 2010 13:47:19 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sun, 12 Sep 2010 13:47:19 +0000    

Click here for diff

  
Backpatch to 9.0.X.  
  

Remove obsolete claim that gzip is needed while installing PG’s documentation. It isn’t, now that we ship the docs as loose files rather than a sub-tarball.

  
commit   : e266be9110717a6901823de2126c8fce5fe30370    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 9 Sep 2010 17:19:46 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 9 Sep 2010 17:19:46 +0000    

Click here for diff

  
Also adjust the wording in a couple of places to make the lists of required  
software read more consistently.  
  

Doc fixes:

  
commit   : a8745a9afda01a29a4dd573b194b0abb1b439a28    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 9 Sep 2010 00:48:29 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 9 Sep 2010 00:48:29 +0000    

Click here for diff

  
- remove excessive table cells  
- moving function parameters into function tags rather than having  
  them being considered separate  
- add return type column on XML2 contrib module functions list and  
  removing return types from function  
- add table header to XML2 contrib parameter table  
  
Thom Brown  
  
Backpatch to 9.0.X.  
  

  
commit   : 83756a241a087a18f180526bde94703516c87f1c    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Wed, 8 Sep 2010 20:35:53 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Wed, 8 Sep 2010 20:35:53 +0000    

Click here for diff

  
  

Clarify that surrogate pairs are not encoded in UTF-8 directly

  
commit   : f48fb5d823d1b62e57ab6a41928baccc10f4b559    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Tue, 7 Sep 2010 18:54:08 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Tue, 7 Sep 2010 18:54:08 +0000    

Click here for diff

  
  

  
commit   : d3581d3161208ed975ee23e826d7872ef4ee4795    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 7 Sep 2010 14:10:39 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 7 Sep 2010 14:10:39 +0000    

Click here for diff

  
Backpatch to 9.0.X.  
  

Pad the ps_status display with nulls, not blanks, on Darwin.

  
commit   : b74f7751420bae9e47961ad08e92b1fb5879fc6d    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 4 Sep 2010 17:46:03 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 4 Sep 2010 17:46:03 +0000    

Click here for diff

  
A long time ago, this didn't work nicely, but it seems to work on all recent  
versions of OS X.  The blank-pad method is less desirable since it results  
in lots of extra space in ps' output.  Per Alexey Klyukin.  
  

Clean up description of ecpg’s dtcvfmtasc function. Per KOIZUMI Satoru.

  
commit   : a2145a5b4331be788d5391eb4636751e0033d68f    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 2 Sep 2010 14:57:09 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 2 Sep 2010 14:57:09 +0000    

Click here for diff

  
  

Clean up some bad grammar and punctuation in description of ecpg’s decimal type. Per KOIZUMI Satoru.

  
commit   : ec3747f77e2be3bffcc0ad8ffa65af7c5ec31e90    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 2 Sep 2010 14:46:51 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 2 Sep 2010 14:46:51 +0000    

Click here for diff

  
  

Fix up flushing of composite-type typcache entries to be driven directly by SI invalidation events, rather than indirectly through the relcache.

  
commit   : 7c18d3f1e0d51ab903962cf0bc88138fddb230bf    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 2 Sep 2010 03:16:52 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 2 Sep 2010 03:16:52 +0000    

Click here for diff

  
In the previous coding, we had to flush a composite-type typcache entry  
whenever we discarded the corresponding relcache entry.  This caused problems  
at least when testing with RELCACHE_FORCE_RELEASE, as shown in recent report  
from Jeff Davis, and might result in real-world problems given the kind of  
unexpected relcache flush that that test mechanism is intended to model.  
  
The new coding decouples relcache and typcache management, which is a good  
thing anyway from a structural perspective.  The cost is that we have to  
search the typcache linearly to find entries that need to be flushed.  There  
are a couple of ways we could avoid that, but at the moment it's not clear  
it's worth any extra trouble, because the typcache contains very few entries  
in typical operation.  
  
Back-patch to 8.2, the same as some other recent fixes in this general area.  
The patch could be carried back to 8.0 with some additional work, but given  
that it's only hypothetical whether we're fixing any problem observable in  
the field, it doesn't seem worth the work now.  
  

Clarify documentation of handling of null arguments for aggregates. Per discussion.

  
commit   : 43e48de4a51257a0fcf697825fe008031c9241b4    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 1 Sep 2010 18:22:35 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 1 Sep 2010 18:22:35 +0000    

Click here for diff

  
  

Improve release notes’ description of Teodor’s fixes for polygon overlaps and contains operators.

  
commit   : 41c8287de0d3c8942aa4842fff4af41091e0d90e    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 1 Sep 2010 15:14:48 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 1 Sep 2010 15:14:48 +0000    

Click here for diff

  
  

Add missing markup for translatability

  
commit   : 9602630f40d13f17178d0b7846871b242204c574    
  
author   : Alvaro Herrera <alvherre@alvh.no-ip.org>    
date     : Tue, 31 Aug 2010 05:57:56 +0000    
  
committer: Alvaro Herrera <alvherre@alvh.no-ip.org>    
date     : Tue, 31 Aug 2010 05:57:56 +0000    

Click here for diff

  
  

Cosmetic fixes for KnownAssignedXidsGetOldestXmin, per Fujii Masao.

  
commit   : bdf6b6a573e6409e1a0ed7201b2f9c0c19a5f332    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 30 Aug 2010 17:30:49 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 30 Aug 2010 17:30:49 +0000    

Click here for diff

  
  

Fix misleading DEBUG2 issued during RemoveOldXlogFiles()

  
commit   : 34a7ee82c40d596b053456a14c7b8dffc2828762    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Mon, 30 Aug 2010 15:38:17 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Mon, 30 Aug 2010 15:38:17 +0000    

Click here for diff

  
  

Truncate subtrans after each restartpoint. Issue reported by Harald Kolb, patch by Fujii Masao, review by me.

  
commit   : 4c5fb76c39da3ceba1a86ece576cab112470a878    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Mon, 30 Aug 2010 15:21:18 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Mon, 30 Aug 2010 15:21:18 +0000    

Click here for diff

  
  

Teach GetOldestXmin() about KnownAssignedXids during recovery. Very minor issue, though this is required for a later patch. Reported by Heikki Linnakangas.

  
commit   : 7ab02365000045605b63920ec761fee172e8c346    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Mon, 30 Aug 2010 15:20:31 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Mon, 30 Aug 2010 15:20:31 +0000    

Click here for diff

  
  

Fix typo in comment.

  
commit   : e123939e8b14561de13caeeb37d22e48a17e381b    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Mon, 30 Aug 2010 06:33:26 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Mon, 30 Aug 2010 06:33:26 +0000    

Click here for diff

  
  

Reduce PANIC to ERROR in some occasionally-reported btree failure cases.

  
commit   : b39bec1ac410b4e7ff5bcd3fd342d89ead29c2e6    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 29 Aug 2010 19:33:21 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 29 Aug 2010 19:33:21 +0000    

Click here for diff

  
This patch changes _bt_split() and _bt_pagedel() to throw a plain ERROR,  
rather than PANIC, for several cases that are reported from the field  
from time to time:  
* right sibling's left-link doesn't match;  
* PageAddItem failure during _bt_split();  
* parent page's next child isn't right sibling during _bt_pagedel().  
In addition the error messages for these cases have been made a bit  
more verbose, with additional values included.  
  
The original motivation for PANIC here was to capture core dumps for  
subsequent analysis.  But with so many users whose platforms don't capture  
core dumps by default, or who are unprepared to analyze them anyway, it's hard  
to justify a forced database restart when we can fairly easily detect the  
problems before we've reached the critical sections where PANIC would be  
necessary.  It is not currently known whether the reports of these messages  
indicate well-hidden bugs in Postgres, or are a result of storage-level  
malfeasance; the latter possibility suggests that we ought to try to be more  
robust even if there is a bug here that's ultimately found.  
  
Backpatch to 8.2.  The code before that is sufficiently different that  
it doesn't seem worth the trouble to back-port further.  
  

Remove obsolete remark that PQprepare() is more flexible than PREPARE.

  
commit   : 0808cb109b3b5f270aa73ccfad8341d2da401976    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 29 Aug 2010 15:19:12 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 29 Aug 2010 15:19:12 +0000    

Click here for diff

  
Spotted by Dmitriy Igrishin.  Back-patch to 8.2, which is when the PREPARE  
statement was improved to allow parameter types to be omitted.  
  

tag rc1 … final stretch …

  
commit   : ee48d27e34f8c2c6a410b7265d8ac11dd8368e77    
  
author   : Marc G. Fournier <scrappy@hub.org>    
date     : Fri, 27 Aug 2010 03:04:41 +0000    
  
committer: Marc G. Fournier <scrappy@hub.org>    
date     : Fri, 27 Aug 2010 03:04:41 +0000    

Click here for diff

  
  

Document the existence of the socket lock file under unix_socket_directory, which is perhaps not a terribly good spot for it but there doesn’t seem to be a better place. Also add a source-code comment pointing out a couple reasons for having a separate lock file. Per suggestion from Greg Smith.

  
commit   : d7a1feba67c3b1fbe47a186a5749c47034966a38    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 26 Aug 2010 22:00:32 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 26 Aug 2010 22:00:32 +0000    

Click here for diff

  
  

Explain automatic creation (or lack of it) of indexes for the various types of constraints.

  
commit   : cf95e921ff4957bed08ac94e3a9d0b91e00cc95f    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 26 Aug 2010 21:08:43 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 26 Aug 2010 21:08:43 +0000    

Click here for diff

  
Kevin Grittner  
  

Update time zone data files to tzdata release 2010l: DST law changes in Egypt and Palestine. Added new names for two Micronesian timezones: Pacific/Chuuk is now preferred over Pacific/Truk (and the preferred abbreviation is CHUT not TRUT) and Pacific/Pohnpei is preferred over Pacific/Ponape. Historical corrections for Finland.

  
commit   : 4ad4b95be26f6677d80cd744036b5e73c89406c7    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 26 Aug 2010 19:58:50 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 26 Aug 2010 19:58:50 +0000    

Click here for diff

  
  

Improve wording for privilege description on certain failure messages; the original misleadingly suggests that only access is meant, causing confusion. Per recent trouble report by Robert McGehee on pgsql-admin.

  
commit   : 2b9a93a21ad7d139df56441b049bc633025107c7    
  
author   : Alvaro Herrera <alvherre@alvh.no-ip.org>    
date     : Thu, 26 Aug 2010 19:49:41 +0000    
  
committer: Alvaro Herrera <alvherre@alvh.no-ip.org>    
date     : Thu, 26 Aug 2010 19:49:41 +0000    

Click here for diff

  
  

Remove duplicate translatable phrase

  
commit   : 803250e97bff07c56b3df517b0e05654aefe9d47    
  
author   : Alvaro Herrera <alvherre@alvh.no-ip.org>    
date     : Thu, 26 Aug 2010 19:24:40 +0000    
  
committer: Alvaro Herrera <alvherre@alvh.no-ip.org>    
date     : Thu, 26 Aug 2010 19:24:40 +0000    

Click here for diff

  
  

Translation updates for 9.0rc1

  
commit   : d97ccb83ba1da7b366c27f2650b024286778d582    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 26 Aug 2010 19:23:10 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 26 Aug 2010 19:23:10 +0000    

Click here for diff

  
  

Fix ExecMakeTableFunctionResult to verify that all rows returned by a SRF returning “record” actually do have the same rowtype. This is needed because the parser can’t realistically enforce that they will all have the same typmod, as seen in a recent example from David Wheeler.

  
commit   : 62275d55c44fb72d6e1102ef5e5b7d014fff8293    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 26 Aug 2010 18:54:44 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 26 Aug 2010 18:54:44 +0000    

Click here for diff

  
Back-patch to 8.0, which is as far back as we have the notion of RECORD  
subtypes being distinguished by typmod.  Wheeler's example depends on  
8.4-and-up features, but I suspect there may be ways to provoke similar  
failures before 8.4.  
  

Don’t auto-create the subdirectories holding built documentation in a VPATH build tree. If we actually build the docs in the VPATH tree, those dirs will get created then; but if they’re present and empty, they capture the vpathsearch searches in “make install”, preventing installation of prebuilt docs that might exist in the source tree. Per bug #5595 from Dmtiriy Igrishin. Fix based on idea from Peter Eisentraut.

  
commit   : b98317c8aa8b5ff900319dc4721f73669ea40870    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 26 Aug 2010 18:34:44 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 26 Aug 2010 18:34:44 +0000    

Click here for diff

  
  

Remove docs for “Incrementally Updated Backups” because it was of questionable reliability; information moved to a wiki:

  
commit   : 2d685d4ec0b2b6c1e810a784f1d5ed9f9b2739e5    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 25 Aug 2010 23:56:03 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 25 Aug 2010 23:56:03 +0000    

Click here for diff

  
	http://wiki.postgresql.org/wiki/Incrementally_Updated_Backups  
  
Backpatch to 9.0.  
  

Document filtering dictionaries in textsearch.sgml.

  
commit   : 6a167730e34f9658dd256deacb1f7965dca5178c    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 25 Aug 2010 21:43:01 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 25 Aug 2010 21:43:01 +0000    

Click here for diff

  
While at it, copy-edit the description of prefix-match marker support in  
synonym dictionaries, and clarify the description of the default unaccent  
dictionary a bit more.  
  

Improve hint message for ENOMEM failure from shmget().

  
commit   : b5cf172d2cb7daf930d43aba91897e0b1ae57ee0    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 25 Aug 2010 20:10:59 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 25 Aug 2010 20:10:59 +0000    

Click here for diff

  
It turns out that some platforms return ENOMEM for a request that violates  
SHMALL, whereas we were assuming that ENOSPC would always be used for that.  
Apparently the latter is a Linuxism while ENOMEM is the BSD tradition.  
Extend the ENOMEM hint to suggest that raising SHMALL might be needed.  
Per gripe from A.M.  
  
Backpatch to 9.0, but not further, because this doesn't seem important  
enough to warrant creating extra translation work in the stable branches.  
(If it were, we'd have figured this out years ago.)  
  

Update release notes, per comments from Simon Riggs.

  
commit   : 167557b47675088b5f62ec7b1b0374f4fa82b9e5    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 25 Aug 2010 19:41:51 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 25 Aug 2010 19:41:51 +0000    

Click here for diff

  
  

Catch null pointer returns from PyCObject_AsVoidPtr and PyCObject_FromVoidPtr

  
commit   : 7bc59f7cec26e16ee087bb0a9ab39c70af2f59d7    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Wed, 25 Aug 2010 19:37:52 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Wed, 25 Aug 2010 19:37:52 +0000    

Click here for diff

  
This is reproducibly possible in Python 2.7 if the user turned  
PendingDeprecationWarning into an error, but it's theoretically also possible  
in earlier versions in case of exceptional conditions.  
  
backpatched to 8.0  
  

Add missing description of reloftype field

  
commit   : a60d2000920de45e6c2c6055ea7f900645402616    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Wed, 25 Aug 2010 18:18:38 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Wed, 25 Aug 2010 18:18:38 +0000    

Click here for diff

  
  

Docs review for unaccent: fix grammar, markup, etc.

  
commit   : 0d495e3412b4b7155a3004034db6de6e5c77e785    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 25 Aug 2010 02:12:11 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 25 Aug 2010 02:12:11 +0000    

Click here for diff

  
  

Update 9.0 release notes for changes since beta4.

  
commit   : 5b9399f0a12f8ac76478611a7b610779894ba0b2    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 25 Aug 2010 00:48:06 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 25 Aug 2010 00:48:06 +0000    

Click here for diff

  
Note: as usual, bug fixes that were also applied in back branches are not  
considered material to include in a new major release's notes.  
  

Further editing of release notes.

  
commit   : 84cc6717bc34c4acc969fd7c1e05765112dcb3dc    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 24 Aug 2010 23:45:37 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 24 Aug 2010 23:45:37 +0000    

Click here for diff

  
  

Fix awkward wording in Incrementally Updated Backups docs.

  
commit   : 7946e1a71bf4e953551a5686e2d3d2dfd81aba4e    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 24 Aug 2010 15:22:19 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 24 Aug 2010 15:22:19 +0000    

Click here for diff

  
Backpatch to 9.0.X.  
  

Clarifications for 9.0 release notes

  
commit   : bbc0d041fb8eca2055d6a3380d19aba66843c904    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 24 Aug 2010 14:46:35 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 24 Aug 2010 14:46:35 +0000    

Click here for diff

  
Josh Berkus  
  

Update autovacuum_freeze_max_age documentation to mention that the default is low because of pg_clog file removal.

  
commit   : fad4b0013de408852af6d0dcb906742d0b41553e    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 24 Aug 2010 13:32:32 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 24 Aug 2010 13:32:32 +0000    

Click here for diff

  
Backpatch to 9.0.X.  
  

Marginal code cleanup for streaming replication.

  
commit   : 914a2f6e987632bc6c5567e87d006459c38a423c    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 23 Aug 2010 17:20:08 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 23 Aug 2010 17:20:08 +0000    

Click here for diff

  
There is no reason that proc.c should have to get involved in this dirty hack  
for letting the postmaster know which children are walsenders.  Revert that  
file to the way it was, and confine the kluge to pmsignal.c and postmaster.c.  
  

Make pg_archivecleanup log messages more consistent.

  
commit   : 738df2f475c67743e2a8995f3a2cf914396e84ae    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 23 Aug 2010 02:56:29 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 23 Aug 2010 02:56:29 +0000    

Click here for diff

  
Erik Rijkers  
  

Make an editorial pass over the 9.0 release notes.

  
commit   : 1be6be8f11f6fce171b9c5b9b5ce3ee5054f1484    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 23 Aug 2010 02:43:35 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 23 Aug 2010 02:43:35 +0000    

Click here for diff

  
This is mostly about grammar, style, and presentation, though I did find  
a few small factual errors.  
  

Document that autovacuum_freeze_max_age is used for pg_clog recycling. We already mentioned xid wraparound.

  
commit   : 84d30267c590ee5b82070dbc852dabf6369b507b    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sun, 22 Aug 2010 02:37:38 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sun, 22 Aug 2010 02:37:38 +0000    

Click here for diff

  
  

Use a non-locale-dependent definition of isspace() in array_in/array_out.

  
commit   : 0804734d9144f5a6010e8f395542c11533b5a1c1    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 21 Aug 2010 16:55:58 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 21 Aug 2010 16:55:58 +0000    

Click here for diff

  
array_in discards unquoted leading and trailing whitespace in array values,  
while array_out is careful to quote array elements that contain whitespace.  
This is problematic when the definition of "whitespace" varies between  
locales: array_in could drop characters that were meant to be part of the  
value.  To avoid that, lock down "whitespace" to mean only the traditional  
six ASCII space characters.  
  
This change also works around a bug in OS X and some older BSD systems, in  
which isspace() could return true for character fragments in UTF8 locales.  
(There may be other places in PG where that bug could cause problems, but  
this is the only one complained of so far; see recent report from Steven  
Schlansker.)  
  
Back-patch to 9.0, but not further.  Given the lack of previous reports  
of trouble, changing this behavior in stable branches seems to offer  
more risk of breaking applications than reward of avoiding problems.  
  

Improve parallel restore’s ability to cope with selective restore (-L option).

  
commit   : 510034ac83a219c499486dc40793ecc6e6a9e539    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 21 Aug 2010 13:59:50 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 21 Aug 2010 13:59:50 +0000    

Click here for diff

  
The original coding tended to break down in the face of modified restore  
orders, as shown in bug #5626 from Albert Ullrich, because it would flip over  
into parallel-restore operation too soon.  That causes problems because we  
don't have sufficient dependency information in dump archives to allow safe  
parallel processing of SECTION_PRE_DATA items.  Even if we did, it's probably  
undesirable to allow that to override the commanded restore order.  
  
To fix the problem of omitted items causing unexpected changes in restore  
order, tweak SortTocFromFile so that omitted items end up at the head of  
the list not the tail.  This ensures that they'll be examined and their  
dependencies will be marked satisfied before we get to any interesting  
items.  
  
In HEAD and 9.0, we can easily change restore_toc_entries_parallel so that  
all SECTION_PRE_DATA items are guaranteed to be processed in the initial  
serial-restore loop, and hence in commanded order.  Only DATA and POST_DATA  
items are candidates for parallel processing.  For them there might be  
variations from the commanded order because of parallelism, but we should  
do it in a safe order thanks to dependencies.  
  
In 8.4 it's much harder to make such a guarantee.  I settled for not  
letting the initial loop break out into parallel processing mode if  
it sees a DATA/POST_DATA item that's not to be restored; this at least  
prevents a non-restorable item from causing premature exit from the loop.  
This means that 8.4 will be more likely to fail given a badly-ordered -L  
list than 9.x, but we don't really promise any such thing will work anyway.  
  

Bring some sanity to the trace_recovery_messages code and docs. Per gripe from Fujii Masao, though this is not exactly his proposed patch. Categorize as DEVELOPER_OPTIONS and set context PGC_SIGHUP, as per Fujii, but set the default to LOG because higher values aren’t really sensible (see the code for trace_recovery()). Fix the documentation to agree with the code and to try to explain what the variable actually does. Get rid of no-op calls trace_recovery(LOG), which accomplish nothing except to demonstrate that this option confuses even its author.

  
commit   : f333f69d1919399e07a08d06f4bb7ffc5fae49b6    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 19 Aug 2010 22:55:10 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 19 Aug 2010 22:55:10 +0000    

Click here for diff

  
  

Allow USING and INTO clauses of plpgsql’s EXECUTE to appear in either order.

  
commit   : 4a1989ffd5bb7c93c7ccf860061a5142d5935268    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 19 Aug 2010 18:58:04 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 19 Aug 2010 18:58:04 +0000    

Click here for diff

  
Aside from being more forgiving, this prevents a rather surprising misbehavior  
when the "wrong" order was used: the old code didn't throw a syntax error,  
but absorbed the INTO clause into the last USING expression, which then did  
strange things downstream.  
  
Intentionally not changing the documentation; we'll continue to advertise  
only the "standard" clause order.  
  
Backpatch to 8.4, where the USING clause was added to EXECUTE.  
  

Keep exec_simple_check_plan() from thinking “SELECT foo INTO bar” is simple.

  
commit   : f5c496b7f55fbe054d299cdbbac225bfdd47c848    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 19 Aug 2010 18:10:56 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 19 Aug 2010 18:10:56 +0000    

Click here for diff

  
It's not clear if this situation can occur in plpgsql other than via the  
EXECUTE USING case Heikki illustrated, which I will shortly close off.  
However, ignoring the intoClause if it's there is surely wrong, so let's  
patch it for safety.  
  
Backpatch to 8.3, which is as far back as this code has a PlannedStmt  
to deal with.  There might be another way to make an equivalent test  
before that, but since this is just preventing hypothetical bugs,  
I'm not going to obsess about it.  
  

Be a bit less cavalier with both the code and the comment for UNKNOWN fix.

  
commit   : 3d7feba4b36d67d5fd21231c43524de2ec33fbef    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 19 Aug 2010 17:31:50 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 19 Aug 2010 17:31:50 +0000    

Click here for diff

  
  

Revert patch to coerce ‘unknown’ type parameters in the backend. As Tom pointed out, it would need a 2nd pass after the whole query is processed to correctly check that an unknown Param is coerced to the same target type everywhere. Adding the 2nd pass would add a lot more code, which doesn’t seem worth the risk given that there isn’t much of a use case for passing unknown Params in the first place. The code would work without that check, but it might be confusing and the behavior would be different from the varparams case.

  
commit   : cc46c4e862214217e5901c2ea4573840a15dc2f4    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Thu, 19 Aug 2010 16:54:48 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Thu, 19 Aug 2010 16:54:48 +0000    

Click here for diff

  
Instead, just coerce all unknown params in a PL/pgSQL USING clause to text.  
That's simple, and is usually what users expect.  
  
Revert the patch in CVS HEAD and master, and backpatch the new solution to  
8.4. Unlike the previous solution, this applies easily to 8.4 too.  
  

Allocate local buffers in a context of their own, rather than dumping them into TopMemoryContext. This makes no functional difference, but makes it easier to see what the space is being used for in MemoryContextStats dumps. Per a recent example in which I was surprised by the size of TopMemoryContext.

  
commit   : 67b4fcf80689da2bc89fcacea7bb80c871fa3429    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 19 Aug 2010 16:16:27 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 19 Aug 2010 16:16:27 +0000    

Click here for diff

  
  

Fix possible corruption of AfterTriggerEventLists in subtransaction rollback.

  
commit   : 780a7dcb69bd9f48dc4656861ff6c75843544eb7    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 19 Aug 2010 15:46:24 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 19 Aug 2010 15:46:24 +0000    

Click here for diff

  
afterTriggerInvokeEvents failed to adjust events->tailfree when truncating  
the last chunk of an event list.  This could result in the data being  
"de-truncated" by afterTriggerRestoreEventList during a subsequent  
subtransaction abort.  Even that wouldn't kill us, because the re-added data  
would just be events marked DONE --- unless the data had been partially  
overwritten by new events.  Then we might crash, or in any case misbehave  
(perhaps fire triggers twice, or fire triggers with the wrong event data).  
Per bug #5622 from Thue Janus Kristensen.  
  
Back-patch to 8.4 where the current trigger list representation was introduced.  
  

Reset the per-output-tuple exprcontext each time through the main loop in ExecModifyTable(). This avoids memory leakage when trigger functions leave junk behind in that context (as they more or less must). Problem and solution identified by Dean Rasheed.

  
commit   : 205fc921d727dbe547c6306ee0368f4b2a54d3aa    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 18 Aug 2010 21:52:32 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 18 Aug 2010 21:52:32 +0000    

Click here for diff

  
I'm a bit concerned about the longevity of this solution --- once a plan can  
have multiple ModifyTable nodes, we are very possibly going to have to do  
something different.  But it should hold up for 9.0.  
  

Fix failure of “ALTER TABLE t ADD COLUMN c serial” when done by non-owner.

  
commit   : 2eba69addcd716bb159fce6766182c2f667e5b1c    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 18 Aug 2010 18:35:30 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 18 Aug 2010 18:35:30 +0000    

Click here for diff

  
The implicitly created sequence was created as owned by the current user,  
who could be different from the table owner, eg if current user is a  
superuser or some member of the table's owning role.  This caused sanity  
checks in the SEQUENCE OWNED BY code to spit up.  Although possibly we  
don't need those sanity checks, the safest fix seems to be to make sure  
the implicit sequence is assigned the same owner role as the table has.  
(We still do all permissions checks as the current user, however.)  
Per report from Josh Berkus.  
  
Back-patch to 9.0.  The bug goes back to the invention of SEQUENCE OWNED BY  
in 8.2, but the fix requires an API change for DefineRelation(), which seems  
to have potential for breaking third-party code if done in a minor release.  
Given the lack of prior complaints, it's probably not worth fixing in the  
stable branches.  
  

Add missing handling of PlannedStmt.transientPlan in copyfuncs/outfuncs.

  
commit   : 0321d031b51f35567947e4a478b157293c4a38c6    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 18 Aug 2010 15:22:00 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 18 Aug 2010 15:22:00 +0000    

Click here for diff

  
_outPlannedStmt is only debug support, so the omission there was not very  
serious, but the omission in _copyPlannedStmt is a real bug.  The consequence  
would be that a copied plan tree would never be marked as a transient plan,  
so that we would forget we ought to replan it after some not-yet-ready index  
becomes ready for use.  This might explain some past complaints about indexes  
created with CREATE INDEX CONCURRENTLY not being used right away.  Problem  
spotted by Yeb Havinga.  
  
Back-patch to 8.3, where the field was added.  
  

Coerce ‘unknown’ type parameters to the right type in the fixed-params parse_analyze() function. That case occurs e.g with PL/pgSQL EXECUTE … USING ‘stringconstant’.

  
commit   : dbc466917383d66ca921224b7bb7b7b0f72e4920    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Wed, 18 Aug 2010 12:20:22 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Wed, 18 Aug 2010 12:20:22 +0000    

Click here for diff

  
The coercion with a CoerceViaIO node. The result is similar to the coercion  
via input function performed for unknown constants in coerce_type(),  
except that this happens at runtime.  
  
Backpatch to 9.0. The issue is present in 8.4 as well, but the coerce param  
hook infrastructure this patch relies on was introduced in 9.0. Given the  
lack of user reports and harmlessness of the bug, it's not worth attempting  
a different fix just for 8.4.  
  

Applied Zoltan’s patch to fix a few memleaks in ecpg’s pgtypeslib.

  
commit   : 277633b7e85167646a4fbd09aa3d0679fef154d6    
  
author   : Michael Meskes <meskes@postgresql.org>    
date     : Tue, 17 Aug 2010 11:06:26 +0000    
  
committer: Michael Meskes <meskes@postgresql.org>    
date     : Tue, 17 Aug 2010 11:06:26 +0000    

Click here for diff

  
  

Revert: looks like Binary Large OBject[sic] wasn’t a misspelling

  
commit   : db7fe0de6280ea71c0ce949ee4a00da2af4bf2d8    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Tue, 17 Aug 2010 04:47:03 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Tue, 17 Aug 2010 04:47:03 +0000    

Click here for diff

  
  

Spell and markup checking

  
commit   : f71145d0ec163439805d0433acb2e44a782e01f7    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Tue, 17 Aug 2010 04:37:19 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Tue, 17 Aug 2010 04:37:19 +0000    

Click here for diff

  
  

Arrange to fsync the contents of lockfiles (both postmaster.pid and the socket lockfile) when writing them. The lack of an fsync here may well explain two different reports we’ve seen of corrupted lockfile contents, which doesn’t particularly bother the running server but can prevent a new server from starting if the old one crashes. Per suggestion from Alvaro.

  
commit   : c93b652c2dbafa6b5d3e59ca8c68814c0b03f502    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 16 Aug 2010 17:32:53 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 16 Aug 2010 17:32:53 +0000    

Click here for diff

  
Back-patch to all supported versions.  
  

Fix psql’s copy of utf2ucs() to match the backend’s copy exactly; in particular, propagate a fix in the test to see whether a UTF8 character has length 4 bytes. This is likely of little real-world consequence because 5-or-more-byte UTF8 sequences are not supported by Postgres nor seen anywhere in the wild, but still we may as well get it right. Problem found by Joseph Adams.

  
commit   : 59ea02a108908e5814e5bda21a86b126b849a837    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 16 Aug 2010 00:06:24 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 16 Aug 2010 00:06:24 +0000    

Click here for diff

  
Bug is aboriginal, so back-patch all the way.  
  

Assorted improvements to backup/restore documentation, per Thom Brown.

  
commit   : 5e25b70b232c0a59b0045704964ecba95191d07e    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 15 Aug 2010 23:04:54 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 15 Aug 2010 23:04:54 +0000    

Click here for diff

  
  

Clarify bit numbering in get_bit/set_bit etc. Per gripe from Boszormenyi Zoltan.

  
commit   : 799743b792dc4c651c9d533b5ca50a0d9bcca39a    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 15 Aug 2010 21:26:42 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 15 Aug 2010 21:26:42 +0000    

Click here for diff

  
  

Improve pgarchivecleanup documentation, per comments from Satoshi Nagayasu.

  
commit   : 95139e6e66c19c27dd989c07a1f913d8d4eb3ec6    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 15 Aug 2010 20:20:35 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 15 Aug 2010 20:20:35 +0000    

Click here for diff

  
  

  
commit   : 7562423eb19ce874d0f2b237b091e7a9fbee84ba    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Sun, 15 Aug 2010 01:57:12 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Sun, 15 Aug 2010 01:57:12 +0000    

Click here for diff

  
Kevin Grittner, with markup adjustments.  
  

Fix planner to make a reasonable assumption about the amount of memory space used by array_agg(), string_agg(), and similar aggregate functions that use “internal” as their transition datatype. The previous coding thought this took no extra space, since “internal” is pass-by-value; but actually these aggregates typically consume a great deal of space. Per bug #5608 from Itagaki Takahiro, and fix suggestion from Hitoshi Harada.

  
commit   : a5955f4a652054bb00c11de96f90300b01ccbe27    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 14 Aug 2010 15:47:21 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 14 Aug 2010 15:47:21 +0000    

Click here for diff

  
Back-patch to 8.4, where array_agg was introduced.  
  

Fix Assert failure in PushOverrideSearchPath when trying to restore a search path that specifies useTemp, but there is no active temp schema in the current session. (This can happen if the path was saved during a transaction that created a temp schema and was later rolled back.) For existing callers it’s sufficient to ignore the useTemp flag in this case, though we might later want to offer an option to create a fresh temp schema. So far as I can tell this is just an Assert failure: in a non-assert build, the code would push a zero onto the new search path, which is useless but not very harmful. Per bug report from Heikki.

  
commit   : d2945deefb9a491cd2d015aeb893f24beb5e97cb    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 13 Aug 2010 16:27:18 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 13 Aug 2010 16:27:18 +0000    

Click here for diff

  
Back-patch to 8.3; prior versions don't have this code.  
  

Make RecordTransactionCommit() respect wal_level.

  
commit   : 361cadb224ffdd99ade5b9c4c21c042c3cd24059    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Fri, 13 Aug 2010 15:45:17 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Fri, 13 Aug 2010 15:45:17 +0000    

Click here for diff

  
Since the only purpose of WAL-loggin SharedInvalidationMessages is to support  
Hot Standby operation, they needn't be included when wal_level < hot_standby.  
  
Back-patch to 9.0.  
  
Review by Heikki Linnakanagas and Fujii Masao.  
  

Fix pg_restore to complain if any arguments remain after parsing the switches and input file name, per bug #5617 from Leo Shklovskii. Rearrange the corresponding code in pg_dump and pg_dumpall so that all three programs handle this in a consistent, straightforward fashion.

  
commit   : e507a3ee7b47185a8f8fe28dc22c0ed94d5b218f    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 13 Aug 2010 14:38:12 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 13 Aug 2010 14:38:12 +0000    

Click here for diff

  
Back-patch to 9.0, but no further.  Although this is certainly a bug, it's  
possible that people have scripts that will be broken by the added error  
check, so it seems better not to change the behavior in stable branches.  
  

Reorder docs on lexical structure slightly for clarity.

  
commit   : 5be77ca563e8dce4fbaa15387186de8448a7a413    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Fri, 13 Aug 2010 01:12:51 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Fri, 13 Aug 2010 01:12:51 +0000    

Click here for diff

  
Thom Brown  
  

  
commit   : ed3ea3fa0c02a88753c5a162a1fe94e67604b627    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Thu, 12 Aug 2010 23:25:45 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Thu, 12 Aug 2010 23:25:45 +0000    

Click here for diff

  
Fujii Masao  
  

Back out syntax case changes — seems they were intentional.

  
commit   : 8cc3c67c245e3df61db053dc16e8dad26f253f4a    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 12 Aug 2010 02:04:07 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 12 Aug 2010 02:04:07 +0000    

Click here for diff

  
  

Properly lowercase identifiers, uppercase keywords, in doc examples

  
commit   : f483b02041aaa5e1df055706296096ef00dac47f    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 11 Aug 2010 21:49:01 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 11 Aug 2010 21:49:01 +0000    

Click here for diff

  
  

The sanity check added to array_recv() wa a bit too tight; we must continue to accept an empty array with dimension information. array_send() can output such arrays.

  
commit   : e286b85c90d2197b9eaa2dc6d0b2b67795ba7ab9    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Wed, 11 Aug 2010 19:12:36 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Wed, 11 Aug 2010 19:12:36 +0000    

Click here for diff

  
Per report from Vladimir Shakhov.  
  

Fix one more incorrect errno definition in the ECPG manual.

  
commit   : 101096013e47fcfd75be42142ebeeb69c035d8af    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Wed, 11 Aug 2010 19:03:25 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Wed, 11 Aug 2010 19:03:25 +0000    

Click here for diff

  
Again, back-patch all the way to 7.4.  
  

Fix incorrect errno definitions in ECPG manual.

  
commit   : 5eac6a9ac0108f988bc10b3303318a7335d0c7c7    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Wed, 11 Aug 2010 18:52:12 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Wed, 11 Aug 2010 18:52:12 +0000    

Click here for diff

  
ecpgerrno.h hasn't materially changed since PostgreSQL 7.4, so this has  
been wrong for a very long time.  Back-patch all the way.  
  
Satoshi Nagayasu  
  

  
commit   : efb49d5bea3630c66150e10dda4e9d5a48553de4    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Tue, 10 Aug 2010 20:42:02 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Tue, 10 Aug 2010 20:42:02 +0000    

Click here for diff

  
  

is a floating element, so it’s use is inappropriate when the surrounding text refers to the example inline.

  
commit   : e0e08d3c80cb0db98cd1710f35fd52b6274ef88e    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Tue, 10 Aug 2010 20:41:28 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Tue, 10 Aug 2010 20:41:28 +0000    

Click here for diff

  
  

Use double quotes rather than double quotes for libpq target anchors.

  
commit   : 65559c385d1ffb7e7744bd501ef216fa7348638d    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Tue, 10 Aug 2010 02:57:03 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Tue, 10 Aug 2010 02:57:03 +0000    

Click here for diff

  
Per observation from Tom Lane that the previous patch to these files was  
not consistent with what is done elsewhere in the docs.  
  

Add EXPLAIN documentation example.

  
commit   : 4798e2144770969ea3436933bbfe6e0367b3bdca    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Mon, 9 Aug 2010 23:49:33 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Mon, 9 Aug 2010 23:49:33 +0000    

Click here for diff

  
gabrielle <gorthx@gmail.com>  
  
Backpatch to 9.0.X.  
  

Fix incorrect logic in plpgsql for cleanup after evaluation of non-simple expressions. We need to deal with this when handling subscripts in an array assignment, and also when catching an exception. In an Assert-enabled build these omissions led to Assert failures, but I think in a normal build the only consequence would be short-term memory leakage; which may explain why this wasn’t reported from the field long ago.

  
commit   : 6d301d938f7d7cb19f730eff44e65bc8addde68a    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 9 Aug 2010 18:50:20 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 9 Aug 2010 18:50:20 +0000    

Click here for diff

  
Back-patch to all supported versions.  7.4 doesn't have exceptions, but  
otherwise these bugs go all the way back.  
  
Heikki Linnakangas and Tom Lane  
  

Provide stable target anchors for libpq functions.

  
commit   : 6d8ae3fa081540fbae447e6250d02f152396eb8c    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Mon, 9 Aug 2010 12:00:39 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Mon, 9 Aug 2010 12:00:39 +0000    

Click here for diff

  
Daniele Varrazzo  
  

Fix indexterm spelling

  
commit   : d720567f2112ecc4a572248a9dde3ca7a6c293a6    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Fri, 6 Aug 2010 20:09:01 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Fri, 6 Aug 2010 20:09:01 +0000    

Click here for diff

  
  

  
commit   : d92ca54d0ae8d6d47ad7bfdea687bcac43e3788d    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 6 Aug 2010 19:13:18 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 6 Aug 2010 19:13:18 +0000    

Click here for diff

  
  

Fix inaccurate description of deferrable unique constraints, per Dean Rasheed.

  
commit   : 9a299eee03a509488ef25cf7b2330f51c0638500    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 6 Aug 2010 18:55:30 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 6 Aug 2010 18:55:30 +0000    

Click here for diff

  
  

Rearrange “big features” section of the release notes.

  
commit   : 00d9d5964eb2c5ce2f22836524beb9631f3c064a    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Fri, 6 Aug 2010 17:57:03 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Fri, 6 Aug 2010 17:57:03 +0000    

Click here for diff

  
Josh Berkus  
  

Add a very specific hint for the case that we’re unable to locate a function matching a call like f(x, ORDER BY y,z). It could be that what the user really wants is f(x,z ORDER BY y). We now have pretty conclusive evidence that many people won’t understand this problem without concrete guidance, so give it to them. Per further discussion of the string_agg() problem.

  
commit   : 331c3c218b369d2f919c800654e4ca6e5f209aac    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 5 Aug 2010 21:45:45 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 5 Aug 2010 21:45:45 +0000    

Click here for diff

  
  

Document which Python environment variables affect PL/Python

  
commit   : 5f5f19366229215eb10109c8e24cb665b27be994    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 5 Aug 2010 18:36:31 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 5 Aug 2010 18:36:31 +0000    

Click here for diff

  
  

Remove the single-argument form of string_agg(). It added nothing much in functionality, while creating an ambiguity in usage with ORDER BY that at least two people have already gotten seriously confused by. Also, add an opr_sanity test to check that we don’t in future violate the newly minted policy of not having built-in aggregates with the same name and different numbers of parameters. Per discussion of a complaint from Thom Brown.

  
commit   : bdd538c571ff6712b9c17b179791592629ad5207    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 5 Aug 2010 18:21:31 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 5 Aug 2010 18:21:31 +0000    

Click here for diff

  
  

Forgot to back-patch earlier change to documentation for aggregate ORDER BY clauses.

  
commit   : 6a366113e6f9661fa270197807dadde55e69b5ed    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 4 Aug 2010 22:31:55 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 4 Aug 2010 22:31:55 +0000    

Click here for diff

  
  

Fix sloppy mistakes in documentation of PQescapeLiteral and PQescapeIdentifier. Noted by Dmitriy Igrishin.

  
commit   : 5e84e1ac05ab325b6c9b2f035d8cd28b2f84e036    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 4 Aug 2010 16:27:13 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 4 Aug 2010 16:27:13 +0000    

Click here for diff

  
  

Fix inheritance count tracking in ALTER TABLE .. ADD CONSTRAINT.

  
commit   : e4a5dc7b8e78b206253982ca06311af1b33f79ae    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Tue, 3 Aug 2010 15:47:09 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Tue, 3 Aug 2010 15:47:09 +0000    

Click here for diff

  
Without this patch, constraints inherited by children of a parent  
table which itself has multiple inheritance parents can end up with  
the wrong coninhcount.  After dropping the constraint, the children  
end up with a leftover copy of the constraint that is not dumped  
and cannot be dropped.  There is a similar problem with ALTER TABLE  
.. ADD COLUMN, but that looks significantly more difficult to  
resolve, so I'm committing this fix separately.  
  
Back-patch to 8.4, which is the first release that has coninhcount.  
  
Report by Hank Enting.  
  

Fix core dump in QTNodeCompare when tsquery_cmp() is applied to two empty tsqueries. CompareTSQ has to have a guard for the case rather than blindly applying QTNodeCompare to random data past the end of the datums. Also, change QTNodeCompare to be a little less trusting: use an actual test rather than just Assert’ing that the input is sane. Problem encountered while investigating another issue (I saw a core dump in autoanalyze on a table containing multiple empty tsquery values).

  
commit   : 2f203642f817e596bdfab2158cf32ce2e5c0eca5    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 3 Aug 2010 00:10:44 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 3 Aug 2010 00:10:44 +0000    

Click here for diff

  
Back-patch to all branches with tsquery support.  
  
In HEAD, also fix some bizarre (though not outright wrong) coding in  
tsq_mcontains().  
  

Don’t try to force use of -no-cpp-precomp on OS X. It’s been five years since Apple shipped a compiler that needed this switch, and there’s increasing interest in using other compilers that won’t accept the switch at all. Better to let anybody who still needs the switch inject it via CPPFLAGS. Per gripe from Neil Conway.

  
commit   : 3e3ee1dfc35b4b2449f36bc31a32388951142f61    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 2 Aug 2010 04:51:25 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 2 Aug 2010 04:51:25 +0000    

Click here for diff

  
  

Fix an ancient typo that prevented the detection of conflicting fields when interval input “invalid” was specified together with other fields. Spotted by Neil Conway with the help of a clang warning. Although this has been wrong since the interval code was written more than 10 years ago, it doesn’t affect anything beyond which error message you get for a wrong input, so not worth back-patching very far.

  
commit   : 12dbe763f31af809731a0cc2493a08091bebd4ea    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 2 Aug 2010 01:25:02 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 2 Aug 2010 01:25:02 +0000    

Click here for diff

  
  

Back-patch fix for renaming asyncCommitLSN to asyncXactLSN. AIUI this was supposed to go into 9.0 as well as HEAD.

  
commit   : 727117fe4e170ae860fe18d01377d0a46c4d94f2    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 1 Aug 2010 23:07:05 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 1 Aug 2010 23:07:05 +0000    

Click here for diff

  
  

Fix ANALYZE’s ancient deficiency of not trying to collect stats for expression indexes when the index column type (the opclass opckeytype) is different from the expression’s datatype. When coded, this limitation wasn’t worth worrying about because we had no intelligence to speak of in stats collection for the datatypes used by such opclasses. However, now that there’s non-toy estimation capability for tsvector queries, it amounts to a bug that ANALYZE fails to do this.

  
commit   : 2fa68e2a351b44b01a30c8f72bedbe8e93b4fd46    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 1 Aug 2010 22:38:20 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 1 Aug 2010 22:38:20 +0000    

Click here for diff

  
The fix changes struct VacAttrStats, and therefore constitutes an API break  
for custom typanalyze functions.  Therefore we can't back-patch it into  
released branches, but it was agreed that 9.0 isn't yet frozen hard enough  
to make such a change unacceptable.  Ergo, back-patch to 9.0 but no further.  
The API break had better be mentioned in 9.0 release notes.  
  

Fix an additional set of problems in GIN’s handling of lossy page pointers. Although the key-combining code claimed to work correctly if its input contained both lossy and exact pointers for a single page in a single TID stream, in fact this did not work, and could not work without pretty fundamental redesign. Modify keyGetItem so that it will not return such a stream, by handling lossy-pointer cases a bit more explicitly than we did before.

  
commit   : 7354dbfa8c2f88dfea1a93960e04d1d7544d38c3    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 1 Aug 2010 19:16:47 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 1 Aug 2010 19:16:47 +0000    

Click here for diff

  
Per followup investigation of a gripe from Artur Dabrowski.  
An example of a query that failed given his data set is  
select count(*) from search_tab where  
(to_tsvector('german', keywords ) @@ to_tsquery('german', 'ee:* | dd:*')) and  
(to_tsvector('german', keywords ) @@ to_tsquery('german', 'aa:*'));  
  
Back-patch to 8.4 where the lossy pointer code was introduced.  
  

Rewrite the rbtree routines so that an RBNode is the first field of the struct representing a tree entry, rather than being a separately allocated piece of storage. This API is at least as clean as the old one (if not more so — there were some bizarre choices in there) and it permits a very substantial memory savings, on the order of 2X in ginbulk.c’s usage.

  
commit   : 538cb94db8ca507803d22a3c0ee1649822ec1c03    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 1 Aug 2010 02:12:51 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 1 Aug 2010 02:12:51 +0000    

Click here for diff

  
Also, fix minor memory leaks in code called by ginEntryInsert, in  
particular in ginInsertValue and entryFillRoot, as well as ginEntryInsert  
itself.  These leaks resulted in the GIN index build context continuing  
to bloat even after we'd filled it to maintenance_work_mem and started  
to dump data out to the index.  
  
In combination these fixes restore the GIN index build code to honoring  
the maintenance_work_mem limit about as well as it did in 8.4.  Speed  
seems on par with 8.4 too, maybe even a bit faster, for a non-pathological  
case in which HEAD was formerly slower.  
  
Back-patch to 9.0 so we don't have a performance regression from 8.4.  
  

Tweak tsmatchsel() so that it examines the structure of the tsquery whenever possible (ie, whenever the tsquery is a constant), even when no statistics are available for the tsvector. For example, foo @@ ‘a & b’::tsquery can be expected to be more selective than foo @@ ‘a’::tsquery, whether or not we know anything about foo. We use DEFAULT_TS_MATCH_SEL as the assumed selectivity of individual query terms when no stats are available, then combine the terms according to the query’s AND/OR structure as usual.

  
commit   : c9e845f82ae03887aa435be4804def62a1b3479c    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 31 Jul 2010 03:27:48 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 31 Jul 2010 03:27:48 +0000    

Click here for diff

  
Per experimentation with Artur Dabrowski's example.  (The fact that there  
are no stats available in that example is a problem in itself, but  
nonetheless tsmatchsel should be smarter about the case.)  
  
Back-patch to 8.4 to keep all versions of tsmatchsel() in sync.  
  

Rewrite the key-combination logic in GIN’s keyGetItem() and scanGetItem() routines to make them behave better in the presence of “lossy” index pointers. The previous coding was outright incorrect for some cases, as recently reported by Artur Dabrowski: scanGetItem would fail to return index entries in cases where one index key had multiple exact pointers on the same page as another key had a lossy pointer. Also, keyGetItem was extremely inefficient for cases where a single index key generates multiple “entry” streams, such as an @@ operator with a multiple-clause tsquery. The presence of a lossy page pointer in any one stream defeated its ability to use the opclass consistentFn, resulting in probing many heap pages that didn’t really need to be visited. In Artur’s example case, a query like WHERE tsvector @@ to_tsquery(‘a & b’) was about 50X slower than the theoretically equivalent WHERE tsvector @@ to_tsquery(‘a’) AND tsvector @@ to_tsquery(‘b’) The way that I chose to fix this was to have GIN call the consistentFn twice with both TRUE and FALSE values for the in-doubt entry stream, returning a hit if either call produces TRUE, but not if they both return FALSE. The code handles this for the case of a single in-doubt entry stream, but punts (falling back to the stupid behavior) if there’s more than one lossy reference to the same page. The idea could be scaled up to deal with multiple lossy references, but I think that would probably be wasted complexity. At least to judge by Artur’s example, such cases don’t occur often enough to be worth trying to optimize.

  
commit   : ed34833c572e64930ef5412ea68274064e0052e0    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 31 Jul 2010 00:31:04 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 31 Jul 2010 00:31:04 +0000    

Click here for diff

  
Back-patch to 8.4.  8.3 did not have lossy GIN index pointers, so not  
subject to these problems.  
  

tag for beta4

  
commit   : 5f3c54a3a6c771980fe7c55b747e8bea7199ae77    
  
author   : Marc G. Fournier <scrappy@hub.org>    
date     : Fri, 30 Jul 2010 03:31:41 +0000    
  
committer: Marc G. Fournier <scrappy@hub.org>    
date     : Fri, 30 Jul 2010 03:31:41 +0000    

Click here for diff

  
  

Improved version of patch to protect pg_get_expr() against misuse: look through join alias Vars to avoid breaking join queries, and move the test to someplace where it will catch more possible ways of calling a function. We still ought to throw away the whole thing in favor of a data-type-based solution, but that’s not feasible in the back branches.

  
commit   : c902ad9ca950fa1e6577ee3d13d96d4e78e84606    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 29 Jul 2010 23:16:41 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 29 Jul 2010 23:16:41 +0000    

Click here for diff

  
This needs to be back-patched further than 9.0, but I don't have time  
to do so today.  Committing now so that the fix gets into 9.0beta4.  
  

Update release notes for 9.0 beta 4. Back-patch some changes that were made only in HEAD.

  
commit   : a0194371a8b037b6c9c189df73a420e0dfae6041    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 29 Jul 2010 21:18:16 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 29 Jul 2010 21:18:16 +0000    

Click here for diff

  
  

  
commit   : 33e142ec32e31810e92a61c91f355f38783b0bb9    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 29 Jul 2010 20:09:34 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 29 Jul 2010 20:09:34 +0000    

Click here for diff

  
Back-patch to 9.0, along with an earlier fix to correctly mark cash_in  
and cash_out as stable not immutable (since they depend on lc_monetary).  
  
No catversion bump --- the implications of this are not currently  
severe enough to justify a forced initdb.  
  

Translation updates for 9.0beta4

  
commit   : a6c243ed9c3b9686e802107d8365ac69a1d62949    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 29 Jul 2010 19:39:47 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 29 Jul 2010 19:39:47 +0000    

Click here for diff

  
  

Fix indentation of verbatim block elements

  
commit   : 85084020be03b93f8c54e8491fdd34aa4265145f    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 29 Jul 2010 19:34:37 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 29 Jul 2010 19:34:37 +0000    

Click here for diff

  
Block elements with verbatim formatting (literallayout, programlisting,  
screen, synopsis) should be aligned at column 0 independent of the surrounding  
SGML, because whitespace is significant, and indenting them creates erratic  
whitespace in the output.  The CSS stylesheets already take care of indenting  
the output.  
  
Assorted markup improvements to go along with it.  
  

Fix another longstanding problem in copy_relation_data: it was blithely assuming that a local char[] array would be aligned on at least a word boundary. There are architectures on which that is pretty much guaranteed to NOT be the case … and those arches also don’t like non-aligned memory accesses, meaning that log_newpage() would crash if it ever got invoked. Even on Intel-ish machines there’s a potential for a large performance penalty from doing I/O to an inadequately aligned buffer. So palloc it instead.

  
commit   : c04b3f45b9f9c963d8d008d93651fec6a4abf66e    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 29 Jul 2010 19:23:28 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 29 Jul 2010 19:23:28 +0000    

Click here for diff

  
Backpatch to 8.0 --- 7.4 doesn't have this code.  
  

Work around a documentation toolchain problem by replacing the “AIX-fixlevels” table with a carrying the same information. Previously the 9.0 documentation was failing to build as a US-size PDF file. It’s quite obscure what the real problem is or why this avoids it, but we need a hack now so we can build docs for beta4.

  
commit   : 19600de6389a6dbfcf5d4b6bb457782c2e94745a    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 29 Jul 2010 18:29:57 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 29 Jul 2010 18:29:57 +0000    

Click here for diff

  
In passing do a bit of editing in the AIX installation docs, in particular  
remove a long-obsolete claim that the regression tests are likely to fail.  
  

Fix possible page corruption by ALTER TABLE .. SET TABLESPACE.

  
commit   : 7958520d2c54abd5efbcf5f664193cb5a6a99fd7    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Thu, 29 Jul 2010 16:14:45 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Thu, 29 Jul 2010 16:14:45 +0000    

Click here for diff

  
If a zeroed page is present in the heap, ALTER TABLE .. SET TABLESPACE will  
set the LSN and TLI while copying it, which is wrong, and heap_xlog_newpage()  
will do the same thing during replay, so the corruption propagates to any  
standby.  Note, however, that the bug can't be demonstrated unless archiving  
is enabled, since in that case we skip WAL logging altogether, and the LSN/TLI  
are not set.  
  
Back-patch to 8.0; prior releases do not have tablespaces.  
  
Analysis and patch by Jeff Davis.  Adjustments for back-branches and minor  
wordsmithing by me.  
  

Remove wildly obsolete type attribute externallength from chkpass

  
commit   : 40cacbb376a7a5ec3f4de54d8bb510527dd2b246    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Wed, 28 Jul 2010 20:34:12 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Wed, 28 Jul 2010 20:34:12 +0000    

Click here for diff

  
  

Fix oversight in new EvalPlanQual logic: the second loop over the ExecRowMark list in ExecLockRows() forgot to allow for the possibility that some of the rowmarks are for child tables that aren’t relevant to the current row. Per report from Kenichiro Tanaka.

  
commit   : e4d495a20b0aa1b9f88df07e6011003a2c2ad700    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 28 Jul 2010 17:22:03 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 28 Jul 2010 17:22:03 +0000    

Click here for diff

  
  

Fix potential failure when hashing the output of a subplan that produces a pass-by-reference datatype with a nontrivial projection step. We were using the same memory context for the projection operation as for the temporary context used by the hashtable routines in execGrouping.c. However, the hashtable routines feel free to reset their temp context at any time, which’d lead to destroying input data that was still needed. Report and diagnosis by Tao Ma.

  
commit   : a2164c285bde3bd31d9faff6ae993aac3a8085b8    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 28 Jul 2010 04:50:59 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 28 Jul 2010 04:50:59 +0000    

Click here for diff

  
Back-patch to 8.1, where the problem was introduced by the changes that  
allowed us to work with "virtual" tuples instead of materializing intermediate  
tuple values everywhere.  The earlier code looks quite similar, but it doesn't  
suffer the problem because the data gets copied into another context as a  
result of having to materialize ExecProject's output tuple.  
  

Show psql timing output even in quiet mode

  
commit   : d8c546c35e91af90183da60b5618a1232640d4d5    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Wed, 28 Jul 2010 04:39:15 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Wed, 28 Jul 2010 04:39:15 +0000    

Click here for diff

  
These two settings ought to be independent of each other.  
  

Fix typo in PL/pgsql code example.

  
commit   : 43d3d2a5fdc55b1e066aff71c7f26ce07a5bc970    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Tue, 27 Jul 2010 20:02:17 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Tue, 27 Jul 2010 20:02:17 +0000    

Click here for diff

  
Backpatch to 8.4.  
  
Marc Cousin.  Review by Kevin Grittner.  
  

Spelling fixes

  
commit   : b8174bcd703c9484fdec56c47b96ab0601208611    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Tue, 27 Jul 2010 19:01:04 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Tue, 27 Jul 2010 19:01:04 +0000    

Click here for diff

  
  

Ensure $_SHARED is declared in the main:: namespace, per bugs #5570 and #5571.

  
commit   : 4aa14fe901184c73880895921ef7d37c51ed7791    
  
author   : Alvaro Herrera <alvherre@alvh.no-ip.org>    
date     : Tue, 27 Jul 2010 04:18:31 +0000    
  
committer: Alvaro Herrera <alvherre@alvh.no-ip.org>    
date     : Tue, 27 Jul 2010 04:18:31 +0000    

Click here for diff

  
Author: Alex Hunsaker  
  

Fix grammar

  
commit   : 65ad4e31578f35f37920475ca80484f821e3309b    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Mon, 26 Jul 2010 20:28:35 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Mon, 26 Jul 2010 20:28:35 +0000    

Click here for diff

  
backpatched to 8.1  
  

Add table creation and population to example

  
commit   : 478a890f376049dc985db706cd192e1d9f0b4423    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Mon, 26 Jul 2010 20:14:06 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Mon, 26 Jul 2010 20:14:06 +0000    

Click here for diff

  
from John Gage  
  

Add INSERT statement to example so that it can be reproduced

  
commit   : c12c561ba05610a680bb3d58f1ec5c98575ae0c7    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Sun, 25 Jul 2010 08:30:41 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Sun, 25 Jul 2010 08:30:41 +0000    

Click here for diff

  
from John Gage  
  

Adjust check_for_isn_and_int8_passing_mismatch() so it is called for all migrations.

  
commit   : 8dad931f4e9433b74f1a6e40ff24bbc766e1a17f    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sun, 25 Jul 2010 03:47:33 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sun, 25 Jul 2010 03:47:33 +0000    

Click here for diff

  
Backpatch to 9.0.  
  

Prevent pg_upgrade from migrating databases that use reg* data types where the oid is not preserved by pg_upgrade (everything but pg_type). Update documentation.

  
commit   : ca2901c144d9db2393b2725a9d6bdeca1cecbf5a    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sun, 25 Jul 2010 03:28:39 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sun, 25 Jul 2010 03:28:39 +0000    

Click here for diff

  
Per bug report from depstein@alliedtesting.com.  
  

Fix typo

  
commit   : 417718dbc866a098f71f632e8cb6bdada7107905    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Sat, 24 Jul 2010 16:46:43 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Sat, 24 Jul 2010 16:46:43 +0000    

Click here for diff

  
  

Tidy up boolean data type page

  
commit   : 730fba4bc8fca784b6e078e5120ff551b6c55490    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Sat, 24 Jul 2010 12:17:34 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Sat, 24 Jul 2010 12:17:34 +0000    

Click here for diff

  
by Thom Brown  
  

Add more checks against altering typed tables

  
commit   : 3d903da124e5d121fd1f571cdb0021a357bbe4d6    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Fri, 23 Jul 2010 20:04:09 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Fri, 23 Jul 2010 20:04:09 +0000    

Click here for diff

  
- Prohibit altering column type  
- Prohibit changing inheritance  
- Move checks from Exec to Prep phases in ALTER TABLE code  
  
backpatched to 9.0  
  

Avoid deep recursion when assigning XIDs to multiple levels of subxacts.

  
commit   : f53eeec2343fbb66c996b98e3006818fdc393f30    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Fri, 23 Jul 2010 00:43:09 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Fri, 23 Jul 2010 00:43:09 +0000    

Click here for diff

  
Backpatch to 8.0.  
  
Andres Freund, with cleanup and adjustment for older branches by me.  
  

  
commit   : db64a9d20eeb0d3a52b7fb520a88bc68b73b374b    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 20 Jul 2010 18:14:25 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 20 Jul 2010 18:14:25 +0000    

Click here for diff

  
Report from Tom Lane.  
  
Backpatch to 9.0.  
  

Remove unnecessary “Not safe to send CSV data” complaint from elog.c’s fallback path when CSV logging is configured but not yet operational. It’s sufficient to send the message to stderr, as we were already doing, and the “Not safe” gripe has already confused at least two core members …

  
commit   : ee9324b68052af3d8fee3774c8d8a4ada5f2e8d2    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 18 Jul 2010 23:43:37 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 18 Jul 2010 23:43:37 +0000    

Click here for diff

  
Backpatch to 9.0, but not further --- doesn't seem appropriate to change  
this behavior in stable branches.  
  

Allow ORDER BY/GROUP BY/etc items to match targetlist items regardless of any implicit casting previously applied to the targetlist item. This is reasonable because the implicit cast, by definition, wasn’t written by the user; so we are preserving the expected behavior that ORDER BY items match textually equivalent tlist items. The case never arose before because there couldn’t be any implicit casting of a top-level SELECT item before we process ORDER BY etc. But now it can arise in the context of aggregates containing ORDER BY clauses, since the “targetlist” is the already-casted list of arguments for the aggregate. The net effect is that the datatype used for ORDER BY/DISTINCT purposes is the aggregate’s declared input type, not that of the original input column; which is a bit debatable but not horrendous, and to do otherwise would require major rework that doesn’t seem justified.

  
commit   : e6dff0a14b495ed3f17d8b66bedf06d7c2e66336    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 18 Jul 2010 19:37:57 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 18 Jul 2010 19:37:57 +0000    

Click here for diff

  
Per bug #5564 from Daniel Grace.  Back-patch to 9.0 where aggregate ORDER BY  
was implemented.  
  

Fix typo spotted by Thom Brown.

  
commit   : 10519586643cdb6e6b25880b8aad1c5df8e04da7    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Fri, 16 Jul 2010 11:36:10 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Fri, 16 Jul 2010 11:36:10 +0000    

Click here for diff

  
  

Add a paragraph explaining what restartpoints are. Mention that wal_keep_segments does not take effect during recovery.

  
commit   : 1dc124e7c87e55fba45be39c7ff7594b3af6e1b9    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Fri, 16 Jul 2010 11:21:46 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Fri, 16 Jul 2010 11:21:46 +0000    

Click here for diff

  
Fujii Masao  
  

Use an for restore_command reference. Marko Tiikkaja

  
commit   : d3cf0b6e01467274688a9a1e648cebe47ba73e7a    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 14 Jul 2010 22:04:28 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 14 Jul 2010 22:04:28 +0000    

Click here for diff

  
  

Fix several problems in pg_dump’s handling of SQL/MED objects, notably failure to dump a PUBLIC user mapping correctly, as per bug #5560 from Shigeru Hanada. Use the pg_user_mappings view rather than trying to access pg_user_mapping directly, so that the code doesn’t fail when run by a non-superuser. And clean up some minor carelessness such as unsafe usage of fmtId().

  
commit   : fa2dbb6800f974372399e58b1b405b57acf37547    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 14 Jul 2010 21:21:16 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 14 Jul 2010 21:21:16 +0000    

Click here for diff

  
Back-patch to 8.4 where this code was added.  
  

Allow full SSL certificate verification (wherein libpq checks its host name parameter against server cert’s CN field) to succeed in the case where both host and hostaddr are specified. As with the existing precedents for Kerberos, GSSAPI, SSPI, it is the calling application’s responsibility that host and hostaddr match up — we just use the host name as given. Per bug #5559 from Christopher Head.

  
commit   : 89ddf54fe5d6a374ffdd6f1eab74beb286ba0d23    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 14 Jul 2010 17:09:54 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 14 Jul 2010 17:09:54 +0000    

Click here for diff

  
In passing, make the error handling and messages for the no-host-name-given  
failure more consistent among these four cases, and correct a lie in the  
documentation: we don't attempt to reverse-lookup host from hostaddr  
if host is missing.  
  
Back-patch to 8.4 where SSL cert verification was introduced.  
  

Backpatch pg_upgrade fixes to 9.0:

  
commit   : f53bc2e78d206290c2b40b6aac0b208f4d115e20    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 13 Jul 2010 20:15:51 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 13 Jul 2010 20:15:51 +0000    

Click here for diff

  
 In pg_upgrade, prevent psql AUTOCOMMIT=off by not loading .psqlrc.  
  
 In pg_upgrade, report /bin directory checks independent of /data checks.  
  
 Remove incorrect email address for pg_upgrade bug reports.  
  
 On Win32, pg_upgrade cannot sent any server log output to the log file  
 because of file access limitations on that platform.  
  

Oops, in the previous fix to prevent a cursor that’s being used in a FOR loop from being dropped, I missed subtransaction cleanup. Pinned portals must be dropped at subtransaction cleanup just as they are at main transaction cleanup.

  
commit   : 41252a12d6d5bdd5fc75ea1bf411f8903f7c14ac    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Tue, 13 Jul 2010 09:02:35 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Tue, 13 Jul 2010 09:02:35 +0000    

Click here for diff

  
Per bug #5556 by Robert Walker. Backpatch to 8.0, 7.4 didn't have  
subtransactions.  
  

Clarify that “psql -c” ignores psqlrc files.

  
commit   : 913f902089c03ec32accf141c73310c58d47822e    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Sat, 10 Jul 2010 00:50:37 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Sat, 10 Jul 2010 00:50:37 +0000    

Click here for diff

  
Tim Landscheidt  
  

Avoid an Assert failure in deconstruct_array() by making get_attstatsslot() use the actual element type of the array it’s disassembling, rather than trusting the type OID passed in by its caller. This is needed because sometimes the planner passes in a type OID that’s only binary-compatible with the target column’s type, rather than being an exact match. Per an example from Bernd Helmle.

  
commit   : 8e60c2423acd31fd0507059b025a13efe69d02cd    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 9 Jul 2010 22:57:47 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 9 Jul 2010 22:57:47 +0000    

Click here for diff

  
Possibly we should refactor get_attstatsslot/free_attstatsslot to not expect  
the caller to supply type ID data at all, but for now I'll just do the  
minimum-change fix.  
  
Back-patch to 7.4.  Bernd's test case only crashes back to 8.0, but since  
these subroutines are the same in 7.4, I suspect there may be variant  
cases that would crash 7.4 as well.  
  

Fix ruleutils’ get_variable() to print something useful for Vars referencing resjunk outputs of subquery tlists, instead of throwing an error. Per bug #5548 from Daniel Grace.

  
commit   : e5b8e868cd3b59660490b660627bdc1507fdda86    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 9 Jul 2010 21:11:57 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 9 Jul 2010 21:11:57 +0000    

Click here for diff

  
We might at some point find we ought to back-patch this further than 9.0,  
but I think that such Vars can only occur as resjunk members of upper-level  
tlists, in which case the problem can't arise because prior versions didn't  
print resjunk tlist items in EXPLAIN VERBOSE.  
  

Properly report errno/out-of-disk-space error from pg_upgrade when in copy mode, per report from depstein@alliedtesting.com.

  
commit   : beed55dff7e39553db94a8760862b5d8a3a92f4a    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Fri, 9 Jul 2010 16:51:29 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Fri, 9 Jul 2010 16:51:29 +0000    

Click here for diff

  
Patch suggestion from Magnus.  
  
Backpatch to 9.0.X.  
  

tag beta3

  
commit   : 1084f317702e1a039696ab8a37caf900e55ec8f2    
  
author   : Marc G. Fournier <scrappy@hub.org>    
date     : Fri, 9 Jul 2010 02:43:12 +0000    
  
committer: Marc G. Fournier <scrappy@hub.org>    
date     : Fri, 9 Jul 2010 02:43:12 +0000    

Click here for diff

  
  

Update release notes for 9.0 beta 3.

  
commit   : c4314e150dcda40bbffa3b22863733bf57f4ba33    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 8 Jul 2010 22:26:14 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 8 Jul 2010 22:26:14 +0000    

Click here for diff

  
  

Some small changes for plperl.sgml: - wrapped long code-lines, for pdf - typo

  
commit   : 4b7f50eb815b242b68ce958c1a86ee26730f4c06    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 8 Jul 2010 21:35:33 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 8 Jul 2010 21:35:33 +0000    

Click here for diff

  
Erik Rijkers  
  

Translation updates for 9.0beta3

  
commit   : 0544c8cd57c0b371d803c06b8ecf70290beb2c5c    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 8 Jul 2010 21:32:28 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 8 Jul 2010 21:32:28 +0000    

Click here for diff

  
  

Minor kibitzing on previous patch: no need to run check more than once. (_PG_init should be called only once anyway, but as long as it’s got an internal guard against repeat calls, that should be in front of the version check.)

  
commit   : 6d297e0551a2a3cc048655796230cdff5e559952    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 8 Jul 2010 19:00:11 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 8 Jul 2010 19:00:11 +0000    

Click here for diff

  
  

Install safeguard against running PL/Python 2 and 3 in the same session

  
commit   : 803716013dc1350f8cd97fdfca4bdffc9a52021c    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 8 Jul 2010 18:42:12 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 8 Jul 2010 18:42:12 +0000    

Click here for diff

  
  

Doc change: effected -> affected, per correction from Matthew Wakeling

  
commit   : c9b142d96577c0a37a62215b99c98d52c8fbc4e1    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 8 Jul 2010 16:44:12 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 8 Jul 2010 16:44:12 +0000    

Click here for diff

  
  

Add a cross-reference to precedence information to CREATE OPERATOR’s documentation. Per suggestion from Marc Cousin.

  
commit   : 7f882768dc8f85e915ce437dc3e688ca64ef4cca    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 8 Jul 2010 16:30:13 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 8 Jul 2010 16:30:13 +0000    

Click here for diff

  
  

Make the Windows tcp keepalive support depend on the existance of the SIO_KEEPALIVE_VALS define instead of just WIN32, since MingW doesn’t support this API (yet?).

  
commit   : a64bf0afb702583d8f20367522e147ee692f2084    
  
author   : Magnus Hagander <magnus@hagander.net>    
date     : Thu, 8 Jul 2010 16:19:50 +0000    
  
committer: Magnus Hagander <magnus@hagander.net>    
date     : Thu, 8 Jul 2010 16:19:50 +0000    

Click here for diff

  
  

Update obsolete comment. Noted by Josh Tolley.

  
commit   : 672efc08654e5744b42d2809f903cb7528898620    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 8 Jul 2010 16:08:30 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 8 Jul 2010 16:08:30 +0000    

Click here for diff

  
  

Fix variant float8 expected files to have exactly the expected spacing. This wasn’t important when we used diff’s -w (–ignore-all-space) option to compare regression result files, but it is now. Per buildfarm member canary, which evidently has been offline since we did that in November, but came to life again today.

  
commit   : 7b81782be36230bb8a698744995f2c9360ba891f    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 8 Jul 2010 15:15:05 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 8 Jul 2010 15:15:05 +0000    

Click here for diff

  
  

Add support for TCP keepalives on Windows, both for backend and the new libpq support.

  
commit   : 44b0d1671a16cd2700eb7983b511a185bdb1b791    
  
author   : Magnus Hagander <magnus@hagander.net>    
date     : Thu, 8 Jul 2010 10:20:14 +0000    
  
committer: Magnus Hagander <magnus@hagander.net>    
date     : Thu, 8 Jul 2010 10:20:14 +0000    

Click here for diff

  
  

Fix “cannot handle unplanned sub-select” error that can occur when a sub-select contains a join alias reference that expands into an expression containing another sub-select. Per yesterday’s report from Merlin Moncure and subsequent off-list investigation.

  
commit   : d4d32eefdf3df4eb9aadea08e3d07af753457fbb    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 8 Jul 2010 00:14:04 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 8 Jul 2010 00:14:04 +0000    

Click here for diff

  
Back-patch to 7.4.  Older versions didn't attempt to flatten sub-selects in  
ways that would trigger this problem.  
  

Adjust mbutils.c so it won’t get broken by future pgindent runs. To do that, replace L’\0’ by (WCHAR) 0. Perhaps someday we should teach pgindent about wide-character literals, but so long as this is the only use-case in the entire Postgres sources, a workaround seems easier.

  
commit   : 5b1b3ef742723009e5f9b7a009aa8eda3578305a    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 7 Jul 2010 15:13:21 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 7 Jul 2010 15:13:21 +0000    

Click here for diff

  
  

Document the interaction of write-barrier-enabled file systems, and BBU caches, per June email thread.

  
commit   : e3243488b06aa17a4ce14a5c4e3234284a3789b8    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 7 Jul 2010 14:42:09 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 7 Jul 2010 14:42:09 +0000    

Click here for diff

  
  

Make log_temp_files based on kB, and revert docs & comments to match.

  
commit   : 20be0d480a167c86b505d9a3b477441446c4e999    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Tue, 6 Jul 2010 22:55:26 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Tue, 6 Jul 2010 22:55:26 +0000    

Click here for diff

  
Per extensive discussion on pgsql-hackers.  We are deliberately not  
back-patching this even though the behavior of 8.3 and 8.4 is  
unquestionably broken, for fear of breaking existing users of this  
parameter.  This incompatibility should be release-noted.  
  

Accept slightly grotty coding in Makefile.global in order to keep the -L flag for src/port/ in front of any -L flags placed in LDFLAGS by configure. This undoes an L-flag-ordering change that I had thought would be safe, but seems to be making at least one buildfarm member fail — the only theory for orca’s failure that I can think of is that it’s got an old copy of libpgport.a in /usr/lib. Also allow for LDFLAGS_SL to be set by contrib makefiles before they invoke Makefile.global.

  
commit   : 458474d9d7ff552d697f8a85a61113582c86ae3a    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 6 Jul 2010 22:03:05 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 6 Jul 2010 22:03:05 +0000    

Click here for diff

  
  

Add note that using PL/Python 2 and 3 in the same session will probably crash

  
commit   : 46ee42b8162efe29bb38f07f694aafd992bcf4b1    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Tue, 6 Jul 2010 21:37:31 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Tue, 6 Jul 2010 21:37:31 +0000    

Click here for diff

  
  

Support setting the keepalive idle time on MacOS X.

  
commit   : 5acd417c8f0f720418560360d9b3e543d593e4f0    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Tue, 6 Jul 2010 21:14:25 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Tue, 6 Jul 2010 21:14:25 +0000    

Click here for diff

  
MacOS X uses TCP_KEEPALIVE rather than TCP_KEEPIDLE for this purpose.  
  
Thanks to Fujii Masao for the review.  
  

Undo pgindent breakage (again). Per buildfarm.

  
commit   : 3f12653b73f8f2ffdfecfde3272caebdbdd4262f    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 6 Jul 2010 21:09:00 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 6 Jul 2010 21:09:00 +0000    

Click here for diff

  
  

Mention why one C file fails pgindent.

  
commit   : 9e15b476de303118c0a9301f94ce718f7a826ef0    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 6 Jul 2010 19:26:28 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 6 Jul 2010 19:26:28 +0000    

Click here for diff

  
  

pgindent run for 9.0, second run

  
commit   : 239d769e7e05e0a5ef3bd6828e93e22ef3962780    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 6 Jul 2010 19:19:02 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 6 Jul 2010 19:19:02 +0000    

Click here for diff

  
  

Update pgindent testing instructions.

  
commit   : 52783b212c7c0ef5ab2ee6bda17c8db0ed13d4ab    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 6 Jul 2010 19:18:19 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 6 Jul 2010 19:18:19 +0000    

Click here for diff

  
  

  
commit   : 8307b092b78c514ca1ca09d5cc9900bc2b672095    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 6 Jul 2010 03:55:33 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 6 Jul 2010 03:55:33 +0000    

Click here for diff

  
  

Allow for LDFLAGS_SL already having a value in Makefile.aix. Per buildfarm results.

  
commit   : 0a4ecfe77e3e355bed00e2bd8130c192fe8f1c4e    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 6 Jul 2010 03:41:02 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 6 Jul 2010 03:41:02 +0000    

Click here for diff

  
  

Dept. of third thoughts: PG_LIBS may contain a -L switch, so it had better stay in front of LDFLAGS.

  
commit   : f6af1435d98bbd15809c86c8846c15051ee2d6e8    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 5 Jul 2010 23:40:13 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 5 Jul 2010 23:40:13 +0000    

Click here for diff

  
  

Make sure LDFLAGS come before LIBS when linking contrib programs. Solaris, at least, seems to be sensitive to the relative order of -L and -l switches, so this is needed. Per buildfarm results.

  
commit   : bdf00543c2a645b7a773cdcd81fbd4e38e64ee1c    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 5 Jul 2010 23:30:50 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 5 Jul 2010 23:30:50 +0000    

Click here for diff

  
  

  
commit   : f9e9da666423f38d9c0f97277cf4e21973608baf    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 5 Jul 2010 23:15:56 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 5 Jul 2010 23:15:56 +0000    

Click here for diff

  
  

  
commit   : 291a9577454a63f99b5537e48a3dceae6d35ea8d    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 5 Jul 2010 18:54:38 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 5 Jul 2010 18:54:38 +0000    

Click here for diff

  
Per gripe from Aaron Swenson and subsequent investigation.  
  

The previous fix in CVS HEAD and 8.4 for handling the case where a cursor being used in a PL/pgSQL FOR loop is closed was inadequate, as Tom Lane pointed out. The bug affects FOR statement variants too, because you can close an implicitly created cursor too by guessing the “” name created for it.

  
commit   : eb81b6509f4c9109ecf8839d8c482cc597270687    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Mon, 5 Jul 2010 09:27:18 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Mon, 5 Jul 2010 09:27:18 +0000    

Click here for diff

  
To fix that, "pin" the portal to prevent it from being dropped while it's  
being used in a PL/pgSQL FOR loop. Backpatch all the way to 7.4 which is  
the oldest supported version.  
  

Simplify test_fsync duration computation.

  
commit   : 2330d9c1475a70385b116fda6cc54ac2cc2939c4    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sun, 4 Jul 2010 13:42:51 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sun, 4 Jul 2010 13:42:51 +0000    

Click here for diff

  
  

Report test_fynsc times in tests per second, instead of total seconds.

  
commit   : 7341a8cab23f473dfc129fc277076b8df6e838c4    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sun, 4 Jul 2010 01:50:29 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sun, 4 Jul 2010 01:50:29 +0000    

Click here for diff

  
  

Remove SGML tab.

  
commit   : a520b78f3ef098d488f98a55dffbb311a68f2e36    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sat, 3 Jul 2010 22:52:25 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sat, 3 Jul 2010 22:52:25 +0000    

Click here for diff

  
  

Don’t set recoveryLastXTime when replaying a checkpoint — that was a bogus idea from the start since the variable is only meant to track commit/abort events. This patch reverts the logic around the variable to what it was in 8.4, except that the value is now kept in shared memory rather than a static variable, so that it can be reported correctly by CreateRestartPoint (which is executed in the bgwriter).

  
commit   : 8771634666252b5d679cb8701d50e2540f073d1e    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 3 Jul 2010 22:15:45 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 3 Jul 2010 22:15:45 +0000    

Click here for diff

  
  

Make vacuum_defer_cleanup_age be PGC_SIGHUP level, since it’s not sensible to have different values in different processes of the primary server. Also put it into the “Streaming Replication” GUC category; it doesn’t belong in “Standby Servers” because you use it on the master not the standby. In passing also correct guc.c’s idea of wal_keep_segments’ category.

  
commit   : aceedd88f612472dae447fb59077abe8ed22f1f6    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 3 Jul 2010 21:23:58 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 3 Jul 2010 21:23:58 +0000    

Click here for diff

  
  

Replace max_standby_delay with two parameters, max_standby_archive_delay and max_standby_streaming_delay, and revise the implementation to avoid assuming that timestamps found in WAL records can meaningfully be compared to clock time on the standby server. Instead, the delay limits are compared to the elapsed time since we last obtained a new WAL segment from archive or since we were last “caught up” to WAL data arriving via streaming replication. This avoids problems with clock skew between primary and standby, as well as other corner cases that the original coding would misbehave in, such as the primary server having significant idle time between transactions. Per my complaint some time ago and considerable ensuing discussion.

  
commit   : e76c1a0f4d2127f11c72c02b3d73a5dcb4517173    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 3 Jul 2010 20:43:58 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 3 Jul 2010 20:43:58 +0000    

Click here for diff

  
Do some desultory editing on the hot standby documentation, too.  
  

Document more clearly on XML namespaces inside xpath function

  
commit   : e6a7416e28bacef6311be20375c8498b23faeb65    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sat, 3 Jul 2010 17:21:48 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sat, 3 Jul 2010 17:21:48 +0000    

Click here for diff

  
Nikolay Samokhvalov  
  

Make pg_upgrade copyrights just 2010, not 2010-2010.

  
commit   : da254e3d16678d648a1f4514dc182f334bf5c3fd    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sat, 3 Jul 2010 16:33:15 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sat, 3 Jul 2010 16:33:15 +0000    

Click here for diff

  
  

Add copyrights to pg_upgrade and pg_upgrade_tools files, per Tom.

  
commit   : de255a6eb15812312ed5ac14a146f1a8f6a97d56    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sat, 3 Jul 2010 16:25:01 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sat, 3 Jul 2010 16:25:01 +0000    

Click here for diff

  
  

Add CVS tags to pg_upgrade and pg_upgrade_support files, per request from Tom.

  
commit   : ccbe0c14e6ada848201fd94bd23c72e488482043    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sat, 3 Jul 2010 14:23:14 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sat, 3 Jul 2010 14:23:14 +0000    

Click here for diff

  
  

Allow REASSIGNED OWNED to handle opclasses and opfamilies.

  
commit   : b3b7d603fb397219ada12a8044e6a51aa351958d    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Sat, 3 Jul 2010 13:53:13 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Sat, 3 Jul 2010 13:53:13 +0000    

Click here for diff

  
Backpatch to 8.3, which is as far back as we have opfamilies.  
The opclass portion could probably be backpatched to 8.2, when  
REASSIGN OWNED was added, but for now I have not done that.  
  
Asko Tiidumaa, with minor adjustments by me.  
  

Fix assorted misstatements and poor wording in the descriptions of the I/O formats for geometric types. Per bug #5536 from Jon Strait, and my own testing.

  
commit   : 4b200a27693ebdfb2cc281682adb627069c7d6e1    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 3 Jul 2010 04:03:06 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 3 Jul 2010 04:03:06 +0000    

Click here for diff

  
Back-patch to all supported branches, since this doco has been wrong right  
along -- we certainly haven't changed the I/O behavior of these types in  
many years.  
  

Additional cross-references to window functions documentation.

  
commit   : 276a8f4e99188f0307cd747c2e2575f95626d893    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Sat, 3 Jul 2010 02:57:46 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Sat, 3 Jul 2010 02:57:46 +0000    

Click here for diff

  
Erik Rijkers  
  

Unbreak MSVC builds by removing copydir.c from list of libpgport files

  
commit   : 97301ab1899328462d772108f9cd70547a9ab03d    
  
author   : Andrew Dunstan <andrew@dunslane.net>    
date     : Fri, 2 Jul 2010 23:25:27 +0000    
  
committer: Andrew Dunstan <andrew@dunslane.net>    
date     : Fri, 2 Jul 2010 23:25:27 +0000    

Click here for diff

  
  

Remove hstore % text[] operator; use slice() function instead.

  
commit   : ce5174767370d25535f800c3b0a9bdb37b66a95c    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Fri, 2 Jul 2010 20:36:49 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Fri, 2 Jul 2010 20:36:49 +0000    

Click here for diff

  
David Wheeler, with one small correction by me.  
  

Move copydir.c from src/port to src/backend/storage/file

  
commit   : bb0fe9feb9fd75a6aaa960028a9f810c883b0fc4    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Fri, 2 Jul 2010 17:03:30 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Fri, 2 Jul 2010 17:03:30 +0000    

Click here for diff

  
The previous commit to make copydir() interruptible prevented  
postgres.exe from linking on MinGW and Cygwin, because on those  
platforms libpgport_srv.a can't freely reference symbols defined  
by the backend.  Since that code is already backend-specific anyway,  
just move the whole file into the backend rather than adding further  
kludges to deal with the symbols needed by CHECK_FOR_INTERRUPTS().  
  
This probably needs some further cleanup, but this commit just moves  
the file as-is, which should hopefully be enough to turn the  
buildfarm green again.  
  

Issue ‘mkdir’ hint when replying CREATE TABLESPACE in recovery mode.

  
commit   : 621cf1462072fa27ef541cdcb5dd69483329cb3d    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Fri, 2 Jul 2010 02:44:32 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Fri, 2 Jul 2010 02:44:32 +0000    

Click here for diff

  
Per idea from Fujii Masao  
  

Allow copydir() to be interrupted.

  
commit   : 71d6d0750d8115b646417b62cc97bab7f9872cf5    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Thu, 1 Jul 2010 20:12:40 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Thu, 1 Jul 2010 20:12:40 +0000    

Click here for diff

  
This makes ALTER DATABASE .. SET TABLESPACE and CREATE DATABASE more  
sensitive to interrupts.  Backpatch to 8.4, where ALTER DATABASE .. SET  
TABLESPACE was introduced.  We could go back further, but in the absence  
of complaints about the CREATE DATABASE case it doesn't seem worth it.  
  
Guillaume Lelarge, with a small correction by me.  
  

Get rid of some more stuff that duplicates c.h or port.h.

  
commit   : 600fc1dc9d6bbb66a76975ea6b431b44c76e7e83    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 1 Jul 2010 15:52:52 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 1 Jul 2010 15:52:52 +0000    

Click here for diff

  
  

Remove port.h prototypes from pg_upgrade.h, per report from Robert Haas.

  
commit   : 14bd1c3d9e76e4a9e207082cdd45cb4002d48e5e    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 1 Jul 2010 14:37:53 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 1 Jul 2010 14:37:53 +0000    

Click here for diff

  
  

Allow ALTER TABLE .. SET TABLESPACE to be interrupted.

  
commit   : c6cf3060d69dc65b9f6b4f6d3ea712b7a1a0604f    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Thu, 1 Jul 2010 14:10:21 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Thu, 1 Jul 2010 14:10:21 +0000    

Click here for diff

  
Backpatch to 8.0, where tablespaces were introduced.  
  
Guillaume Lelarge  
  

Update 9.0 release notes so streaming replication and hot standby is not assumed to require continuous archiving.

  
commit   : c37e0096787cc83b7f40aaff390238ae4662c0c4    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 1 Jul 2010 02:33:21 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 1 Jul 2010 02:33:21 +0000    

Click here for diff

  
Per report from Fujii Masao  
  

stringToNode() and deparse_expression_pretty() crash on invalid input, but we have nevertheless exposed them to users via pg_get_expr(). It would be too much maintenance effort to rigorously check the input, so put a hack in place instead to restrict pg_get_expr() so that the argument must come from one of the system catalog columns known to contain valid expressions.

  
commit   : 350ab443beba3ce8a7ddf2090a3694de330f6bb3    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Wed, 30 Jun 2010 18:10:23 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Wed, 30 Jun 2010 18:10:23 +0000    

Click here for diff

  
Per report from Rushabh Lathia. Backpatch to 7.4 which is the oldest  
supported version at the moment.  
  

Correct missing/misspelled surname.

  
commit   : 71a4d5c642bf378bf85e5b6e352db3d6e47578e5    
  
author   : Andrew Dunstan <andrew@dunslane.net>    
date     : Wed, 30 Jun 2010 14:25:24 +0000    
  
committer: Andrew Dunstan <andrew@dunslane.net>    
date     : Wed, 30 Jun 2010 14:25:24 +0000    

Click here for diff

  
  

Document that /bin/true on Windows is implemented by ‘REM’.

  
commit   : 67bc0b2b9052f62b78559edf5a10a384ad9ea670    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 30 Jun 2010 02:43:10 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 30 Jun 2010 02:43:10 +0000    

Click here for diff

  
  

In documentation, use “lower case”/“upper case” consistently (use space between words).

  
commit   : e1f8d97e49db3cc7bbcd4869213aba6942c38756    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 29 Jun 2010 22:29:14 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 29 Jun 2010 22:29:14 +0000    

Click here for diff

  
  

Document that shared_preload_libraries and local_preload_libraries lowercase the library names, unless double-quoted.

  
commit   : 5016b69cf1302b941ee3a0c5daa66fd1e920e091    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 29 Jun 2010 22:23:02 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 29 Jun 2010 22:23:02 +0000    

Click here for diff

  
  

  
commit   : 5dbf48986840c3148933ea8ef584f77fd5da8c1a    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 29 Jun 2010 21:20:19 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 29 Jun 2010 21:20:19 +0000    

Click here for diff

  
  

Add C comment about why synchronous_commit=off behavior can lose committed transactions in a postmaster crash.

  
commit   : b57ddccf05039bc511e7c4eb3b23933126441bac    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 29 Jun 2010 18:44:58 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 29 Jun 2010 18:44:58 +0000    

Click here for diff

  
  

Message tuning

  
commit   : 89474cc321bc7af4f02884a9f69539db38dc12c2    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Tue, 29 Jun 2010 04:12:47 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Tue, 29 Jun 2010 04:12:47 +0000    

Click here for diff

  
  

Use different function names for plpython3 handlers, to avoid clashes in pg_pltemplate

  
commit   : a3401bea9cf74053610be900ba5773687c59045d    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Tue, 29 Jun 2010 00:18:11 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Tue, 29 Jun 2010 00:18:11 +0000    

Click here for diff

  
This should have a catversion bump, but it's still being debated whether  
it's worth it during beta.  
  

Add note clarifying that XML fragments don’t accept DTDs

  
commit   : e849b49406c04e371da2289da31f2e63044cd32a    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Tue, 29 Jun 2010 00:03:39 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Tue, 29 Jun 2010 00:03:39 +0000    

Click here for diff

  
per complaint from Craig Ringer  
  

Fix doc double-wording in non-durable patch.

  
commit   : 93c81c68310e0065caabada5d4cea87d2dfc2897    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Mon, 28 Jun 2010 22:46:11 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Mon, 28 Jun 2010 22:46:11 +0000    

Click here for diff

  
Report from Thom Brown  
  

Add new Non-Durable Settings documentation section.

  
commit   : c65f29989493fccd7e0a08ead2435d57c5751dfe    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Mon, 28 Jun 2010 21:57:17 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Mon, 28 Jun 2010 21:57:17 +0000    

Click here for diff

  
Document that synchronous_commit can lose transactions in a db crash,  
not just a OS crash.  
  

emode_for_corrupt_record shouldn’t reduce LOG messages to WARNING.

  
commit   : 400916b6d7cf140b46ba03cc8aeec7f5ccecc8ad    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Mon, 28 Jun 2010 19:46:19 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Mon, 28 Jun 2010 19:46:19 +0000    

Click here for diff

  
In non-interactive sessions, WARNING sorts below LOG.  
  

Add guidelines for formatting errcontext strings

  
commit   : ee37fb57c02afcfe6b2b2c75b39aeb86c28f7ac8    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Mon, 28 Jun 2010 17:48:26 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Mon, 28 Jun 2010 17:48:26 +0000    

Click here for diff

  
  

Remove tab from SGML.

  
commit   : 7bfc0e5e79f2ab280b58f1f53e5115e70548f6fc    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Mon, 28 Jun 2010 12:30:32 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Mon, 28 Jun 2010 12:30:32 +0000    

Click here for diff

  
  

  
commit   : 04d9f4dab4723a0736157542b1d1a24ad2b8aa1d    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 28 Jun 2010 02:07:02 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 28 Jun 2010 02:07:02 +0000    

Click here for diff

  
Back-patch to 8.4.  In earlier releases it's not that important whether  
we get the hasSeek test right, but with parallel restore it matters.  
  

Fix pg_restore so parallel restore doesn’t fail when the input file doesn’t contain data offsets (which it won’t, if pg_dump thought its output wasn’t seekable). To do that, remove an unnecessarily aggressive error check, and instead fail if we get to the end of the archive without finding the desired data item. Also improve the error message to be more specific about the cause of the problem. Per discussion of recent report from Igor Neyman.

  
commit   : b779ea8a9a2dc3a089b3ac152b1ec4568bfeb26f    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 27 Jun 2010 19:07:24 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 27 Jun 2010 19:07:24 +0000    

Click here for diff

  
Back-patch to 8.4 where parallel restore was introduced.  
  

Rewrite docs for new libpq keepalive parameters.

  
commit   : e351593922cd82231b8ef5fbb780757a9ba0f18a    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Fri, 25 Jun 2010 17:08:09 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Fri, 25 Jun 2010 17:08:09 +0000    

Click here for diff

  
The revised documentation makes it more clear that these are client-side  
parameters, rather than server side parameters.  It also puts the main  
point of each parameter first, and consolidates the conditions under which  
it might be ignored in a single list at the end.  
  

Make AIX suggestions about disabling ipv6 more version-sensitive.

  
commit   : 7c49bf9d5d66f2103d1e76a8474888e5e7447a03    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Fri, 25 Jun 2010 16:55:49 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Fri, 25 Jun 2010 16:55:49 +0000    

Click here for diff

  
Chris Browne, based on a report from John Pierce.  
  

Fix thinko in tok_is_keyword(): it was looking at the wrong union variant of YYSTYPE, and hence returning the wrong answer for cases where a plpgsql “unreserved keyword” really does conflict with a variable name. Obviously I didn’t test this enough :-(. Per bug #5524 from Peter Gagarinov.

  
commit   : 399da7d882dff22b7ad926fb07aafeda2feab999    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 25 Jun 2010 16:40:13 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 25 Jun 2010 16:40:13 +0000    

Click here for diff

  
  

Fix log_temp_files docs and comments to say bytes not kilobytes. stat(2) field st_size returns bytes not kilobytes. Bug found during recent performance tuning for PostgreSQL user.

  
commit   : 3bdd23932b2a1d0dcae5b10e639108c2430ca9f0    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Fri, 25 Jun 2010 13:11:25 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Fri, 25 Jun 2010 13:11:25 +0000    

Click here for diff

  
  

Some copy-editing of the Hot Standby documentation.

  
commit   : fd3499be2fde05a7773a6e01b114765f7aa06736    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Thu, 24 Jun 2010 19:50:25 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Thu, 24 Jun 2010 19:50:25 +0000    

Click here for diff

  
Thanks to Joshua Tolley for the review.  
  

Further 9.0 release notes updates.

  
commit   : dedb500e8a27b02675c6e79cc5a4a594b48c5c8b    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Thu, 24 Jun 2010 18:33:05 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Thu, 24 Jun 2010 18:33:05 +0000    

Click here for diff

  
Josh Berkus  
  

Add stray “else” that seems to have gone missing.

  
commit   : 243bbe6ed85d97ed32afeb3a09c6064159af2cde    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Thu, 24 Jun 2010 16:40:45 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Thu, 24 Jun 2010 16:40:45 +0000    

Click here for diff

  
  

Mention that when alter rewrites a table, indexes are also rebuilt.

  
commit   : f5dc03dc69d70372d4c6d8fe731b570e926085c3    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 24 Jun 2010 14:57:21 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 24 Jun 2010 14:57:21 +0000    

Click here for diff

  
  

Add TCP keepalive support to libpq.

  
commit   : d8cd283a08fe87579e3603eaa8fba4d1eca6a8ca    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Wed, 23 Jun 2010 21:54:13 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Wed, 23 Jun 2010 21:54:13 +0000    

Click here for diff

  
This adds four additional connection parameters to libpq: keepalives,  
keepalives_idle, keepalives_count, and keepalives_interval.  
keepalives default to on, per discussion, but can be turned off by  
specifying keepalives=0.  The remaining parameters, where supported,  
can be used to adjust how often keepalives are sent and how many  
can be lost before the connection is broken.  
  
The immediate motivation for this patch is to make sure that  
walreceiver will eventually notice if the master reboots without  
closing the connection cleanly, but it should be helpful in other  
cases as well.  
  
Tollef Fog Heen, Fujii Masao, and me.  
  

Add username designations to all pg_upgrade utility calls that support it.

  
commit   : c1b617987d51ab244b07c9cbd01baee6ea3e786a    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 23 Jun 2010 20:04:50 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 23 Jun 2010 20:04:50 +0000    

Click here for diff

  
  

Fix pg_upgrade’s use of pg_ctl on Win32 to not send command and sever output to the same file, because it is impossible.

  
commit   : 601d1eeddc974fbde230c2159e6b95200cfb355f    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 22 Jun 2010 16:45:10 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 22 Jun 2010 16:45:10 +0000    

Click here for diff

  
Also set user name for pg_dumpall in pg_upgrade.  
  

Update pg_ctl docs to explain server output behavior differences on win32 and non-win32 platforms.

  
commit   : 7b6f29006ec5a4e8d9d78c5184940aee31ff40e0    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 22 Jun 2010 16:19:36 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 22 Jun 2010 16:19:36 +0000    

Click here for diff

  
  

Updated expected-output file for hstore.

  
commit   : 8327060dc2dbca8c2220bbdaa0c86342473ad63f    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Tue, 22 Jun 2010 12:54:22 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Tue, 22 Jun 2010 12:54:22 +0000    

Click here for diff

  
This is an oversight in my previous patch to deprecate => as an operator  
name.  Per buildfarm.  
  

Deprecate the use of => as an operator name.

  
commit   : f974212320960452950921d68c6fea275c2257da    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Tue, 22 Jun 2010 11:36:16 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Tue, 22 Jun 2010 11:36:16 +0000    

Click here for diff

  
In HEAD, emit a warning when an operator named => is defined.  
In both HEAD and the backbranches (except in 8.2, where contrib  
modules do not have documentation), document that hstore's text =>  
text operator may be removed in a future release, and encourage the  
use of the hstore(text, text) function instead.  This function only  
exists in HEAD (previously, it was called tconvert), so backpatch  
it back to 8.2, when hstore was added.  Per discussion.  
  

Minor markup improvements for Hot Standby documentation.

  
commit   : 9b2c14cf115452fa595fa01c7943f4e532b8c86c    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Tue, 22 Jun 2010 02:57:50 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Tue, 22 Jun 2010 02:57:50 +0000    

Click here for diff

  
  

In a PL/pgSQL “FOR cursor” statement, the statements executed in the loop might close the cursor, rendering the Portal pointer to it invalid. Closing the cursor in the middle of the loop is not a very sensible thing to do, but we must handle it gracefully and throw an error instead of crashing.

  
commit   : 2e8a832dd6e2e75626d59565fbe9029be12771f7    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Mon, 21 Jun 2010 09:47:29 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Mon, 21 Jun 2010 09:47:29 +0000    

Click here for diff

  
  

Fix mishandling of whole-row Vars referencing a view or sub-select. If such a Var appeared within a nested sub-select, we failed to translate it correctly during pullup of the view, because the recursive call to replace_rte_variables_mutator was looking for the wrong sublevels_up value. Bug was introduced during the addition of the PlaceHolderVar mechanism. Per bug #5514 from Marcos Castedo.

  
commit   : f685cbbac849064a170375e41fc36ad517f6210c    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 21 Jun 2010 00:14:48 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 21 Jun 2010 00:14:48 +0000    

Click here for diff

  
  

Rename hstore => text[] operator to %

  
commit   : 31c47e53aa4b951bdd54eb6b47590e6c9124e427    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Fri, 18 Jun 2010 03:52:03 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Fri, 18 Jun 2010 03:52:03 +0000    

Click here for diff

  
This is not yet in any released version, so we still have the option to  
change the name.  We may want to reserve the token => in a future release.  
  

Clean up some randomness associated with trace_recovery_messages: don’t put the variable declaration in the middle of a bunch of externs, and do use extern where it should be used.

  
commit   : 78e8f0025e3f18855dc0af5916223f9fcfda5706    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 17 Jun 2010 17:44:40 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 17 Jun 2010 17:44:40 +0000    

Click here for diff

  
  

Make RemoveOldXlogFiles’s debug printout match style used elsewhere: log and seg aren’t an XLogRecPtr and shouldn’t be printed like one. Fujii Masao

  
commit   : 09698bb5fb20a069f84ddbfab0bff9ae0d0f7c8a    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 17 Jun 2010 17:37:23 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 17 Jun 2010 17:37:23 +0000    

Click here for diff

  
  

Clean up pg_archivecleanup’s error and logging output: put newlines in sane places, make messages follow project’s message style guidelines.

  
commit   : 449c73f4668ef08ddaecf74834015d3d780d5da0    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 17 Jun 2010 17:31:27 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 17 Jun 2010 17:31:27 +0000    

Click here for diff

  
Also, avoid closedir(NULL).  
  
Fujii Masao and Tom Lane  
  

Add missing close brackets in old-style COPY syntax diagram. Spotted by Evan Carroll.

  
commit   : f826f8fc6971261fdf21ee14b069510628f3fb80    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 17 Jun 2010 17:03:57 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 17 Jun 2010 17:03:57 +0000    

Click here for diff

  
  

Don’t allow walsender to send WAL data until it’s been safely fsync’d on the master. Otherwise a subsequent crash could cause the master to lose WAL that has already been applied on the slave, resulting in the slave being out of sync and soon corrupt. Per recent discussion and an example from Robert Haas.

  
commit   : 07e8b6aabcca3ad9a67681694d955f607e29ce7b    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 17 Jun 2010 16:41:25 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 17 Jun 2010 16:41:25 +0000    

Click here for diff

  
Fujii Masao  
  

Fix typo, init => int, per KOIZUMI Satoru.

  
commit   : 8f4e1218458d0d34825d41b50aabadacbdf93697    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 17 Jun 2010 16:03:30 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 17 Jun 2010 16:03:30 +0000    

Click here for diff

  
  

Document that receive location can rewind if replication restarts.

  
commit   : 5c5184c04397b65e551ddf0250484eb381f50f9f    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Thu, 17 Jun 2010 01:32:09 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Thu, 17 Jun 2010 01:32:09 +0000    

Click here for diff

  
Fujii Masao, with some further wordsmithing by me.  
  

Remove prototype of GetOldestWALSendPointer(), that is marked as NOT_USED.

  
commit   : 147c665d01002193a161a34f0e646d7c85d00c15    
  
author   : Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Thu, 17 Jun 2010 00:06:34 +0000    
  
committer: Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Thu, 17 Jun 2010 00:06:34 +0000    

Click here for diff

  
  

Fix pg_upgrade to remove malloc(0) call.

  
commit   : 1aa117506df38e2ea4efcdffd9ac18b93399aa6b    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 16 Jun 2010 19:43:11 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 16 Jun 2010 19:43:11 +0000    

Click here for diff

  
  

Update doc description for 9.0 release note item:

  
commit   : f25e5e5d475f42fa8a52f9941c08286fc2bbfb4a    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 16 Jun 2010 18:46:18 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 16 Jun 2010 18:46:18 +0000    

Click here for diff

  
      Have <command>SELECT</> and <command>CREATE TABLE AS</> return  
      row counts to the client  
  

9.0 release notes updates.

  
commit   : a7b592722a062673b7237ad12e5a4a2c2c79da0c    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 16 Jun 2010 18:31:39 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 16 Jun 2010 18:31:39 +0000    

Click here for diff

  
Josh Berkus  
  

Remove perl symbol table additions for plperl functions, and mention of it in the release notes, as it is not apparently providing anything useful.

  
commit   : 3659c62350c9f362007b21c5cc1677c401cc3a33    
  
author   : Andrew Dunstan <andrew@dunslane.net>    
date     : Wed, 16 Jun 2010 14:50:34 +0000    
  
committer: Andrew Dunstan <andrew@dunslane.net>    
date     : Wed, 16 Jun 2010 14:50:34 +0000    

Click here for diff

  
  

Add notes that CREATE/DROP CONVERSION is similar to CREATE/DROP TRANSLATION in the SQL standard.

  
commit   : 0c88e559d1169b3038bbdb087c06362161e2e03c    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Wed, 16 Jun 2010 02:12:51 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Wed, 16 Jun 2010 02:12:51 +0000    

Click here for diff

  
  

Refactor sprintf calls with computed format strings into multiple calls with constant format strings, so that the compiler can more easily check the formats for correctness.

  
commit   : 418e1d82fd113ac8d7ec20f7aeeefc0a4e563ebb    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Wed, 16 Jun 2010 00:54:16 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Wed, 16 Jun 2010 00:54:16 +0000    

Click here for diff

  
  

Fix storage of getopt() return, should be ‘int’, for pg_upgrade.

  
commit   : 24cb6ab9af0350ca7c3703bf3b314206dd1405c0    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 15 Jun 2010 23:25:01 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 15 Jun 2010 23:25:01 +0000    

Click here for diff

  
Steve Singer  
  

  
commit   : c0989c67fa8fcc53f8475bbc918e330588628cff    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 15 Jun 2010 20:29:01 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 15 Jun 2010 20:29:01 +0000    

Click here for diff

  
  

Clarify SELECT FOR UPDATE behavior in docs.

  
commit   : 77a4c51af80819c3bcd581d9237f5c47e68393a6    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 15 Jun 2010 20:04:53 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 15 Jun 2010 20:04:53 +0000    

Click here for diff

  
  

Remove hstore’s text[] => text[] operator.

  
commit   : b17129b5891a385ff2cd5dc4a1fa631366951d29    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Tue, 15 Jun 2010 19:48:30 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Tue, 15 Jun 2010 19:48:30 +0000    

Click here for diff

  
This is not yet in any released version, so we still have the option to  
backtrack.  Instead, document hstore(text[], text[]).  Per discussion.  
  

  
commit   : 3b3706d2cfb6d7a29ee5adb2fb6f2bf363256508    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 15 Jun 2010 19:04:15 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 15 Jun 2010 19:04:15 +0000    

Click here for diff

  
Per bug report from Robert Voinea.  
  

Document new 9.0 behavior of ANALYZE on inheritance hierarchies.

  
commit   : 4a969085753d4e6586e60e613f160bf3a956b75d    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Tue, 15 Jun 2010 18:43:35 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Tue, 15 Jun 2010 18:43:35 +0000    

Click here for diff

  
In particular, note that autovacuum does not yet understand that it might  
need to vacuum inheritance parents as a result of changes to the child  
tables.  
  

  
commit   : 48a7245391687cefd21ffe7597eff553f6b29960    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 15 Jun 2010 16:22:19 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 15 Jun 2010 16:22:19 +0000    

Click here for diff

  
This patch replaces Joe's patch of 2010-02-03, which handled only some aspects  
of the problem.  
  

Unbreak MSVC builds for pg_archivecleanup by linking with libpgport

  
commit   : 540113dc9634bbcd5960be02116a27c2c102e133    
  
author   : Andrew Dunstan <andrew@dunslane.net>    
date     : Tue, 15 Jun 2010 12:48:36 +0000    
  
committer: Andrew Dunstan <andrew@dunslane.net>    
date     : Tue, 15 Jun 2010 12:48:36 +0000    

Click here for diff

  
  

Add new GUC categories corresponding to sections in docs, and move description for vacuum_defer_cleanup_age to the correct category. Sections in postgresql.conf are also sorted in the same order with docs.

  
commit   : 41f302b52a2f0388a9e9b084d42f18d1904db7ff    
  
author   : Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Tue, 15 Jun 2010 07:52:11 +0000    
  
committer: Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Tue, 15 Jun 2010 07:52:11 +0000    

Click here for diff

  
Per gripe by Fujii Masao, suggestion by Heikki Linnakangas, and patch by me.  
  

Properly define pg_upgrade global variable, per bug report from Chris Ruprecht on Mac (64 bit).

  
commit   : 8141523e35fd0c5c069abd0403b5c99770abd6fb    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 15 Jun 2010 02:08:01 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 15 Jun 2010 02:08:01 +0000    

Click here for diff

  
  

  
commit   : 6bbaa3148d65b3bed987c40b78e2b9a55bdfab58    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 14 Jun 2010 20:49:33 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 14 Jun 2010 20:49:33 +0000    

Click here for diff

  
Problem noted while investigating a trouble report from Robert Voinea --- his  
problem is still to be fixed, though.  
  

Fix doc plperl doc with is -> are change.

  
commit   : cbb0dcff4f37714b7ba80f2d2b05d647f7b53b47    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Mon, 14 Jun 2010 18:47:05 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Mon, 14 Jun 2010 18:47:05 +0000    

Click here for diff

  
  

Docs for pg_archivecleanup

  
commit   : 24bfbb5857a1e7ae227b526e64e540752c3b1fe3    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Mon, 14 Jun 2010 17:25:24 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Mon, 14 Jun 2010 17:25:24 +0000    

Click here for diff

  
  

Files for pg_archivecleanup

  
commit   : ca65f2190ae20b8bba9aa66e4cab1982b95d109f    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Mon, 14 Jun 2010 16:19:24 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Mon, 14 Jun 2010 16:19:24 +0000    

Click here for diff

  
  

New contrib module for use as an archive_cleanup_command, or as a standalone utility for removing files from archive.

  
commit   : 25fee5cfbdcbc8cbc2d1a31f6546d9fc4663c203    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Mon, 14 Jun 2010 16:17:56 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Mon, 14 Jun 2010 16:17:56 +0000    

Click here for diff

  
  

Fix typo in Japanese translation for psql “Use \d+ to list them.”

  
commit   : 72e1d3d6e4e2cb859d771ae8617ea37d46db7d56    
  
author   : Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Mon, 14 Jun 2010 08:54:35 +0000    
  
committer: Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Mon, 14 Jun 2010 08:54:35 +0000    

Click here for diff

  
  

If a corrupt WAL record is received by streaming replication, disconnect and retry. If the record is genuinely corrupt in the master database, there’s little hope of recovering, but it’s better than simply retrying to apply the corrupt WAL record in a tight loop without even trying to retransmit it, which is what we used to do.

  
commit   : 6da07cd80dba3324feec2ee422b325d544e1be55    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Mon, 14 Jun 2010 06:04:21 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Mon, 14 Jun 2010 06:04:21 +0000    

Click here for diff

  
  

Fix misplaced modifier.

  
commit   : 38736e22762e721306496c3713bf34c3c6ea3ae9    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Mon, 14 Jun 2010 02:18:43 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Mon, 14 Jun 2010 02:18:43 +0000    

Click here for diff

  
As suggested by Ian Barwick.  
  

Fix typo.

  
commit   : dd6c1080d069e69ec4f47ac797467f3af60043ac    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Mon, 14 Jun 2010 01:07:41 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Mon, 14 Jun 2010 01:07:41 +0000    

Click here for diff

  
  

Remove max_standby_delay message from ps display of recovery process in waiting status. The parameter is not so interesting in ps display because it is referable in postgresql.conf.

  
commit   : 9e3cd37576fdc1b10126194256c8ba7e63f760de    
  
author   : Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Mon, 14 Jun 2010 00:49:24 +0000    
  
committer: Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Mon, 14 Jun 2010 00:49:24 +0000    

Click here for diff

  
  

Fix ALTER LARGE OBJECT and GRANT … ON LARGE OBJECT for large OIDs.

  
commit   : 26b7abfa32b657e21911e82b38eeb8fc81c9dc77    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Sun, 13 Jun 2010 17:43:13 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Sun, 13 Jun 2010 17:43:13 +0000    

Click here for diff

  
The previous coding failed for OIDs too large to be represented by  
a signed integer.  
  

postgres.txt should get cleaned by ‘make clean’.

  
commit   : a079efa641fbfa0ad32c6218e8dc6d949989a247    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 12 Jun 2010 21:40:31 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 12 Jun 2010 21:40:31 +0000    

Click here for diff

  
  

Update pg_upgrade C comment about cwd.

  
commit   : 785c2acc1265aa26042dd60bd38dd8d5a5e19061    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sat, 12 Jun 2010 17:45:28 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sat, 12 Jun 2010 17:45:28 +0000    

Click here for diff

  
  

Add missing –use-existing –help mention from regression binary.

  
commit   : f904c797d62f1d1231718967734c7997c49a4029    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sat, 12 Jun 2010 17:21:29 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sat, 12 Jun 2010 17:21:29 +0000    

Click here for diff

  
Jan Urba?ski  
  

Remove lynx -stdin flag for postgres.text.

  
commit   : 4c7d48bffb3765a2b0f1735c9deb319a1091c173    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sat, 12 Jun 2010 17:17:25 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sat, 12 Jun 2010 17:17:25 +0000    

Click here for diff

  
  

Have pg_upgrade create its output files in the current directory, rather than in a subdirectory of the $HOME directory, or $TMP in Windows.

  
commit   : 1dc7c796c982f97fa93ddba530db3b15f1fba676    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sat, 12 Jun 2010 17:05:29 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sat, 12 Jun 2010 17:05:29 +0000    

Click here for diff

  
  

Add SGML Makefile rule for single-page text, postgres.txt.

  
commit   : 99fdb4a9eae673c7697485241bf6062aa6bf26fa    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sat, 12 Jun 2010 15:58:38 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sat, 12 Jun 2010 15:58:38 +0000    

Click here for diff

  
  

Add space between after “>” in “>$@” in SGML Makefile, for clarity.

  
commit   : 7d7780f40d1a06d443da9f61af24a8a8fbad2171    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sat, 12 Jun 2010 15:42:44 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sat, 12 Jun 2010 15:42:44 +0000    

Click here for diff

  
  

Add target to build HTML documentation as single page

  
commit   : 7de38696c440a10dffce545f9d0e0d0d3716c136    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Sat, 12 Jun 2010 09:55:12 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Sat, 12 Jun 2010 09:55:12 +0000    

Click here for diff

  
  

Fix typo/bug, found by Clang compiler

  
commit   : c86efdde5f803b72e9655a75ebf3b8d6083df1ea    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Sat, 12 Jun 2010 09:14:52 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Sat, 12 Jun 2010 09:14:52 +0000    

Click here for diff

  
  

Update Python version information

  
commit   : cc3c4a2407a52fb0262ec5fe50441e30dbfa2418    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Sat, 12 Jun 2010 06:05:48 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Sat, 12 Jun 2010 06:05:48 +0000    

Click here for diff

  
  

Add a regression test case for bug #5497

  
commit   : 6b72aa515498d76eb9459d989843eed6e8b3b219    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Sat, 12 Jun 2010 06:05:20 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Sat, 12 Jun 2010 06:05:20 +0000    

Click here for diff

  
  

Add missing ‘Z’ letter to getopt_long call — the newly added –analyze-only switch did not work in its short form -Z.

  
commit   : bc325d843235803356eb9e67cc4c7622df33c02d    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 11 Jun 2010 23:58:24 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 11 Jun 2010 23:58:24 +0000    

Click here for diff

  
Josh Berkus  
  

Use “replication” as the database name when constructing a connection string for a streaming replication connection. It’s ignored by the server, but allows libpq to pick up the password from .pgpass where “replication” is specified as the database name.

  
commit   : e751b71b56f1ba6fa3bb277059f9d5a8ea7b84af    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Fri, 11 Jun 2010 10:13:09 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Fri, 11 Jun 2010 10:13:09 +0000    

Click here for diff

  
Patch by Fujii Masao per Tom's suggestion, with some wording changes by me.  
  

Update text of 9.0 release notes

  
commit   : c46f861c0dde5813b8c472a65dfc4e76d093ad0f    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 10 Jun 2010 21:48:28 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 10 Jun 2010 21:48:28 +0000    

Click here for diff

  
Josh Berkus  
  

Rename restartpoint_command to archive_cleanup_command.

  
commit   : 56834fc759d74d7be645186c09ca65757f12e96a    
  
author   : Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Thu, 10 Jun 2010 08:13:50 +0000    
  
committer: Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Thu, 10 Jun 2010 08:13:50 +0000    

Click here for diff

  
  

Make TriggerFile variable static. It’s not used outside xlog.c.

  
commit   : 0a7cb8553180d3525c37a324a0cc5fcc2a2e9d03    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Thu, 10 Jun 2010 07:49:23 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Thu, 10 Jun 2010 07:49:23 +0000    

Click here for diff

  
Fujii Masao  
  

Return NULL instead of 0/0 in pg_last_xlog_receive_location() and pg_last_xlog_replay_location(). Per Robert Haas’s suggestion, after Itagaki Takahiro pointed out an issue in the docs. Also, some wording changes in the docs by me.

  
commit   : 346d7cd7fa5723d45b52b1e61c0cb0ba41a8ce99    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Thu, 10 Jun 2010 07:00:27 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Thu, 10 Jun 2010 07:00:27 +0000    

Click here for diff

  
  

Fix quite-bogus handling of arrays in plpython datum-to-PyObject conversion. Per bug #5497 from David Gardner.

  
commit   : 4ddf151c49b5ed3524ececc42226bf456cd8beaf    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 10 Jun 2010 04:05:01 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 10 Jun 2010 04:05:01 +0000    

Click here for diff

  
  

Quote all string values in EXPLAIN (FORMAT YAML) output.

  
commit   : 932de8916fa2ff84c30e396b3e91442c4629e964    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Thu, 10 Jun 2010 01:26:30 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Thu, 10 Jun 2010 01:26:30 +0000    

Click here for diff

  
While my previous attempt seems to always produce valid YAML, it  
doesn't always produce YAML that means what it appears to mean,  
because of tokens like "0xa" and "true", which without quotes will  
be interpreted as integer or Boolean literals.  So, instead, just  
quote everything that's not known to be a number, as we do for  
JSON.  
  
Dean Rasheed, with some changes to the comments by me.  
  

Remove stray word from comment.

  
commit   : f383083305dbc387bef240fe345f22d9133ecfc3    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Wed, 9 Jun 2010 21:14:28 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Wed, 9 Jun 2010 21:14:28 +0000    

Click here for diff

  
  

Update ALTER TABLE docs to account for exclusion and deferrable uniqueness constraints

  
commit   : a5ec2986b3d9b241f9aef56877bc63d63638f925    
  
author   : Alvaro Herrera <alvherre@alvh.no-ip.org>    
date     : Wed, 9 Jun 2010 17:48:10 +0000    
  
committer: Alvaro Herrera <alvherre@alvh.no-ip.org>    
date     : Wed, 9 Jun 2010 17:48:10 +0000    

Click here for diff

  
Dean Rasheed  
  

Add index entry for ::, per complaint from John Gage.

  
commit   : 09811eff2ef0665b0cf57d83223fb719292ca15b    
  
author   : Alvaro Herrera <alvherre@alvh.no-ip.org>    
date     : Wed, 9 Jun 2010 16:43:47 +0000    
  
committer: Alvaro Herrera <alvherre@alvh.no-ip.org>    
date     : Wed, 9 Jun 2010 16:43:47 +0000    

Click here for diff

  
  

In standby mode, respect checkpoint_segments in addition to checkpoint_timeout to trigger restartpoints. We used to deliberately only do time-based restartpoints, because if checkpoint_segments is small we would spend time doing restartpoints more often than really necessary. But now that restartpoints are done in bgwriter, they’re not as disruptive as they used to be. Secondly, because streaming replication stores the streamed WAL files in pg_xlog, we want to clean it up more often to avoid running out of disk space when checkpoint_timeout is large and checkpoint_segments small.

  
commit   : 71815306e9e1ba7e95752779d2ad51d0c2b9c747    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Wed, 9 Jun 2010 15:04:07 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Wed, 9 Jun 2010 15:04:07 +0000    

Click here for diff

  
Patch by Fujii Masao, with some minor changes by me.  
  

Make the walwriter close it’s handle to an old xlog segment if it’s no longer the current one. Not doing this would leave the walwriter with a handle to a deleted file if there was nothing for it to do for a long period of time, preventing the file from being completely removed.

  
commit   : 8c873bbfa723e4d035847a488adbd0aa21c595b9    
  
author   : Magnus Hagander <magnus@hagander.net>    
date     : Wed, 9 Jun 2010 10:54:45 +0000    
  
committer: Magnus Hagander <magnus@hagander.net>    
date     : Wed, 9 Jun 2010 10:54:45 +0000    

Click here for diff

  
Reported by Tollef Fog Heen, and thanks to Heikki for some hand-holding with  
the patch.  
  

  
commit   : 5a41c317c58603e1beff5f2f31e157a30f41a3bf    
  
author   : Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Wed, 9 Jun 2010 03:39:26 +0000    
  
committer: Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Wed, 9 Jun 2010 03:39:26 +0000    

Click here for diff

  
  

Attempt to fix EXPLAIN (FORMAT YAML) quoting to behave sanely.

  
commit   : d6e503a493d2a54221531654d48a62fddc8ae9a2    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Wed, 9 Jun 2010 02:39:34 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Wed, 9 Jun 2010 02:39:34 +0000    

Click here for diff

  
The previous code failed to quote in many cases where quoting was necessary -  
YAML has loads of special characters, including -:[]{},"'|*& - so quote much  
more aggressively, and only refrain from quoting things where it seems fairly  
clear that it isn't necessary.  
  
Per report from Dean Rasheed.  
  

  
commit   : a62435607252f7286023fe38e39f57e6581790c9    
  
author   : Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Wed, 9 Jun 2010 00:56:02 +0000    
  
committer: Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Wed, 9 Jun 2010 00:56:02 +0000    

Click here for diff

  
Backported to release 7.4.  
  

Fix typo in the header comment. Per request from Masao Fujii.

  
commit   : 016212e0eb056f6c635b946fa6c1a572c89171a8    
  
author   : Tatsuo Ishii <ishii@postgresql.org>    
date     : Wed, 9 Jun 2010 00:54:39 +0000    
  
committer: Tatsuo Ishii <ishii@postgresql.org>    
date     : Wed, 9 Jun 2010 00:54:39 +0000    

Click here for diff

  
  

Make procedural language handler reference C-language function docs.

  
commit   : 8de14adc5f28a7eaa47d92896cf1797728902857    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Tue, 8 Jun 2010 20:12:59 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Tue, 8 Jun 2010 20:12:59 +0000    

Click here for diff

  
Based on suggestions from Jonathan Leto and Joshua Tolley.  
  

Avoid useless snprintf() call when update_process_title is turned off. Fujii Masao

  
commit   : 36614006e15e2a9d2d866ee57af9320bf482aa7c    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 7 Jun 2010 15:49:30 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 7 Jun 2010 15:49:30 +0000    

Click here for diff

  
  

  
commit   : 3e7451a6dfa1f734ee7f09d73baf5c8dd8a6adfe    
  
author   : Teodor Sigaev <teodor@sigaev.ru>    
date     : Mon, 7 Jun 2010 15:14:36 +0000    
  
committer: Teodor Sigaev <teodor@sigaev.ru>    
date     : Mon, 7 Jun 2010 15:14:36 +0000    

Click here for diff

  
  

Ensure default-only storage parameters for TOAST relations to be initialized with proper values. Affected parameters are fillfactor, analyze_threshold, and analyze_scale_factor.

  
commit   : b5faba1284c4e5108c6fbe577daa33f933e7a4e0    
  
author   : Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Mon, 7 Jun 2010 02:59:02 +0000    
  
committer: Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Mon, 7 Jun 2010 02:59:02 +0000    

Click here for diff

  
Especially uninitialized fillfactor caused inefficient page usage  
because we built a StdRdOptions struct in which fillfactor is zero  
if any reloption is set for the toast table.  
  
In addition, we disallow toast.autovacuum_analyze_threshold and  
toast.autovacuum_analyze_scale_factor because we didn't actually  
support them; they are always ignored.  
  
Report by Rumko on pgsql-bugs on 12 May 2010.  
Analysis by Tom Lane and Alvaro Herrera. Patch by me.  
  
Backpatch to 8.4.  
  

Replace “slave” to “standby” in documentation for consistent terminology. Almost all of the terms in docs and messages were replaced, but still remains in a few comments and README files in codes.

  
commit   : 3fd839950a33a7d36ac83edf1f9cc6fb929d7649    
  
author   : Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Mon, 7 Jun 2010 02:01:09 +0000    
  
committer: Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Mon, 7 Jun 2010 02:01:09 +0000    

Click here for diff

  
  

Improve our explanation of the OVERLAPS operator. Per gripe from Frank van Vugt.

  
commit   : 2944e6ecb6af1c7b54d8f683b247578bc579f5e0    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 5 Jun 2010 14:56:36 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 5 Jun 2010 14:56:36 +0000    

Click here for diff

  
  

Added variable handling for RETURNING clause to ecpg.

  
commit   : 98e4005efb1941c6422d6b8fbb5de27004149f7e    
  
author   : Michael Meskes <meskes@postgresql.org>    
date     : Fri, 4 Jun 2010 10:09:58 +0000    
  
committer: Michael Meskes <meskes@postgresql.org>    
date     : Fri, 4 Jun 2010 10:09:58 +0000    

Click here for diff

  
While the values were correctly returned they were not moved into C variables  
as they should be.  
  
Closes: #5489  
  

tag 9.0beta2

  
commit   : dcd52a64bd9d3baa252a8bea662b08f7780035a1    
  
author   : Marc G. Fournier <scrappy@hub.org>    
date     : Fri, 4 Jun 2010 07:28:30 +0000    
  
committer: Marc G. Fournier <scrappy@hub.org>    
date     : Fri, 4 Jun 2010 07:28:30 +0000    

Click here for diff

  
  

Adjust misleading comment in walsender.c. We try to send all WAL data that’s been written out from shared memory, but the previous phrasing might be read to say that we send only what’s been fsync’d.

  
commit   : 3ceb44fa0a96231202b8192dff2f0e517ad534fc    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 3 Jun 2010 23:00:14 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 3 Jun 2010 23:00:14 +0000    

Click here for diff

  
  

Add current WAL end (as seen by walsender, ie, GetWriteRecPtr() result) and current server clock time to SR data messages. These are not currently used on the slave side but seem likely to be useful in future, and it’d be better not to change the SR protocol after release. Per discussion. Also do some minor code review and cleanup on walsender.c, and improve the protocol documentation.

  
commit   : 0cc59cc1f38d91587d52b14789e20bdd4c1af70a    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 3 Jun 2010 22:17:32 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 3 Jun 2010 22:17:32 +0000    

Click here for diff

  
  

  
commit   : 572ec5a2760dfa12b74001428431a5f7d9027e27    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 3 Jun 2010 21:23:02 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 3 Jun 2010 21:23:02 +0000    

Click here for diff

  
  

Translation updates for 9.0beta2

  
commit   : 1eca1b7a6871d0c90acc51d7dc21ddb3909fafa2    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 3 Jun 2010 21:12:05 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 3 Jun 2010 21:12:05 +0000    

Click here for diff

  
  

Fix some inconsistent quoting of wal_level values in messages

  
commit   : cb6038c168cac4fea81175787f3a928cddb7a42e    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 3 Jun 2010 21:02:12 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 3 Jun 2010 21:02:12 +0000    

Click here for diff

  
When referring to postgresql.conf syntax, then it's without quotes  
(wal_level=archive); in narrative it's with double quotes.  But never  
single quotes.  
  

Add comments about definitions that may affect PG_CONTROL_VERSION, per recent unintended-initdb-forcing fiasco

  
commit   : 667440162cc20ac7d8f67cb8830d10eeeeeb8ff7    
  
author   : Alvaro Herrera <alvherre@alvh.no-ip.org>    
date     : Thu, 3 Jun 2010 20:37:13 +0000    
  
committer: Alvaro Herrera <alvherre@alvh.no-ip.org>    
date     : Thu, 3 Jun 2010 20:37:13 +0000    

Click here for diff

  
  

Fix CREATE TRIGGER release mention, WHERE -> WHEN.

  
commit   : 58028240bbfe6ccdfa1a8ffa55bb65290480aada    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 3 Jun 2010 19:38:39 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 3 Jun 2010 19:38:39 +0000    

Click here for diff

  
  

Fix reference to nonexistent configure option

  
commit   : af3c7e60eef07edfe90de58c80103fd780124954    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 3 Jun 2010 19:29:38 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 3 Jun 2010 19:29:38 +0000    

Click here for diff

  
--enable-ssl -> --with-openssl  
  

Update 9.0 release notes to current.

  
commit   : a68055eab65c97c8019e987255d8d4d7e6490a42    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 3 Jun 2010 16:33:36 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 3 Jun 2010 16:33:36 +0000    

Click here for diff

  
  

Bump PG_CONTROL_VERSION to account for the incompatible change committed earlier.

  
commit   : 34e543763ce8a4bab650331bab298534efef644a    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 3 Jun 2010 14:50:30 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 3 Jun 2010 14:50:30 +0000    

Click here for diff

  
  

Markup fix.

  
commit   : 319baeab214201957644568e7a68e5dbb961a785    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 3 Jun 2010 14:41:25 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 3 Jun 2010 14:41:25 +0000    

Click here for diff

  
  

Document regexp_matches() better and show example of single-row usage.

  
commit   : 0562820097800c05a89dcdbcd61d7cf262a305af    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 3 Jun 2010 14:40:42 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 3 Jun 2010 14:40:42 +0000    

Click here for diff

  
  

Document use of C++ for extension use.

  
commit   : 3b19a459645738bffcf979a42d65350726a3c649    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 3 Jun 2010 14:39:58 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 3 Jun 2010 14:39:58 +0000    

Click here for diff

  
  

  
commit   : 7dff7260aff06dfac48951898631950ba32602cf    
  
author   : Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Thu, 3 Jun 2010 09:38:33 +0000    
  
committer: Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Thu, 3 Jun 2010 09:38:33 +0000    

Click here for diff

  
Backported to release 8.0.  
  

On clean shutdown during recovery, don’t warn about possible corruption.

  
commit   : d561430b660a79ca20c2e335f56e4dc68f8848b4    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Thu, 3 Jun 2010 03:20:00 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Thu, 3 Jun 2010 03:20:00 +0000    

Click here for diff

  
Fujii Masao.  Review by Heikki Linnakangas and myself.  
  

Document that citext operators must be in the current search path.

  
commit   : f0c437cf548bf80bc2bd203a745f379052a1bda9    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 3 Jun 2010 03:04:55 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 3 Jun 2010 03:04:55 +0000    

Click here for diff

  
  

Clarify array generate_subscripts() documentation example.

  
commit   : 356e4dbf9afbcdd61a35581c5bb43404d75fc305    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 3 Jun 2010 02:06:10 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 3 Jun 2010 02:06:10 +0000    

Click here for diff

  
Tim Landscheidt  
  

Document that && geometric operator is true even if only a point overlaps.

  
commit   : 9b5c3611d74d973e316b416da8a0b15dc3f6128d    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 3 Jun 2010 01:34:02 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 3 Jun 2010 01:34:02 +0000    

Click here for diff

  
David Fetter  
  

Fix obsolete comments that I neglected to update in a previous patch.

  
commit   : 6b2403636501070324b6462e8ba73d895933c0ce    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Wed, 2 Jun 2010 09:28:44 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Wed, 2 Jun 2010 09:28:44 +0000    

Click here for diff

  
Fujii Masao  
  

Update C++ release note item wording.

  
commit   : 2681c51ecad633e997d1a978ecac221ebd4406dc    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 1 Jun 2010 13:43:39 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 1 Jun 2010 13:43:39 +0000    

Click here for diff

  
  

Comment out C++ docs for later user. Tone down C++ compatibility in 9.0 release notes.

  
commit   : 1f152c656b46f276863b443e80f566dadb57cdc5    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 1 Jun 2010 03:19:36 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 1 Jun 2010 03:19:36 +0000    

Click here for diff

  
  

Mention palloc/pfree for C++ memory allocation in docs.

  
commit   : d149fbf4111ad30192ebae8e328dc7d790b2d5ee    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 1 Jun 2010 02:54:37 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 1 Jun 2010 02:54:37 +0000    

Click here for diff

  
  

Fix SGML markup for tag title.

  
commit   : 06625abeef3bdc7219cf9e2dc2bcd8311211ad40    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 1 Jun 2010 02:35:37 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 1 Jun 2010 02:35:37 +0000    

Click here for diff

  
  

Add documentation section “Using C++ for Extensibility”.

  
commit   : b67fbb6c57c366762c23f6957a256ffce33815ce    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 1 Jun 2010 02:31:36 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 1 Jun 2010 02:31:36 +0000    

Click here for diff

  
Craig Ringer  
  

Show schema name for REINDEX.

  
commit   : 309193bbd348bd368476106ba3ca66e754a13770    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 1 Jun 2010 00:33:23 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 1 Jun 2010 00:33:23 +0000    

Click here for diff

  
Greg Sabino Mullane  
  

Overflow box is on page after listed page number, per Alvaro.

  
commit   : a128991705e20fe4bd0e038cd3ed1e450f9e6f99    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Mon, 31 May 2010 22:42:59 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Mon, 31 May 2010 22:42:59 +0000    

Click here for diff

  
  

Update TeX overflow documentation page pattern mask, in docs.

  
commit   : 0b4150323b622833a52b9b2755ba5a26198501f4    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Mon, 31 May 2010 22:15:25 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Mon, 31 May 2010 22:15:25 +0000    

Click here for diff

  
  

Document how to find TeX overflow boxes in our documentation build, per details from Alvaro Herrera.

  
commit   : 66dd05056085cc836929830b4d5dd148bf59d412    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Mon, 31 May 2010 22:14:20 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Mon, 31 May 2010 22:14:20 +0000    

Click here for diff

  
  

Add error hint that PL/pgSQL “EXECUTE of SELECT … INTO” can be performed by “EXECUTE … INTO”.

  
commit   : 763129e04f4d4e00015a274e02841beedfa42fdc    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Mon, 31 May 2010 20:02:30 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Mon, 31 May 2010 20:02:30 +0000    

Click here for diff

  
Jaime Casanova  
  

Add note about database ownership to REASSIGN OWNED command documentation, per Josh Berkus. Add ALTER DATABASE to the “see also” section, too.

  
commit   : a7b2f694e76859c9a6e61b75c12c73e9e93cfd38    
  
author   : Alvaro Herrera <alvherre@alvh.no-ip.org>    
date     : Mon, 31 May 2010 18:47:35 +0000    
  
committer: Alvaro Herrera <alvherre@alvh.no-ip.org>    
date     : Mon, 31 May 2010 18:47:35 +0000    

Click here for diff

  
  

Reword fsync and full_page_writes docs to be clearer about when to turn them off.

  
commit   : 6f1932c2490c35e763e147534dd32ca543683471    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Mon, 31 May 2010 15:50:48 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Mon, 31 May 2010 15:50:48 +0000    

Click here for diff

  
Josh Berkus, with slight wording changes by me.  
  

Send all outstanding WAL before exiting when smart shutdown is requested. This was broken by my previous patch to send WAL in smaller batches.

  
commit   : e0b581acd2def7d3e237f73e953d1fd4d1ed428f    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Mon, 31 May 2010 10:44:37 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Mon, 31 May 2010 10:44:37 +0000    

Click here for diff

  
Patch by Fujii Masao.  
  

Fix misuse of Lossy Counting (LC) algorithm in compute_tsvector_stats().

  
commit   : bc0f080928e7476e668a848286ba596a70d2f5c2    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 30 May 2010 21:59:02 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 30 May 2010 21:59:02 +0000    

Click here for diff

  
We must filter out hashtable entries with frequencies less than those  
specified by the algorithm, else we risk emitting junk entries whose  
actual frequency is much less than other lexemes that did not get  
tabulated.  This is bad enough by itself, but even worse is that  
tsquerysel() believes that the minimum frequency seen in pg_statistic is a  
hard upper bound for lexemes not included, and was thus underestimating  
the frequency of non-MCEs.  
  
Also, set the threshold frequency to something with a little bit of theory  
behind it, to wit assume that the input distribution is approximately  
Zipfian.  This might need adjustment in future, but some preliminary  
experiments suggest that it's not too unreasonable.  
  
Back-patch to 8.4, where this code was introduced.  
  
Jan Urbanski, with some editorialization by Tom  
  

Change the notation for calling functions with named parameters from “val AS name” to “name := val”, as per recent discussion.

  
commit   : b12b7a9038259967098159cf0ccce0e77327a4d1    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 30 May 2010 18:10:41 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 30 May 2010 18:10:41 +0000    

Click here for diff

  
This patch catches everything in the original named-parameters patch,  
but I'm not certain that no other dependencies snuck in later (grepping  
the source tree for all uses of AS soon proved unworkable).  
  
In passing I note that we've dropped the ball at least once on keeping  
ecpg's lexer (as opposed to parser) in sync with the backend.  It would  
be a good idea to go through all of pgc.l and see if it's in sync now.  
I didn't attempt that at the moment.  
  

Clarify the meaning of “trusted language” in the documentation.

  
commit   : 2bde07c198a4995a4a756c58ee65d030a0e6ee02    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sun, 30 May 2010 02:23:09 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sun, 30 May 2010 02:23:09 +0000    

Click here for diff

  
  

Add text to “Populating a Database” pointing out that bulk data load into a table with foreign key constraints eats memory. Per off-line discussion of bug #5480 with its reporter. Also do some minor wordsmithing elsewhere in the same section.

  
commit   : 63f591e9695160bce80c77714970213cf8ca3318    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 29 May 2010 21:08:04 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 29 May 2010 21:08:04 +0000    

Click here for diff

  
  

Document that NOT NULL domain constraints are not always honored.

  
commit   : d800b036d2e7c7dddf3114f1f02ca16824c13769    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sat, 29 May 2010 19:06:16 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sat, 29 May 2010 19:06:16 +0000    

Click here for diff

  
  

Fix typos in recent doc patch. Fujii Masao

  
commit   : 23e9fe039172ea751223c44a2732a75979ed018b    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Sat, 29 May 2010 09:01:10 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Sat, 29 May 2010 09:01:10 +0000    

Click here for diff

  
  

Add C comment that we will have to remove an exclusion constraint check if we ever implement ‘<>’ index opclasses.

  
commit   : 7190220555f25ec1e4a64b4fc4679a1931b2cd35    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sat, 29 May 2010 02:32:08 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sat, 29 May 2010 02:32:08 +0000    

Click here for diff

  
Jeff Davis  
  

Abort a FETCH_COUNT-controlled query if we observe any I/O error on the output stream. This typically indicates that the user quit out of $PAGER, or that we are writing to a file and ran out of disk space. In either case we shouldn’t bother to continue fetching data.

  
commit   : 47d6d4485bca56900dee8ae6f7ad82fa98efcc21    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 28 May 2010 20:02:32 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 28 May 2010 20:02:32 +0000    

Click here for diff

  
Stephen Frost  
  

Fix oversight in the previous patch that made LIKE throw error for \ at the end of the pattern: the code path that handles \ just after % should throw error too. As in the previous patch, not back-patching for fear of breaking apps that worked before.

  
commit   : ece869b11eedd082ccd0bbd73ab9013c9ad9fa13    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 28 May 2010 18:18:19 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 28 May 2010 18:18:19 +0000    

Click here for diff

  
  

Document use of VPATH builds.

  
commit   : 9b94e3696e7b6c7c13db3e593d0fa471c3bce9bc    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Fri, 28 May 2010 18:04:36 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Fri, 28 May 2010 18:04:36 +0000    

Click here for diff

  
David Fetter  
  

Rewrite LIKE’s %-followed-by-_ optimization so it really works (this time for sure ;-)). It now also optimizes more cases, such as %%. Improve comments too. Per bug #5478.

  
commit   : dbde97cdde4afbd0a175880446e301f1bfb8994c    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 28 May 2010 17:35:23 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 28 May 2010 17:35:23 +0000    

Click here for diff

  
In passing, also rename the TCHAR macro to GETCHAR, because pgindent is  
messing with the formatting of the former (apparently it now thinks TCHAR  
is a typedef name).  
  
Back-patch to 8.3, where the bug was introduced.  
  

PGDLLEXPORT is __declspec (dllexport) only on MSVC, but is __declspec (dllimport) on other compilers because cygwin and mingw don’t like dllexport.

  
commit   : e54b0cba96683ae9a33458a9cbd5ea53c479754d    
  
author   : Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Fri, 28 May 2010 16:34:15 +0000    
  
committer: Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Fri, 28 May 2010 16:34:15 +0000    

Click here for diff

  
  

Update High Availability docs. Clarify terms master/primary standby/slave, move two paragraphs that apply to log shipping in general from the “Alternative method for log shipping” section to the earlier sections. Add varname tags where missing. Some small wording changes.

  
commit   : fe76f93d11a21bc851747433ac70c04ab3797483    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Fri, 28 May 2010 14:03:31 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Fri, 28 May 2010 14:03:31 +0000    

Click here for diff

  
  

Rejigger mergejoin logic so that a tuple with a null in the first merge column is treated like end-of-input, if nulls sort last in that column and we are not doing outer-join filling for that input. In such a case, the tuple cannot join to anything from the other input (because we assume mergejoinable operators are strict), and neither can any tuple following it in the sort order. If we’re not interested in doing outer-join filling we can just pretend the tuple and its successors aren’t there at all. This can save a great deal of time in situations where there are many nulls in the join column, as in a recent example from Scott Marlowe. Also, since the planner tends to not count nulls in its mergejoin scan selectivity estimates, this is an important fix to make the runtime behavior more like the estimate.

  
commit   : f39d57b83c823439ebb3b680f94eaf396f02520e    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 28 May 2010 01:14:03 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 28 May 2010 01:14:03 +0000    

Click here for diff

  
I regard this as an omission in the patch I wrote years ago to teach mergejoin  
that tuples containing nulls aren't joinable, so I'm back-patching it.  But  
only to 8.3 --- in older versions, we didn't have a solid notion of whether  
nulls sort high or low, so attempting to apply this optimization could break  
things.  
  

  
commit   : ede50726762a6d331d87e1e2d3fd504646d185e8    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 27 May 2010 19:19:38 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 27 May 2010 19:19:38 +0000    

Click here for diff

  
Back-patch to 8.0.  7.4 doesn't have %i and its version of get_ps_display()  
makes no pretense of avoiding pad junk anyhow.  
  

Small correction/clarification in discussion of Unicode literals

  
commit   : 2175d4fa59ece12afc62320ae84cf5e59b0667de    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 27 May 2010 18:23:47 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 27 May 2010 18:23:47 +0000    

Click here for diff

  
  

Fix the volatility marking of textanycat() and anytextcat(): they were marked immutable, but that is wrong in general because the cast from the polymorphic argument to text could be stable or even volatile. Mark them volatile for safety. In the typical case where the cast isn’t volatile, the planner will deduce the correct expression volatility after inlining the function, so performance is not lost. The just-committed fix in CREATE INDEX also ensures this won’t break any indexing cases that ought to be allowed.

  
commit   : c82d931dd180965a9a0c06acc764404f91de8170    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 27 May 2010 16:20:11 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 27 May 2010 16:20:11 +0000    

Click here for diff

  
Per discussion, I'm not bumping catversion for this change, as it doesn't  
seem critical enough to force an initdb on beta testers.  
  

Make CREATE INDEX run expression preprocessing on a proposed index expression before it checks whether the expression is immutable. This covers two cases that were previously handled poorly:

  
commit   : 5a86e5e1930d95f495a134000512d6ca22064338    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 27 May 2010 15:59:10 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 27 May 2010 15:59:10 +0000    

Click here for diff

  
1. SQL function inlining could reduce the apparent volatility of the  
expression, allowing an expression to be accepted where it previously would  
not have been.  As an example, polymorphic functions must be marked with the  
worst-case volatility they have for any argument type, but for specific  
argument types they might not be so volatile, so indexing could be allowed.  
(Since the planner will refuse to inline functions in cases where the  
apparent volatility of the expression would increase, this won't break  
any cases that were accepted before.)  
  
2. A nominally immutable function could have default arguments that are  
volatile expressions.  In such a case insertion of the defaults will increase  
both the apparent and actual volatility of the expression, so it is  
*necessary* to check this before allowing the expression to be indexed.  
  
Back-patch to 8.4, where default arguments were introduced.  
  

Mark PG_MODULE_MAGIC and PG_FUNCTION_INFO_V1 with PGDLLEXPORT independently from BUILDING_DLL. It is always __declspec(dllexport).

  
commit   : 77e50a61ffff34aae8cb3ffa5a7333c1049e5f37    
  
author   : Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Thu, 27 May 2010 07:59:48 +0000    
  
committer: Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Thu, 27 May 2010 07:59:48 +0000    

Click here for diff

  
  

Make it more clear that you need to release savepoint with RELEASE SAVEPOINT to make an older savepoint with the same name accessible. It’s also possible to implicitly release the savepoint by rolling back to an earlier savepoint, but mentioning that too would make the note just more verbose and confusing.

  
commit   : aa5bec67dee9bbd9929a468211d004c448859635    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Thu, 27 May 2010 06:25:32 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Thu, 27 May 2010 06:25:32 +0000    

Click here for diff

  
  

Avoid starting walreceiver in states where it shouldn’t be running.

  
commit   : 5e85315ea7a4040b5faeddeebbbadb81fed234c9    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Thu, 27 May 2010 02:01:37 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Thu, 27 May 2010 02:01:37 +0000    

Click here for diff

  
In particular, it's bad to start walreceiver when in state  
PM_WAIT_BACKENDS, because we have no provision to kill walreceiver  
when in that state.  
  
Fujii Masao  
  

Adjust comment to reflect that we now have Hot Standby. Pointed out by Robert Haas.

  
commit   : c5bd8feac65c5189cce070b841ad02bef70f419c    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Thu, 27 May 2010 00:38:39 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Thu, 27 May 2010 00:38:39 +0000    

Click here for diff

  
  

Fix SGML markup

  
commit   : f495020ede2753b7ea675b62e7ce93edfbf34b63    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 26 May 2010 23:55:51 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 26 May 2010 23:55:51 +0000    

Click here for diff

  
  

  
commit   : 1e6b654edcdcf0db75d1c086fff4124ea8bb39b5    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 26 May 2010 23:49:19 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 26 May 2010 23:49:19 +0000    

Click here for diff

  
  

Document pgFouine and check_postgres as log analysis options.

  
commit   : 092c38a2a8ae5e67065263bfa6bce048a31fb0c9    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 26 May 2010 23:29:45 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 26 May 2010 23:29:45 +0000    

Click here for diff

  
  

Thinko in previous commit: ensure that MAX_SEND_SIZE is always greater than XLOG_BLCKSZ, by defining it as 16 * XLOG_BLCKSZ rather than directly as 128k bytes.

  
commit   : fbcdff39bd09b5d8fc085e4653d7ad1b8e087dfd    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Wed, 26 May 2010 22:34:49 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Wed, 26 May 2010 22:34:49 +0000    

Click here for diff

  
  

In walsender, don’t sleep if there’s outstanding WAL waiting to be sent, otherwise we effectively rate-limit the streaming as pointed out by Simon Riggs. Also, send the WAL in smaller chunks, to respond to signals more promptly.

  
commit   : ea5516081dcbdc146ae0b3314a88cda2c48b0ca5    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Wed, 26 May 2010 22:21:33 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Wed, 26 May 2010 22:21:33 +0000    

Click here for diff

  
  

Rearrange libpq’s SSL initialization to simplify it and make it handle some additional cases correctly. The original coding failed to load additional (chain) certificates from the client cert file, meaning that indirectly signed client certificates didn’t work unless one hacked the server’s root.crt file to include intermediate CAs (not the desired approach). Another problem was that everything got loaded into the shared SSL_context object, which meant that concurrent connections trying to use different sslcert settings could well fail due to conflicting over the single available slot for a keyed certificate.

  
commit   : 4ed4b6c54e5fab24ab2624d80e26f7546edc88ad    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 26 May 2010 21:39:27 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 26 May 2010 21:39:27 +0000    

Click here for diff

  
To fix, get rid of the use of SSL_CTX_set_client_cert_cb(), which is  
deprecated anyway in the OpenSSL documentation, and instead just  
unconditionally load the client cert and private key during connection  
initialization.  This lets us use SSL_CTX_use_certificate_chain_file(),  
which does the right thing with additional certs, and is lots simpler than  
the previous hacking about with BIO-level access.  A small disadvantage is  
that we have to load the primary client cert a second time with  
SSL_use_certificate_file, so that that one ends up in the correct slot  
within the connection's SSL object where it can get paired with the key.  
Given the other overhead of making an SSL connection, that doesn't seem  
worth worrying about.  
  
Per discussion ensuing from bug #5468.  
  

Fix bogus error message for SSL-cert authentication, due to lack of a uaCert entry in auth_failed(). Put the switch entries into a sane order, namely the one the enum is declared in.

  
commit   : 0d046a4d7248543fcdfd1d5883a2ff6258786db7    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 26 May 2010 20:47:13 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 26 May 2010 20:47:13 +0000    

Click here for diff

  
  

HS Defer buffer pin deadlock check until deadlock_timeout has expired. During Hot Standby we need to check for buffer pin deadlocks when the Startup process begins to wait, in case it never wakes up again. We previously made the deadlock check immediately on the basis it was cheap, though clearer thinking and prima facie evidence shows that was too simple. Refactor existing code to make it easy to add in deferral of deadlock check until deadlock_timeout allowing a good reduction in deadlock checks since far few buffer pins are held for that duration. It’s worth doing anyway, though major goal is to prevent further reports of context switching with high numbers of users on occasional tests.

  
commit   : f9dbac94767d64f6a1174506b6e61db34729e015    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Wed, 26 May 2010 19:52:52 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Wed, 26 May 2010 19:52:52 +0000    

Click here for diff

  
  

Fix psql help: \da+ is same as \da, but \daS is not.

  
commit   : 5234a9524510bdff3a339f204d2655e7ce2eb3b5    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Wed, 26 May 2010 19:29:22 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Wed, 26 May 2010 19:29:22 +0000    

Click here for diff

  
Noted by Stephen Frost.  
  

The message style police pay a visit to hba.c.

  
commit   : af5be8bd40c3ce223abaed68dfc0dad3241dd08f    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 26 May 2010 16:43:13 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 26 May 2010 16:43:13 +0000    

Click here for diff

  
  

Minor editorialization for be-secure.c: fix comments and some formatting infelicities.

  
commit   : b1993a6108bf0c9f64e739d2b093fa25ccebe023    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 26 May 2010 16:15:57 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 26 May 2010 16:15:57 +0000    

Click here for diff

  
  

Tell openssl to include the names of the root certs the server trusts in requests for client certs. This lets a client with a keystore select the appropriate client certificate to send. In particular, this is necessary to get Java clients to work in all but the most trivial configurations. Per discussion of bug #5468.

  
commit   : c3bf3bf2aa0998876fd219fbfcc771fb83594539    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 26 May 2010 15:52:37 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 26 May 2010 15:52:37 +0000    

Click here for diff

  
Craig Ringer  
  

More fixes for shutdown during recovery.

  
commit   : 615704af1e5868c6fc9001ee5daef68db6d10f76    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Wed, 26 May 2010 12:32:41 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Wed, 26 May 2010 12:32:41 +0000    

Click here for diff

  
1. If we receive a fast shutdown request while in the PM_STARTUP state,  
process it just as we would in PM_RECOVERY, PM_HOT_STANDBY, or PM_RUN.  
Without this change, an early fast shutdown followed by Hot Standby causes  
the database to get stuck in a state where a shutdown is pending (so no new  
connections are allowed) but the shutdown request is never processed unless  
we end Hot Standby and enter normal running.  
  
2. Avoid removing the backup label file when a smart or fast shutdown occurs  
during recovery.  It makes sense to do this once we've reached normal running,  
since we must be taking a backup which now won't be valid.  But during  
recovery we must be recovering from a previously taken backup, and any backup  
label file is needed to restart recovery from the right place.  
  
Fujii Masao and Robert Haas  
  

  
commit   : 20d629320b8ccc899a763155d85cbc0e87b0982b    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 25 May 2010 22:03:27 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 25 May 2010 22:03:27 +0000    

Click here for diff

  
  

Fix oversight in construction of sort/unique plans for UniquePaths. If the original IN operator is cross-type, for example int8 = int4, we need to use int4 < int4 to sort the inner data and int4 = int4 to unique-ify it. We got the first part of that right, but tried to use the original IN operator for the equality checks. Per bug #5472 from Vlad Romascanu.

  
commit   : b486e7f3827fec8caa6aaeae29334405feb14b88    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 25 May 2010 17:44:41 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 25 May 2010 17:44:41 +0000    

Click here for diff

  
Backpatch to 8.4, where the bug was introduced by the patch that unified  
SortClause and GroupClause.  I was able to take out a whole lot of on-the-fly  
calls of get_equality_op_for_ordering_op(), but failed to realize that  
I needed to put one back in right here :-(  
  

Replace self written ‘long long int’ configure test by standard ‘AC_TYPE_LONG_LONG_INT’ macro call.

  
commit   : 29259531c7b48384dba863124aff79e05980b329    
  
author   : Michael Meskes <meskes@postgresql.org>    
date     : Tue, 25 May 2010 17:28:20 +0000    
  
committer: Michael Meskes <meskes@postgresql.org>    
date     : Tue, 25 May 2010 17:28:20 +0000    

Click here for diff

  
  

Remove IMPLEMENTATION.jp file from pg_upgrade docs; still in pgFoundry for pg_migrator, per suggestion from Magnus.

  
commit   : 9b6dba119349475f12d2a909ca265770156c4667    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 25 May 2010 16:53:24 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 25 May 2010 16:53:24 +0000    

Click here for diff

  
  

Update pg_upgrade IMPLEMENTATION doc file to match current 9.0 behavior.

  
commit   : 02265f06b73b4209ba0f718d5dd316942f2b5cb7    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 25 May 2010 16:09:29 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 25 May 2010 16:09:29 +0000    

Click here for diff

  
  

Modify pg_standby, pgbench, and pg_upgrade manual pages to be consistent in their display of command-line options with other client applications.

  
commit   : 238d21d7d28612bfebc2989ba649a1b137c29cbe    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 25 May 2010 15:55:28 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 25 May 2010 15:55:28 +0000    

Click here for diff

  
  

Add pg_upgrade docs about binary compatibility, per Robert Haas.

  
commit   : 7ff79fa42578ba711c73bfd6bf712f828bf479e1    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 25 May 2010 14:50:56 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 25 May 2010 14:50:56 +0000    

Click here for diff

  
  

Added a configure test for “long long” datatypes. So far this is only used in ecpg and replaces the old test that was kind of hackish.

  
commit   : 555a02f910490b94c48c1c479e9da2e4759ad25f    
  
author   : Michael Meskes <meskes@postgresql.org>    
date     : Tue, 25 May 2010 14:32:55 +0000    
  
committer: Michael Meskes <meskes@postgresql.org>    
date     : Tue, 25 May 2010 14:32:55 +0000    

Click here for diff

  
  

Add Japanese Implementation file to CVS.

  
commit   : f4e9436026455f7118de094696ca33e86555979e    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 25 May 2010 02:56:36 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 25 May 2010 02:56:36 +0000    

Click here for diff

  
  

Re-order pg_upgrade ‘help’ options to be alphabetical.

  
commit   : 7a74d70e71c079677561bc9ecc4a3ef503ac3abc    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 25 May 2010 02:55:58 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 25 May 2010 02:55:58 +0000    

Click here for diff

  
  

In pg_upgrade, test for datallowconn instead of hardcoding template0.

  
commit   : 6368682788b95e76db7e8f44e62eae53b20b783a    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Mon, 24 May 2010 19:52:33 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Mon, 24 May 2010 19:52:33 +0000    

Click here for diff

  
  

Update pg_upgrade docs to show options in alphabetical order, and improve 8.3 doc limitations paragraph.

  
commit   : 4b9904a0f81c4755ac5b2cf0403bfd3e7acec95c    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Mon, 24 May 2010 17:43:39 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Mon, 24 May 2010 17:43:39 +0000    

Click here for diff

  
  

Split apart pg_upgrade user lookup and root check so ‘–help’ shows proper default username.

  
commit   : 00be75415c3cd306088f3c6676f7e5805ed22bba    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Mon, 24 May 2010 16:34:35 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Mon, 24 May 2010 16:34:35 +0000    

Click here for diff

  
  

issue_warnings() has no business freeing its parameter, especially not when its sole caller does that too. Jan Matousek, via Pavel Stehule

  
commit   : add8044778a9f158eafb65b66fb1c0cd3f2c6718    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 23 May 2010 16:54:13 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 23 May 2010 16:54:13 +0000    

Click here for diff

  
  

Fix oversight in join removal patch: we have to delete the removed relation from SpecialJoinInfo relid sets as well. Per example from Vaclav Novotny.

  
commit   : 7df4cf7fd3aff6a3ebc4a223bb98c768e9bbe821    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 23 May 2010 16:34:38 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 23 May 2010 16:34:38 +0000    

Click here for diff

  
  

Unbreak \h; can’t do strlen(NULL).

  
commit   : c8518845de62e64eec3d863d4e149da72cacdd9f    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Fri, 21 May 2010 17:37:44 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Fri, 21 May 2010 17:37:44 +0000    

Click here for diff

  
This was broken by the following commmit.  Although the original commit was  
backpatched all the way to 7.4, this particular bug exists only in the version  
applied to HEAD.  
  
http://archives.postgresql.org/pgsql-committers/2010-05/msg00058.php  
  

Ecpg now accepts “long long” datatypes even if “long” is 64bit wide. This used to cover the equally long “long long” type. This patch closes bug #5464.

  
commit   : 15ab0e9a6051ff5b6c88a729ddd9d57ac44f7a11    
  
author   : Michael Meskes <meskes@postgresql.org>    
date     : Thu, 20 May 2010 22:10:46 +0000    
  
committer: Michael Meskes <meskes@postgresql.org>    
date     : Thu, 20 May 2010 22:10:46 +0000    

Click here for diff

  
  

Fix index entry for lo_compat_privileges, per bug #5467 from KOIZUMI Satoru.

  
commit   : de98ef62c7fe7a2bf02fafab6a95ae2e138ed075    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 20 May 2010 20:32:27 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 20 May 2010 20:32:27 +0000    

Click here for diff

  
  

Change the “N. Central Asia Standard Time” timezone to map to Asia/Novosibirsk on Windows.

  
commit   : ef01b235f830536cc8d38ed76a80fc182ef985f8    
  
author   : Magnus Hagander <magnus@hagander.net>    
date     : Thu, 20 May 2010 14:13:11 +0000    
  
committer: Magnus Hagander <magnus@hagander.net>    
date     : Thu, 20 May 2010 14:13:11 +0000    

Click here for diff

  
Microsoft changed the behaviour of this zone in the timezone update  
from KB976098. The zones differ in handling of DST, and the old  
zone was just removed.  
  
Noted by Dmitry Funk  
  

Show oid2name command-line arguments in documentation like we do for non-contrib command-line tools (no longer in a single table display).

  
commit   : 47671aae774f067a173f99ef096d66991ebfd340    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 20 May 2010 03:45:38 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 20 May 2010 03:45:38 +0000    

Click here for diff

  
  

SGML markup cleanup for pg_upgrade.

  
commit   : 9974a460040677c3e20cca73bad7f40007d4e502    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 19 May 2010 20:47:18 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 19 May 2010 20:47:18 +0000    

Click here for diff

  
  

Doc change: Rename of directory no longer required for pg_migrator 9.0.

  
commit   : 5add506838501f6968824c00942a9f4ed3edc6a7    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 19 May 2010 20:40:33 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 19 May 2010 20:40:33 +0000    

Click here for diff

  
Alvaro  
  

pg_upgrade doc cleanup

  
commit   : 5eae7e17567f4ec7116e36729c1ca1ecde3801e1    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 19 May 2010 20:37:03 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 19 May 2010 20:37:03 +0000    

Click here for diff

  
Stefan Kaltenbrunner  
  

Restore oid2name doc change.

  
commit   : 2963d8228100487bcf3db1c8c13a2b8b4f542755    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 19 May 2010 20:22:05 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 19 May 2010 20:22:05 +0000    

Click here for diff

  
  

Add command-line documentation for pg_upgrade.

  
commit   : 67fd5f3c85a4d48414435e1f5d1b4566c5643440    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 19 May 2010 20:20:38 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 19 May 2010 20:20:38 +0000    

Click here for diff

  
  

Simplify pg_upgrade queries by using IN instead of multiple OR clauses comparing the same column to multiple values.

  
commit   : 3245bd524034911a0013388db23a86c0093a7d97    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 19 May 2010 18:56:47 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 19 May 2010 18:56:47 +0000    

Click here for diff

  
  

For pg_upgrade, update template0’s datfrozenxid and its relfrozenxids to match the behavior of autovacuum, which does this as the xid advances even if autovacuum is turned off.

  
commit   : 573e446f6f5963a0edad575130743eb75887d087    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 19 May 2010 18:27:43 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 19 May 2010 18:27:43 +0000    

Click here for diff

  
  

Refer to pg_ident.conf as config file for username mapping, as it’s now used for other things than just ident authentication.

  
commit   : 3ef95741026384e97a4adfd24f6dc7b2db9aafc8    
  
author   : Magnus Hagander <magnus@hagander.net>    
date     : Tue, 18 May 2010 19:05:17 +0000    
  
committer: Magnus Hagander <magnus@hagander.net>    
date     : Tue, 18 May 2010 19:05:17 +0000    

Click here for diff

  
Noted by Stephen Frost  
  

Use a ‘datallowconn’ check for avoiding ‘template0’, rather than hardcoding a ‘template0’ check, per suggestion from Alvaro.

  
commit   : 64719a18dbe36871635bbebd718a1267b9447bcd    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 18 May 2010 18:40:51 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 18 May 2010 18:40:51 +0000    

Click here for diff

  
This might fix a problem where someone has allowed 'template0'  
connections, but it is a cleaner approach even if doesn't fix the  
bug.  
  

Make pg_upgrade documentation refer to 9.0 instead of 8.4.

  
commit   : 60e7f45966b3a95c7e5c13ee783c96c0860c14f1    
  
author   : Magnus Hagander <magnus@hagander.net>    
date     : Tue, 18 May 2010 15:41:36 +0000    
  
committer: Magnus Hagander <magnus@hagander.net>    
date     : Tue, 18 May 2010 15:41:36 +0000    

Click here for diff

  
Fujii Masao  
  

Fix regression tests to match error message change

  
commit   : 2627d5bd0dfeab3c773d9458e7fe4b264bf98009    
  
author   : Andrew Dunstan <andrew@dunslane.net>    
date     : Tue, 18 May 2010 03:35:34 +0000    
  
committer: Andrew Dunstan <andrew@dunslane.net>    
date     : Tue, 18 May 2010 03:35:34 +0000    

Click here for diff

  
  

Add pg_upgrade TESTING files explaining a testing method.

  
commit   : 37953b2d202d878b235df886875aa51bb299ce17    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 18 May 2010 03:26:12 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 18 May 2010 03:26:12 +0000    

Click here for diff

  
  

Move pg_notify() details to a subsection within the NOTIFY reference page.

  
commit   : 11f2efd12ac134d82d75255750c6bad685f05686    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Tue, 18 May 2010 02:28:53 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Tue, 18 May 2010 02:28:53 +0000    

Click here for diff

  
This allows the index to reference the pg_notify() subsection specifically,  
rather than Notes section of the NOTIFY reference page more generally.  
  
Fujii Masao  
  

Make table in example less wide.

  
commit   : 91e01e21a2b40b748d49c53d85b0206f2aac8b4c    
  
author   : Alvaro Herrera <alvherre@alvh.no-ip.org>    
date     : Mon, 17 May 2010 20:50:44 +0000    
  
committer: Alvaro Herrera <alvherre@alvh.no-ip.org>    
date     : Mon, 17 May 2010 20:50:44 +0000    

Click here for diff

  
  

Follow up a visit from the style police.

  
commit   : a6eeb8c10ddb153515cb98c72481693e817c4d2f    
  
author   : Andrew Dunstan <andrew@dunslane.net>    
date     : Mon, 17 May 2010 19:43:04 +0000    
  
committer: Andrew Dunstan <andrew@dunslane.net>    
date     : Mon, 17 May 2010 19:43:04 +0000    

Click here for diff

  
  

Clarify plperl subroutine name release notes item, remove now redundant Safe.pm item.

  
commit   : 99ad9236bc6fee829017b8d93a96dfb2e16b8f3c    
  
author   : Andrew Dunstan <andrew@dunslane.net>    
date     : Mon, 17 May 2010 17:46:13 +0000    
  
committer: Andrew Dunstan <andrew@dunslane.net>    
date     : Mon, 17 May 2010 17:46:13 +0000    

Click here for diff

  
  

Insert line breaks in two places in SQL functions documentation.

  
commit   : 6d932df652300e4f7966f3d77d665f1228b214e0    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Sun, 16 May 2010 04:35:04 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Sun, 16 May 2010 04:35:04 +0000    

Click here for diff

  
This avoids a formatting problem in the PDF output.  In the HTML output this  
isn't necessary, but we've done similar things elsewhere in the documentation  
so I think it's OK to do it here, too.  I've refrained from breaking a longish  
error message which also causes problems for the PDF output, because that would  
make the HTML output look wrong.  
  
Erik Rijkers  
  

Fix longstanding typo in V1 calling conventions documentation.

  
commit   : 4384a95a57dade91c4a169b711001c3acdcc219c    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Sun, 16 May 2010 03:55:41 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Sun, 16 May 2010 03:55:41 +0000    

Click here for diff

  
Erik Rijkers  
  

Ensure that pg_restore -l will output DATABASE entries whether or not -C is specified. Per bug report from Russell Smith and ensuing discussion. Since this is a corner case behavioral change, I’m going to be conservative and not back-patch it.

  
commit   : bd823e11fa52a79f6116e1538f861cccd8823f3f    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 15 May 2010 21:41:16 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 15 May 2010 21:41:16 +0000    

Click here for diff

  
In passing, also rename the RestoreOptions field for the -C switch to  
something less generic than "create".  
  

Rename PM_RECOVERY_CONSISTENT and PMSIGNAL_RECOVERY_CONSISTENT.

  
commit   : ea9968c331ab913d07b0a7eb2c28f29915e39893    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Sat, 15 May 2010 20:01:32 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Sat, 15 May 2010 20:01:32 +0000    

Click here for diff

  
The new names PM_HOT_STANDBY and PMSIGNAL_BEGIN_HOT_STANDBY more accurately  
reflect their actual function.  
  

Improve documentation of pg_restore’s -l and -L switches to point out their interactions with filtering switches, such as -n and -t. Per a complaint from Russell Smith.

  
commit   : d7b6c8c0a5ae2616ca3518cc27bbb0fc5ce3af74    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 15 May 2010 18:11:07 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 15 May 2010 18:11:07 +0000    

Click here for diff

  
  

Spell NetBSD the same way everywhere. Per Giles Lean.

  
commit   : c453569f0d52f2289dbbc8719215b342d85903f5    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 15 May 2010 14:44:13 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 15 May 2010 14:44:13 +0000    

Click here for diff

  
  

Adjust pg_upgrade BSD defines for scandir(), per report from Giles Lean

  
commit   : 5c337fb45ceaffc77b88fe7d519c4c62aff0ea7d    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sat, 15 May 2010 10:21:54 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sat, 15 May 2010 10:21:54 +0000    

Click here for diff

  
  

Use bsdi consistently.

  
commit   : 5b79fdadda71cad77bdb127d046b785bdd8332ec    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sat, 15 May 2010 10:14:20 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sat, 15 May 2010 10:14:20 +0000    

Click here for diff

  
  

Change bsdi define to bsdi

  
commit   : 5781d96dc3bd1bf8f7cb9c07a9927627e72aeaa7    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sat, 15 May 2010 10:08:28 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sat, 15 May 2010 10:08:28 +0000    

Click here for diff

  
  

Fix typos in comments, spotted by Josh Kupershmidt.

  
commit   : de4e18a34d92ccd5779a7d4625e2029c6829f5e7    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Sat, 15 May 2010 09:31:57 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Sat, 15 May 2010 09:31:57 +0000    

Click here for diff

  
  

Fix bug in processing of checkpoint time for max_standby_delay. Latest log time was incorrectly set, typically leading to dates in the past, which would cause more cancellations in Hot Standby on a quiet server.

  
commit   : 4a24c9a06325fe18a5aa96b116bd85ab58172ac8    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Sat, 15 May 2010 07:14:43 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Sat, 15 May 2010 07:14:43 +0000    

Click here for diff

  
  

We now accept read-only connections in state PM_RECOVERY_CONSISTENT.

  
commit   : a724584735db27663163f3c45df77218764e6669    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Fri, 14 May 2010 18:08:33 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Fri, 14 May 2010 18:08:33 +0000    

Click here for diff

  
  

Remove CRs.

  
commit   : 0b38f3b19219328edb68be775d8f057b8e280e86    
  
author   : Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Fri, 14 May 2010 10:37:02 +0000    
  
committer: Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Fri, 14 May 2010 10:37:02 +0000    

Click here for diff

  
  

  
commit   : fd34374b17842dc5a02a72fa612a51922ca6a9de    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Fri, 14 May 2010 07:11:49 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Fri, 14 May 2010 07:11:49 +0000    

Click here for diff

  
  

Fix another obvious bug pointed out by a compiler warning.

  
commit   : 88fba7089edb6091dd2f848ed69e05cef609b5ad    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 14 May 2010 00:43:42 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 14 May 2010 00:43:42 +0000    

Click here for diff

  
  

Remove another unsafe use of random data as a format string.

  
commit   : 0546906064cead624981855ac6c7e7869dbe96ac    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 14 May 2010 00:39:51 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 14 May 2010 00:39:51 +0000    

Click here for diff

  
  

Get rid of unsafe sprintf and snprintf usages. Per compiler warnings.

  
commit   : 8eac39780d5bfab5f51274081094e1913ecf4722    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 14 May 2010 00:32:21 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 14 May 2010 00:32:21 +0000    

Click here for diff

  
  

Spell darwin correctly, to suppress compiler warning on OSX.

  
commit   : adf6b8edfbc4a286ac779261685c36f42b664325    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 14 May 2010 00:19:46 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 14 May 2010 00:19:46 +0000    

Click here for diff

  
  

Use NAMEDATALEN instead of local define.

  
commit   : e9ad14f9f4a8b3eb2c7497e5cee7a444c3469784    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Fri, 14 May 2010 00:13:38 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Fri, 14 May 2010 00:13:38 +0000    

Click here for diff

  
Modify path separators for Win32.  
  
Per ideas from Takahiro Itagaki  
  

Remove all mentions of EnterpriseDB Advanced Server from pg_upgrade; EDB must maintain their own patch set for this.

  
commit   : 36d3afd2d42da4c81c22b8cad3e8312368b9823e    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 13 May 2010 22:51:00 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 13 May 2010 22:51:00 +0000    

Click here for diff

  
  

Fix up lame idea of not using autoconf to determine if platform has scandir(). Should fix buildfarm failures.

  
commit   : 382ff21203ae1c13c2c93a483b098608f35a7251    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 13 May 2010 22:07:43 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 13 May 2010 22:07:43 +0000    

Click here for diff

  
  

Fix MSVC builds for recent plperl changes. Go back to version 8.2, which is where we started supporting MSVC builds.

  
commit   : 2a73ee59dbdeb7bf05ff1b3fadb28992245904e0    
  
author   : Andrew Dunstan <andrew@dunslane.net>    
date     : Thu, 13 May 2010 21:33:00 +0000    
  
committer: Andrew Dunstan <andrew@dunslane.net>    
date     : Thu, 13 May 2010 21:33:00 +0000    

Click here for diff

  
Security: CVE-2010-1169  
  

Update release notes with security issues.

  
commit   : 20db9591b241281b0bcc5871418befffca4095a6    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 13 May 2010 21:26:59 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 13 May 2010 21:26:59 +0000    

Click here for diff

  
Security: CVE-2010-1169, CVE-2010-1170  
  

Use an entity instead of non-ASCII letter. Thom Brown

  
commit   : 4b8c969c74af8c4407d56bafecf19335f411ef77    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 13 May 2010 19:16:14 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 13 May 2010 19:16:14 +0000    

Click here for diff

  
  

Use “TOAST table” in place of the vague, not-used-elsewhere phrase “supplementary storage table”.

  
commit   : a4bbfb1aac27daa8bf4c533c213c18982f65e0b8    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 13 May 2010 18:54:18 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 13 May 2010 18:54:18 +0000    

Click here for diff

  
  

Prevent PL/Tcl from loading the “unknown” module from pltcl_modules unless that is a regular table or view owned by a superuser. This prevents a trojan horse attack whereby any unprivileged SQL user could create such a table and insert code into it that would then get executed in other users’ sessions whenever they call pltcl functions.

  
commit   : 9ead05b7c3d0fb48a2d5ac6ec0f51c4f276d581d    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 13 May 2010 18:29:12 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 13 May 2010 18:29:12 +0000    

Click here for diff

  
Worse yet, because the code was automatically loaded into both the "normal"  
and "safe" interpreters at first use, the attacker could execute unrestricted  
Tcl code in the "normal" interpreter without there being any pltclu functions  
anywhere, or indeed anyone else using pltcl at all: installing pltcl is  
sufficient to open the hole.  Change the initialization logic so that the  
"unknown" code is only loaded into an interpreter when the interpreter is  
first really used.  (That doesn't add any additional security in this  
particular context, but it seems a prudent change, and anyway the former  
behavior violated the principle of least astonishment.)  
  
Security: CVE-2010-1170  
  

Abandon the use of Perl’s Safe.pm to enforce restrictions in plperl, as it is fundamentally insecure. Instead apply an opmask to the whole interpreter that imposes restrictions on unsafe operations. These restrictions are much harder to subvert than is Safe.pm, since there is no container to be broken out of. Backported to release 7.4.

  
commit   : 1f474d299d02c398fa627d09d23a7a6a1079a310    
  
author   : Andrew Dunstan <andrew@dunslane.net>    
date     : Thu, 13 May 2010 16:39:43 +0000    
  
committer: Andrew Dunstan <andrew@dunslane.net>    
date     : Thu, 13 May 2010 16:39:43 +0000    

Click here for diff

  
In releases 7.4, 8.0 and 8.1 this also includes the necessary backporting of  
the two interpreters model for plperl and plperlu adopted in release 8.2.  
  
In versions 8.0 and up, the use of Perl's POSIX module to undo its locale  
mangling on Windows has become insecure with these changes, so it is  
replaced by our own routine, which is also faster.  
  
Nice side effects of the changes include that it is now possible to use perl's  
"strict" pragma in a natural way in plperl, and that perl's $a and  
$b variables now work as expected in sort routines, and that function  
compilation is significantly faster.  
  
Tim Bunce and Andrew Dunstan, with reviews from Alex Hunsaker and  
Alexey Klyukin.  
  
Security: CVE-2010-1169  
  

Assorted fixes to make pg_upgrade build on MSVC.

  
commit   : 2b61b3e5074d7f55df82c199b87671334741b4e1    
  
author   : Magnus Hagander <magnus@hagander.net>    
date     : Thu, 13 May 2010 15:58:15 +0000    
  
committer: Magnus Hagander <magnus@hagander.net>    
date     : Thu, 13 May 2010 15:58:15 +0000    

Click here for diff

  
* There is no chmod() on Windows.  
* Must always use the 3-parameter version of open()  
* There is no dynloader.h - but it also appears unnecessary on all platforms  
* Don't include shlobj.h because it causes compile errors, and from what I can  
  see it's not actually used. This may need to be added back for mingw  
  and/or cygwin in the worst case.  
  

Translation update

  
commit   : f1ac08daeef0b9417b2dff801c10fcc027697453    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 13 May 2010 15:56:43 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 13 May 2010 15:56:43 +0000    

Click here for diff

  
  

Properly support multi-line entires (such as OBJS=) when building PROGRAM, not just MODULE, in contrib.

  
commit   : 12bc72db6053987bb39f781b7952d02a795d5e9b    
  
author   : Magnus Hagander <magnus@hagander.net>    
date     : Thu, 13 May 2010 15:56:22 +0000    
  
committer: Magnus Hagander <magnus@hagander.net>    
date     : Thu, 13 May 2010 15:56:22 +0000    

Click here for diff

  
  

Comment out EnterpriseDB Advanced Server mention in SGML docs.

  
commit   : 10d66ac8f67023ea60da49994be1fb6020e25fb6    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 13 May 2010 15:03:24 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 13 May 2010 15:03:24 +0000    

Click here for diff

  
  

Avoid error from mkdir if no languages are to be installed

  
commit   : 74d770a895569cc2c8e6e5745249d3124b9f7fb2    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 13 May 2010 14:35:28 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 13 May 2010 14:35:28 +0000    

Click here for diff

  
mkinstalldirs used to handle no arguments, but mkdir doesn't.  
  
Also remove the .SILENT setting, that was previously removed from  
Makefile.global as well.  
  

Fix some spelling errors.

  
commit   : 4cb7536c6bdaae698706eb57f5a282907e475e5d    
  
author   : Magnus Hagander <magnus@hagander.net>    
date     : Thu, 13 May 2010 14:16:41 +0000    
  
committer: Magnus Hagander <magnus@hagander.net>    
date     : Thu, 13 May 2010 14:16:41 +0000    

Click here for diff

  
Thom Brown  
  

Add missing library and include support for pg_upgrade to MSVC build system.

  
commit   : 52d0b49f5e04af3ea36eeadcd3a0859277a7d292    
  
author   : Andrew Dunstan <andrew@dunslane.net>    
date     : Thu, 13 May 2010 13:40:03 +0000    
  
committer: Andrew Dunstan <andrew@dunslane.net>    
date     : Thu, 13 May 2010 13:40:03 +0000    

Click here for diff

  
  

  
commit   : 092c36ef990209c37192bf8269d083c6a45beefd    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 13 May 2010 12:47:50 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 13 May 2010 12:47:50 +0000    

Click here for diff

  
  

Fix vpath installation from distribution tarball (bug #5447)

  
commit   : 3393551d541ce949e20725dca6366a97b142ef5d    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 13 May 2010 11:49:48 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 13 May 2010 11:49:48 +0000    

Click here for diff

  
  

  
commit   : 463f151a23242c531890589db3692077aadb05ca    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Thu, 13 May 2010 11:39:30 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Thu, 13 May 2010 11:39:30 +0000    

Click here for diff

  
  

Cleanup initialization of Hot Standby. Clarify working with reanalysis of requirements and documentation on LogStandbySnapshot(). Fixes two minor bugs reported by Tom Lane that would lead to an incorrect snapshot after transaction wraparound. Also fix two other problems discovered that would give incorrect snapshots in certain cases. ProcArrayApplyRecoveryInfo() substantially rewritten. Some minor refactoring of xact_redo_apply() and ExpireTreeKnownAssignedTransactionIds().

  
commit   : 8431e296ea4cfc8dd30053f89b6970ef16ddbc61    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Thu, 13 May 2010 11:15:38 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Thu, 13 May 2010 11:15:38 +0000    

Click here for diff

  
  

Fix wrong subdir. Per buildfarm.

  
commit   : c2e7f78abed4cdc447067fbbdf1f0161f103b55c    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 13 May 2010 05:17:16 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 13 May 2010 05:17:16 +0000    

Click here for diff

  
  

Update release notes to current.

  
commit   : d8c311c3797a18d0e073a9959d6f557be5be10d7    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 13 May 2010 01:57:01 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 13 May 2010 01:57:01 +0000    

Click here for diff

  
  

Move pg_upgrade shared library out into its own /contrib directory (pg_upgrade_support).

  
commit   : 9885206caba98bf0cb57d1c27d1a352c60c08496    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 13 May 2010 01:03:01 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 13 May 2010 01:03:01 +0000    

Click here for diff

  
  

Update comment about why postmaster doesn’t get an icon.

  
commit   : c7c012ce56ac419439a7cbcb0520f3a9740ca2d6    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 12 May 2010 23:48:36 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 12 May 2010 23:48:36 +0000    

Click here for diff

  
  

Preliminary release notes for releases 8.4.4, 8.3.11, 8.2.17, 8.1.21, 8.0.25, 7.4.29.

  
commit   : 8aad797362fbba1f2f613c12bbc6a4a06bd58f75    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 12 May 2010 23:20:49 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 12 May 2010 23:20:49 +0000    

Click here for diff

  
  

Remove Makefile PGFILEDESC tag that the postmaster is an executable.

  
commit   : 0c6b9308de6e2381b357f0d6710109827e199d47    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 12 May 2010 21:42:21 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 12 May 2010 21:42:21 +0000    

Click here for diff

  
  

Give most recovery conflict errors a retryable error code. From recent requests and discussions with Yeb Havinga and Kevin Grittner.

  
commit   : 66035734ec36e56e36d94f413f5eb7d498993b6d    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Wed, 12 May 2010 19:45:02 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Wed, 12 May 2010 19:45:02 +0000    

Click here for diff

  
  

Hook pg_upgrade into the contrib makefile structure so it gets built on the buildfarm.

  
commit   : 44e55690fde08b725cf8e8fee5a402f26b3f6db7    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 12 May 2010 16:50:58 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 12 May 2010 16:50:58 +0000    

Click here for diff

  
  

Update config.guess and config.sub

  
commit   : 087b393dabc5309bfdcdfb57ee7bb91debcc6ed5    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Wed, 12 May 2010 16:50:57 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Wed, 12 May 2010 16:50:57 +0000    

Click here for diff

  
  

Clean up unnecessary unportability and compiler warnings by removing the cmp parameter for pg_scandir(). The code failed to support this anyway for Sun/Windows, so pretending we could accept a parameter other than NULL was just asking for trouble.

  
commit   : c9c25a982c621320d699bf7c9055aaa4015dcad2    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 12 May 2010 16:50:00 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 12 May 2010 16:50:00 +0000    

Click here for diff

  
  

Move pg_upgrade TODO to TODO wiki.

  
commit   : b460b5cd1117167d505239e9081f4f7a526914a7    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 12 May 2010 13:59:21 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 12 May 2010 13:59:21 +0000    

Click here for diff

  
  

Add PGFILEDESC description to Makefiles for all /contrib executables.

  
commit   : 395d1259ad7481ef19c1d425ba399c861c667129    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 12 May 2010 11:33:10 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 12 May 2010 11:33:10 +0000    

Click here for diff

  
Add PGAPPICON to all executable makefiles.  
  

Small formatting adjustment.

  
commit   : 561afa534d0ee9ae8db19a3132a2185ba930c0e6    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 12 May 2010 11:07:24 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 12 May 2010 11:07:24 +0000    

Click here for diff

  
  

Add pg_upgrade IMPLEMENTATION file to CVS.

  
commit   : a898199df5c70eb864d8951ce7838810df6516f3    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 12 May 2010 02:24:43 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 12 May 2010 02:24:43 +0000    

Click here for diff

  
  

Add TODO file to CVS.

  
commit   : 6c4a98d99cc5700fa8e1e4aa5cb7f859eb2a9970    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 12 May 2010 02:23:56 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 12 May 2010 02:23:56 +0000    

Click here for diff

  
  

Add pg_upgrade to /contrib; will be in 9.0 beta2.

  
commit   : c2e9b2f288185a8569f6391ea250c7eeafa6c14b    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 12 May 2010 02:19:11 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 12 May 2010 02:19:11 +0000    

Click here for diff

  
Add documentation.  
  
Supports migration from PG 8.3 and 8.4.  
  

Update time zone data files to tzdata release 2010j: DST law changes in Argentina, Australian Antarctic, Bangladesh, Mexico, Morocco, Pakistan, Palestine, Russia, Syria, Tunisia. Historical corrections for Taiwan.

  
commit   : 28e1742217716076da0700094a369eae5766974c    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 11 May 2010 23:01:27 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 11 May 2010 23:01:27 +0000    

Click here for diff

  
  

Add PKST to the default set of timezone abbreviations. Per discussion, if we have PKT in there then PKST should be too. Also, fix mistaken claim that these abbrevs are not known to zic.

  
commit   : af9a54b6638a47b191ba0d3f383e771987966eea    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 11 May 2010 22:36:52 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 11 May 2010 22:36:52 +0000    

Click here for diff

  
  

Change typedef for rb_appendator to avoid conflict with C++ reserved words.

  
commit   : dd6fcd35e33fa19144ceb69292c497b1f7b61388    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Tue, 11 May 2010 18:14:01 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Tue, 11 May 2010 18:14:01 +0000    

Click here for diff

  
Fixes a complaint from src/tools/pginclude/cpluspluscheck reported by  
Peter Eisentraut.  
  

Cause the archiver process to adopt new postgresql.conf settings (particularly archive_command) as soon as possible, namely just before issuing a new call of archive_command, even when there is a backlog of files to be archived. The original coding would only absorb new settings after clearing the backlog and returning to the outer loop. Per discussion.

  
commit   : 4a69624f495363810371a9178b0c5a5f5336e70e    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 11 May 2010 16:42:28 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 11 May 2010 16:42:28 +0000    

Click here for diff

  
Back-patch to 8.3.  The logic in prior versions is a bit different and it  
doesn't seem worth taking any risks of breaking it.  
  

  
commit   : 8b8009a20dbc26a75cc1d5b79490cf64d802e2a7    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Tue, 11 May 2010 16:07:42 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Tue, 11 May 2010 16:07:42 +0000    

Click here for diff

  
As suggested by Andy Lester.  
  

Fix incorrect patch that removed permission checks on inheritance child tables — the parent table no longer got checked, either. Per bug #5458 from Takahiro Itagaki.

  
commit   : b7987f8a942d48ecfbcb20fac6da57a4b784983d    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 11 May 2010 15:31:37 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 11 May 2010 15:31:37 +0000    

Click here for diff

  
  

Set per-function GUC settings during validating the function. Now validators work properly even when the settings contain parameters that affect behavior of the function, like search_path.

  
commit   : 5d6d037822ccfae697f0a530e37a70ae1cd7e420    
  
author   : Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Tue, 11 May 2010 04:52:28 +0000    
  
committer: Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Tue, 11 May 2010 04:52:28 +0000    

Click here for diff

  
Reported by Erwin Brandstetter.  
  

  
commit   : ed83f6e38209016ae75832ae8997f190ea4a0c8e    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 10 May 2010 16:25:46 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 10 May 2010 16:25:46 +0000    

Click here for diff

  
  

Suppress signed-vs-unsigned-char warning.

  
commit   : 7fdbb8e3537c6baee61ff26e52e0923de15c6b3f    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 9 May 2010 18:17:47 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 9 May 2010 18:17:47 +0000    

Click here for diff

  
  

Fix missing static declaration for XLogRead().

  
commit   : 2ea56cbda6ae67dc8d17085b52fafd16542918ad    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 9 May 2010 18:11:55 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 9 May 2010 18:11:55 +0000    

Click here for diff

  
  

Fix typo: PGTYPES_NUM_OVERFLOW should be PGTYPES_NUM_UNDERFLOW. Noted by KOIZUMI Satoru.

  
commit   : 4768fd3fd8176173a9e5d1d716cf48c2f91087be    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 9 May 2010 16:30:31 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 9 May 2010 16:30:31 +0000    

Click here for diff

  
  

Adjust comments about avoiding use of printf’s %.*s. My initial impression that glibc was measuring the precision in characters (which is what the Linux man page says it does) was incorrect. It does take the precision to be in bytes, but it also tries to truncate the string at a character boundary. The bottom line remains the same: it will mess up if the string is not in the encoding it expects, so we need to avoid %.*s anytime there’s a significant risk of that. Previous code changes are still good, but adjust the comments to reflect this knowledge. Per research by Hernan Gonzalez.

  
commit   : ed437e2b27c48219a78f3504b0d05c17c2082d02    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 9 May 2010 02:16:00 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 9 May 2010 02:16:00 +0000    

Click here for diff

  
  

Work around a subtle portability problem in use of printf %s format. Depending on which spec you read, field widths and precisions in %s may be counted either in bytes or characters. Our code was assuming bytes, which is wrong at least for glibc’s implementation, and in any case libc might have a different idea of the prevailing encoding than we do. Hence, for portable results we must avoid using anything more complex than just “%s” unless the string to be printed is known to be all-ASCII.

  
commit   : 54cd4f04576833abc394e131288bf3dd7dcf4806    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 8 May 2010 16:39:53 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 8 May 2010 16:39:53 +0000    

Click here for diff

  
This patch fixes the cases I could find, including the psql formatting  
failure reported by Hernan Gonzalez.  In HEAD only, I also added comments  
to some places where it appears safe to continue using "%.*s".  
  

ECPG connect routine only checked for NULL to find empty parameters, but user and password can also be “”.

  
commit   : 71a185a24d573dc1449777ff9fa8f3020af6f13c    
  
author   : Michael Meskes <meskes@postgresql.org>    
date     : Fri, 7 May 2010 19:35:03 +0000    
  
committer: Michael Meskes <meskes@postgresql.org>    
date     : Fri, 7 May 2010 19:35:03 +0000    

Click here for diff

  
  

On Linux, use –enable-new-dtags when specifying -rpath to linker. This should allow LD_LIBRARY_PATH to work as desired. Per trouble report from Andy Colson.

  
commit   : cd86869a9a56715a4143aff460f58ad9b4750475    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 6 May 2010 19:28:25 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 6 May 2010 19:28:25 +0000    

Click here for diff

  
  

Code page for EUC-KR is surely 51949.

  
commit   : 72ee6703232fd21757613ab4889fab58de62144d    
  
author   : Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Thu, 6 May 2010 02:12:38 +0000    
  
committer: Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Thu, 6 May 2010 02:12:38 +0000    

Click here for diff

  
  

Fix psql to not go into infinite recursion when expanding a variable that refers to itself (directly or indirectly). Instead, print a message when recursion is detected, and don’t expand the repeated reference. Per bug #5448 from Francis Markham.

  
commit   : 93dc6a1b394f8b0ea6719a40a61a81c262ea2103    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 5 May 2010 22:18:56 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 5 May 2010 22:18:56 +0000    

Click here for diff

  
Back-patch to 8.0.  Although the issue exists in 7.4 as well, it seems  
impractical to fix there because of the lack of any state stack that  
could be used to track active expansions.  
  

Fix incorrect parameter tag in docs, spotted by KOIZUMI Satoru.

  
commit   : 1ba23f767bad48c77a90ead05db62d83d24d9763    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Wed, 5 May 2010 15:10:25 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Wed, 5 May 2010 15:10:25 +0000    

Click here for diff

  
  

Remove spurious dot, per bug #5446 reported by koizumistr@minos.ocn.ne.jp

  
commit   : d64e81c07e804108069f4d69e5ceb1ad641c3d7f    
  
author   : Alvaro Herrera <alvherre@alvh.no-ip.org>    
date     : Mon, 3 May 2010 15:35:30 +0000    
  
committer: Alvaro Herrera <alvherre@alvh.no-ip.org>    
date     : Mon, 3 May 2010 15:35:30 +0000    

Click here for diff

  
  

Need to hold ControlFileLock while updating control file. Update minRecoveryPoint in control file when replaying a parameter change record, to ensure that we don’t allow hot standby on WAL generated without wal_level=‘hot_standby’ after a standby restart.

  
commit   : ffe8c7c677197ef8062a71309b14a1847841118c    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Mon, 3 May 2010 11:17:52 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Mon, 3 May 2010 11:17:52 +0000    

Click here for diff

  
  

Change wording so that you don’t need to understand that wal_levels form a hierarchy. Per Simon’s suggestion.

  
commit   : c0de88c4152a239cb4df00b538770afbf422adf8    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Mon, 3 May 2010 10:31:29 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Mon, 3 May 2010 10:31:29 +0000    

Click here for diff

  
  

Change “literal” tag to the more appropriate “firstterm”, when describing what “eventually consistent” means.

  
commit   : 1b6c7b1c0b951b1b41c3c4539d99360c28c98cb6    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Mon, 3 May 2010 09:15:17 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Mon, 3 May 2010 09:15:17 +0000    

Click here for diff

  
  

Add cross-reference from wal_level to hot_standby setting. Update the PITR documentation to mention that you need to set wal_level to ‘archive’ or ‘hot_standby’, to enable WAL archiving. Per Simon’s request.

  
commit   : f35951619c921442061f788548c14fd5e039b786    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Mon, 3 May 2010 09:14:17 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Mon, 3 May 2010 09:14:17 +0000    

Click here for diff

  
  

Improve printing of XLOG_HEAP_NEWPAGE records to include the forknum.

  
commit   : 609a63fd853e9924a46a4556605644cd40aafa19    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 2 May 2010 22:37:43 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 2 May 2010 22:37:43 +0000    

Click here for diff

  
  

Fix replay of XLOG_HEAP_NEWPAGE WAL records to pay attention to the forknum field of the WAL record. The previous coding always wrote to the main fork, resulting in data corruption if the page was meant to go into a non-default fork.

  
commit   : e55e6ecfe4e00ecb3f316b7b41d586ea2f12cd48    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 2 May 2010 22:28:05 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 2 May 2010 22:28:05 +0000    

Click here for diff

  
At present, the only operation that can produce such WAL records is  
ALTER TABLE/INDEX SET TABLESPACE when executed with archive_mode = on.  
Data corruption would be observed on standby slaves, and could occur on the  
master as well if a database crash and recovery occurred after committing  
the ALTER and before the next checkpoint.  Per report from Gordon Shannon.  
  
Back-patch to 8.4; the problem doesn't exist in earlier branches because  
we didn't have a concept of multiple relation forks then.  
  

Update standbycheck test output with new ERROR message changes. No changes to tests and no changes in accepted server behaviour.

  
commit   : 3a0939eda264ec153f0f5db88b7b7273a0b04046    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Sun, 2 May 2010 12:28:43 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Sun, 2 May 2010 12:28:43 +0000    

Click here for diff

  
  

Docs for standbycheck regression tests.

  
commit   : abeb17cdaef1a6f058cd8c0ebb8e37a8a73f558f    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Sun, 2 May 2010 12:22:40 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Sun, 2 May 2010 12:22:40 +0000    

Click here for diff

  
  

Mention that max_standby_delay has units of milliseconds. Units are mentioned for all other parameters where the default is expressed in a different unit.

  
commit   : 98bbab47bcff25734660505066bffb612bb99eb6    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Sun, 2 May 2010 11:32:53 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Sun, 2 May 2010 11:32:53 +0000    

Click here for diff

  
  

Clean up some awkward, inaccurate, and inefficient processing around MaxStandbyDelay. Use the GUC units mechanism for the value, and choose more appropriate timestamp functions for performing tests with it. Make the ps_activity manipulation in ResolveRecoveryConflictWithVirtualXIDs have behavior similar to ps_activity code elsewhere, notably not updating the display when update_process_title is off and not truncating the display contents at an arbitrarily-chosen length. Improve the docs to be explicit about what MaxStandbyDelay actually measures, viz the difference between primary and standby servers’ clocks, and the possible hazards if their clocks aren’t in sync.

  
commit   : f9ed327f760e7794faecfda54b19515a95ba901d    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 2 May 2010 02:10:33 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 2 May 2010 02:10:33 +0000    

Click here for diff

  
  

Add code to InternalIpcMemoryCreate() to handle the case where shmget() returns EINVAL for an existing shared memory segment. Although it’s not terribly sensible, that behavior does meet the POSIX spec because EINVAL is the appropriate error code when the existing segment is smaller than the requested size, and the spec explicitly disclaims any particular ordering of error checks. Moreover, it does in fact happen on OS X and probably other BSD-derived kernels. (We were able to talk NetBSD into changing their code, but purging that behavior from the wild completely seems unlikely to happen.) We need to distinguish collision with a pre-existing segment from invalid size request in order to behave sensibly, so it’s worth some extra code here to get it right. Per report from Gavin Kistner and subsequent investigation.

  
commit   : 154163238e933988a9876aac88848258c2da7380    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 1 May 2010 22:46:30 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 1 May 2010 22:46:30 +0000    

Click here for diff

  
Back-patch to all supported versions, since any of them could get used  
with a kernel having the debatable behavior.  
  

Install hack workaround for failure of ‘make all’ in VPATH builds. It appears that gmake gets confused if postgres.sgml is not present in the working directory, and instantiates some default rule or other that would let postgres.sgml be built from postgres.xml. I haven’t been able to track down exactly where that’s coming from, but the problem can be dodged by specifying srcdir explicitly in the rule for postgres.xml. Per report from Vladimir Kokovic.

  
commit   : 170456c9d86688ee79363699aa51331f60e8b59e    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 1 May 2010 21:31:17 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 1 May 2010 21:31:17 +0000    

Click here for diff

  
  

Adjust postgres.xml rule so that make will notice a failure exit from osx. The previous coding had it in a pipe, which on most shells won’t report the error. Per experimentation with a bug report from Vladimir Kokovic. This doesn’t actually fix his problem, but it does explain why make didn’t report that there was a problem.

  
commit   : f856fad80b0d8607e20774d7326f76f27ac04cec    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 1 May 2010 18:15:07 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 1 May 2010 18:15:07 +0000    

Click here for diff

  
  

  
commit   : f5c23ca20811c62c87c35c0b45f74572b0b77955    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 1 May 2010 17:04:38 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 1 May 2010 17:04:38 +0000    

Click here for diff

  
  

Update our information about OS X shared memory configuration: it’s now possible to set most of the SHM kernel parameters without a reboot. Also, reorder the paragraph to explain the modern configuration method first. There are probably not too many people who still care about how to do it on OS X 10.3 or older.

  
commit   : 05f030837ce2b84cce6511dfba03f0f921866580    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 30 Apr 2010 22:24:50 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 30 Apr 2010 22:24:50 +0000    

Click here for diff

  
  

Improve COPY documentation to clarify that it doesn’t copy data to or from child tables. Per gripe from Jaime Casanova.

  
commit   : 854b5eb510f09ce55a6abd8ac3caf72b2eb36a5c    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 30 Apr 2010 19:49:06 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 30 Apr 2010 19:49:06 +0000    

Click here for diff

  
  

Fix multiple memory leaks in PLy_spi_execute_fetch_result: it would leak memory if the result had zero rows, and also if there was any sort of error while converting the result tuples into Python data. Reported and partially fixed by Andres Freund.

  
commit   : b1bc2f042523e1d192a924484d6a83b7cb6d7465    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 30 Apr 2010 19:15:45 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 30 Apr 2010 19:15:45 +0000    

Click here for diff

  
Back-patch to all supported versions.  Note: I haven't tested the 7.4 fix.  
7.4's configure check for python is so obsolete it doesn't work on my  
current machines :-(.  The logic change is pretty straightforward though.  
  

Fix a couple of places where the result of fgets() wasn’t checked. This is mostly to suppress compiler warnings, although in principle the cases could result in undesirable behavior.

  
commit   : 09543580471182ecab3b73c982485397edabbce2    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 30 Apr 2010 17:09:13 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 30 Apr 2010 17:09:13 +0000    

Click here for diff

  
Martin Pitt  
  

Fix handling of b-tree reuse WAL records when hot standby is disabled, and add missing code in btree_desc for them. This fixes the bug with “tree_redo: unknown op code 208” error reported by Jaime Casanova.

  
commit   : 21992dd4f5165692dcf039b3ed192a759dcc4f2c    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Fri, 30 Apr 2010 06:34:29 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Fri, 30 Apr 2010 06:34:29 +0000    

Click here for diff

  
  

tag for 9.0beta1

  
commit   : f9d9b2b34a094b94fda39231c16ab5f2e6bfbbe4    
  
author   : Marc G. Fournier <scrappy@hub.org>    
date     : Fri, 30 Apr 2010 03:16:58 +0000    
  
committer: Marc G. Fournier <scrappy@hub.org>    
date     : Fri, 30 Apr 2010 03:16:58 +0000    

Click here for diff

  
  

Documentation fix: CREATE TRIGGER ‘WHERE’ -> ‘WHEN’

  
commit   : 616a3b2df4ecf064b8a40929cd0a594f119bb61c    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 29 Apr 2010 22:03:41 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 29 Apr 2010 22:03:41 +0000    

Click here for diff

  
Selena Deckelmann  
  

Adjust error checks in pg_start_backup and pg_stop_backup to make it possible to perform a backup without archive_mode being enabled. This gives up some user-error protection in order to improve usefulness for streaming-replication scenarios. Per discussion.

  
commit   : 69f7a4d8e322f7f93d1c6d91c7eabd9d5925a401    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 29 Apr 2010 21:49:03 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 29 Apr 2010 21:49:03 +0000    

Click here for diff

  
  

Rename the parameter recovery_connections to hot_standby, to reduce possible confusion with streaming-replication settings. Also, change its default value to “off”, because of concern about executing new and poorly-tested code during ordinary non-replicating operation. Per discussion.

  
commit   : f0488bd57c3745b5dbed80e884ee5452e77314c9    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 29 Apr 2010 21:36:19 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 29 Apr 2010 21:36:19 +0000    

Click here for diff

  
In passing do some minor editing of related documentation.  
  

Doc fix – last major item should not be a bullet.

  
commit   : 72e316e4c832d6388414b5c7e14751c423e39a08    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 29 Apr 2010 21:02:50 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 29 Apr 2010 21:02:50 +0000    

Click here for diff

  
  

Move alpha release notes into a separate file; re-align sgml tags.

  
commit   : fbb68396bb51ee26a6e2b476019506c0acba1063    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 29 Apr 2010 20:54:28 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 29 Apr 2010 20:54:28 +0000    

Click here for diff

  
  

Update 9.0 release notes to current; add major items and introductory text.

  
commit   : ca2c61caacdcc0f590a27bb15bf93d6685e7ab46    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 29 Apr 2010 20:43:22 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 29 Apr 2010 20:43:22 +0000    

Click here for diff

  
  

Install a workaround for ‘TeX capacity exceeded’ problem when building PDF output for recent versions of the documentation. There is probably a better answer out there somewhere, but we need something now so we can build beta releases.

  
commit   : a5ec86a7c787832d28d5e50400ec96a5190f2555    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 29 Apr 2010 16:32:41 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 29 Apr 2010 16:32:41 +0000    

Click here for diff

  
  

Fix typo, per Thom Brown.

  
commit   : fa171dd8e5dcf364b8b3ffc90b8488111e990117    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 28 Apr 2010 21:23:29 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 28 Apr 2010 21:23:29 +0000    

Click here for diff

  
  

Modify information_schema._pg_keysequal() to avoid search path risk when contrib/intarray is loaded. Per bug #5417 from Kenaniah Cerny.

  
commit   : f4ec2fabbff3fd603f17c3750e0e3a17ef685366    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 28 Apr 2010 21:18:07 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 28 Apr 2010 21:18:07 +0000    

Click here for diff

  
Not forcing initdb since backend doesn't directly depend on this,  
and few people have run into it.  
  

Minor editorializing on pg_controldata and pg_resetxlog: adjust some message wording, deal explicitly with some fields that were being silently left zero.

  
commit   : c80a85e3cd4136320ad6e1087ecbe7592edf4e6b    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 28 Apr 2010 19:38:49 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 28 Apr 2010 19:38:49 +0000    

Click here for diff

  
  

pg_controldata needs #define FRONTEND, same as pg_resetxlog. Per buildfarm results from dawn_bat.

  
commit   : 82e38abaf12b041a8679af61df6513eaa4299505    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 28 Apr 2010 17:35:35 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 28 Apr 2010 17:35:35 +0000    

Click here for diff

  
  

Modify ShmemInitStruct and ShmemInitHash to throw errors internally, rather than returning NULL for some-but-not-all failures as they used to. Remove now-redundant tests for NULL from call sites.

  
commit   : 77acab75dfe2e4741c25c0cf550266caef1eebd2    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 28 Apr 2010 16:54:16 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 28 Apr 2010 16:54:16 +0000    

Click here for diff

  
We had to do something about this because many call sites were failing to  
check for NULL; and changing it like this seems a lot more useful and  
mistake-proof than adding checks to the call sites without them.  
  

Make pg_stats example query result a bit less wide, and add comment about pg_stats.inherited

  
commit   : 5f70a04c56b69fff0f356abae3091eaa54038a5b    
  
author   : Alvaro Herrera <alvherre@alvh.no-ip.org>    
date     : Wed, 28 Apr 2010 16:48:21 +0000    
  
committer: Alvaro Herrera <alvherre@alvh.no-ip.org>    
date     : Wed, 28 Apr 2010 16:48:21 +0000    

Click here for diff

  
  

Introduce wal_level GUC to explicitly control if information needed for archival or hot standby should be WAL-logged, instead of deducing that from other options like archive_mode. This replaces recovery_connections GUC in the primary, where it now has no effect, but it’s still used in the standby to enable/disable hot standby.

  
commit   : 9b8a73326e99821caf33c36c081cb307e17422d4    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Wed, 28 Apr 2010 16:10:43 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Wed, 28 Apr 2010 16:10:43 +0000    

Click here for diff

  
Remove the WAL-logging of "unlogged operations", like creating an index  
without WAL-logging and fsyncing it at the end. Instead, we keep a copy of  
the wal_mode setting and the settings that affect how much shared memory a  
hot standby server needs to track master transactions (max_connections,  
max_prepared_xacts, max_locks_per_xact) in pg_control. Whenever the settings  
change, at server restart, write a WAL record noting the new settings and  
update pg_control. This allows us to notice the change in those settings in  
the standby at the right moment, they used to be included in checkpoint  
records, but that meant that a changed value was not reflected in the  
standby until the first checkpoint after the change.  
  
Bump PG_CONTROL_VERSION and XLOG_PAGE_MAGIC. Whack XLOG_PAGE_MAGIC back to  
the sequence it used to follow, before hot standby and subsequent patches  
changed it to 0x9003.  
  

Fix contrib/tsearch2 expected results to match recent changes in URL parsing.

  
commit   : a2de4826e912057a9a3c44e6c4c204dfa3b753a9    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 28 Apr 2010 15:07:59 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 28 Apr 2010 15:07:59 +0000    

Click here for diff

  
  

Fix typo that had the code check the same thing twice.

  
commit   : 81fb51732e97decb32f94ca46319440e612c9dfb    
  
author   : Magnus Hagander <magnus@hagander.net>    
date     : Wed, 28 Apr 2010 13:46:23 +0000    
  
committer: Magnus Hagander <magnus@hagander.net>    
date     : Wed, 28 Apr 2010 13:46:23 +0000    

Click here for diff

  
Fujii Masao  
  

Add recovery.conf parameters to the documentation index, per suggestion by Fujii Masao.

  
commit   : 8f9fe24b105d31a80a506cd7bfa963a43ee6c916    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Wed, 28 Apr 2010 07:34:11 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Wed, 28 Apr 2010 07:34:11 +0000    

Click here for diff

  
  

Modify the built-in text search parser to handle URLs more nearly according to RFC 3986. In particular, these characters now terminate the path part of a URL: ‘“’, ‘<‘, ‘>’, ‘\‘, ‘^’, ‘`‘, ‘{’, ‘|’, ‘}’. The previous behavior was inconsistent and depended on whether a “?” was present in the path. Per gripe from Donald Fraser and spec research by Kevin Grittner.

  
commit   : 2c265adea3129c917296b46a82786d67988ece2c    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 28 Apr 2010 02:04:16 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 28 Apr 2010 02:04:16 +0000    

Click here for diff

  
This is a pre-existing bug, but not back-patching since the risks of  
breaking existing applications seem to outweigh the benefits.  
  

Fix stupid typo in refnameRangeTblEntry() — mea maxima culpa. Per report from Josh.

  
commit   : d64b110a64c407ca8f4b3d885a62c05b51711d14    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 28 Apr 2010 00:46:33 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 28 Apr 2010 00:46:33 +0000    

Click here for diff

  
  

Add CP949 as an alias for UHC encoding. pg_get_encoding_from_locale() with kor locale on Windows can use the path.

  
commit   : 7780c4124b57cffc106936af96916ade78059f86    
  
author   : Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Wed, 28 Apr 2010 00:29:16 +0000    
  
committer: Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Wed, 28 Apr 2010 00:29:16 +0000    

Click here for diff

  
Reported by Hiroshi Inoue.  
  

Replace the KnownAssignedXids hash table with a sorted-array data structure, and be more tense about the locking requirements for it, to improve performance in Hot Standby mode. In passing fix a few bugs and improve a number of comments in the existing HS code.

  
commit   : 2871b4618af1acc85665eec0912c48f8341504c4    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 28 Apr 2010 00:09:05 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 28 Apr 2010 00:09:05 +0000    

Click here for diff

  
Simon Riggs, with some editorialization by Tom  
  

Reformat code examples in plpgsql docs for better readability in PDF output

  
commit   : 871e73bb276506ca591083f0b343951ba0db6989    
  
author   : Alvaro Herrera <alvherre@alvh.no-ip.org>    
date     : Tue, 27 Apr 2010 14:32:40 +0000    
  
committer: Alvaro Herrera <alvherre@alvh.no-ip.org>    
date     : Tue, 27 Apr 2010 14:32:40 +0000    

Click here for diff

  
Erik Rijkers  
  

If a base backup is cancelled by server shutdown or crash, throw an error in WAL recovery when it sees the shutdown checkpoint record. It’s more user-friendly to find out about it at that point than at the end of recovery, and you’re not left wondering why your hot standby server never opens up for read-only connections.

  
commit   : 3efba16d569ef00f8db20eb7c1f3ac80140e5902    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Tue, 27 Apr 2010 09:25:18 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Tue, 27 Apr 2010 09:25:18 +0000    

Click here for diff

  
  

Update documentation to match pg_stat_activity changes.

  
commit   : 3456cf1831feacd066037856cba044cce3935e54    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 26 Apr 2010 19:56:55 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 26 Apr 2010 19:56:55 +0000    

Click here for diff

  
  

Document that pgpool can be used with master/slave servers to avoid problems with non-deterministic functions.

  
commit   : 132c40424abe3bb8acd551c52c996e15969717b0    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Mon, 26 Apr 2010 19:09:25 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Mon, 26 Apr 2010 19:09:25 +0000    

Click here for diff

  
  

Add missing newlines in WPARSER_TRACE output.

  
commit   : 8f0ab2298fc344a2c5bf425880b420d24f5cab92    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 26 Apr 2010 17:10:18 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 26 Apr 2010 17:10:18 +0000    

Click here for diff

  
  

Reorder pg_stat_activity columns to be more consistent, using layout suggested by Tom Lane.

  
commit   : 75c57381775e8224d78930622ef25776122a46a3    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Mon, 26 Apr 2010 14:22:37 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Mon, 26 Apr 2010 14:22:37 +0000    

Click here for diff

  
Catalog version bumped due to system view change.  
  

Add comments about why we set LC_CTYPE in WIN32 for time when we don’t actually access it, per information from Hiroshi.

  
commit   : 7eb6e6b48adfe89861923e83aee9f697c50275b0    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Mon, 26 Apr 2010 14:17:52 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Mon, 26 Apr 2010 14:17:52 +0000    

Click here for diff

  
  

When we’re restricting who can connect, don’t allow new walsenders.

  
commit   : ab93cd9b053446dfb64f66bfac97787eb74c1172    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Mon, 26 Apr 2010 10:52:00 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Mon, 26 Apr 2010 10:52:00 +0000    

Click here for diff

  
Normal superuser processes are allowed to connect even when the database  
system is shutting down, or when fewer than superuser_reserved_connection  
slots remain.  This is intended to make sure an administrator can log in  
and troubleshoot, so don't extend these same courtesies to users connecting  
for replication.  
  

Add C comments for recent to_char(‘L’) fix for Win32.

  
commit   : 22da73198f87e04dc0f978dd2507ebf5c7ae6ee8    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sat, 24 Apr 2010 22:54:56 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sat, 24 Apr 2010 22:54:56 +0000    

Click here for diff

  
  

Patch revoked because of objections.

  
commit   : 90e04bab39c59aa441a8a5e94022c6074e8cd2d6    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Sat, 24 Apr 2010 16:20:32 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Sat, 24 Apr 2010 16:20:32 +0000    

Click here for diff

  
  

Fix various instances of “the the”.

  
commit   : 33980a0640e9b495fe85a99c16c6b4806e41325a    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Fri, 23 Apr 2010 23:21:44 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Fri, 23 Apr 2010 23:21:44 +0000    

Click here for diff

  
Two of these were pointed out by Erik Rijkers; the rest I found.  
  

Add missing optimizer hooks for function cost and number of rows. Closely follow design of other optimizer hooks: if hook exists retrieve value from plugin; if still not set then get from cache.

  
commit   : 473af3973710b9e2f4e945d8290adae8de9696cc    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Fri, 23 Apr 2010 22:23:39 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Fri, 23 Apr 2010 22:23:39 +0000    

Click here for diff

  
  

Previous patch revoked following objections.

  
commit   : 491d1ea5b3605809ec1103e939b3324acc9a2516    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Fri, 23 Apr 2010 20:21:31 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Fri, 23 Apr 2010 20:21:31 +0000    

Click here for diff

  
  

Make CheckRequiredParameterValues() depend upon correct combination of parameters. Fix bug report by Robert Haas that error message and hint was incorrect if wrong mode parameters specified on master. Internal changes only. Proposals for parameter simplification on master/primary still under way.

  
commit   : 6ca23b1a29497d496266e2ad47954d4fbc98065d    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Fri, 23 Apr 2010 19:57:19 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Fri, 23 Apr 2010 19:57:19 +0000    

Click here for diff

  
  

Fix message punctuation

  
commit   : 89a9db2940f0cc7393f770bc25a36bca54399de8    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 22 Apr 2010 19:40:03 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 22 Apr 2010 19:40:03 +0000    

Click here for diff

  
  

Optimise btree delete processing when no active backends. Clarify comments, downgrade a message to DEBUG and remove some debug counters. Direct from ideas by Heikki Linnakangas.

  
commit   : a2555571fb8e370972763d5d5092a0a4e4e6a30b    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Thu, 22 Apr 2010 08:04:25 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Thu, 22 Apr 2010 08:04:25 +0000    

Click here for diff

  
  

Further reductions in Hot Standby conflict processing. These come from the realistion that HEAP2_CLEAN records don’t always remove user visible data, so conflict processing for them can be skipped. Confirm validity using Assert checks, clarify circumstances under which we log heap_cleanup_info records. Tuning arises from bug fixing of earlier safety check failures.

  
commit   : 781ec6b75d6f4e89f103f44a31465383ac13c917    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Thu, 22 Apr 2010 02:15:45 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Thu, 22 Apr 2010 02:15:45 +0000    

Click here for diff

  
  

Fix encoding issue when lc_monetary or lc_numeric are different encoding from lc_ctype, that could happen on Windows. We need to change lc_ctype together with lc_monetary or lc_numeric, and convert strings in lconv from lc_ctype encoding to the database encoding.

  
commit   : 95a777c612c6dcebe2f17c57c35f7e7c93714484    
  
author   : Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Thu, 22 Apr 2010 01:55:52 +0000    
  
committer: Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Thu, 22 Apr 2010 01:55:52 +0000    

Click here for diff

  
The bug reported by Mikko, original patch by Hiroshi Inoue,  
with changes by Bruce and me.  
  

Enforce superuser permissions checks during ALTER ROLE/DATABASE SET, rather than during define_custom_variable(). This entails rejecting an ALTER command if the target variable doesn’t have a known (non-placeholder) definition, unless the calling user is superuser. When the variable is known, we can correctly apply the rule that only superusers can issue ALTER for SUSET parameters. This allows define_custom_variable to apply ALTER’s values for SUSET parameters at module load time, secure in the knowledge that only a superuser could have set the ALTER value. This change fixes a longstanding gotcha in the usage of SUSET-level custom parameters; which is a good thing to fix now that plpgsql defines such a parameter.

  
commit   : a6dcd19a2a5064d753c1d5aa756a2d50cf05842d    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 21 Apr 2010 20:54:19 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 21 Apr 2010 20:54:19 +0000    

Click here for diff

  
  

Only send cleanup_info messages if VACUUM removes any tuples. There is no other purpose for this message type than to report the latestRemovedXid of removed tuples, prior to index scans. Removes overlooked path for sending invalid latestRemovedXid. Fixes buildfarm failure on centaur.

  
commit   : f6e092701c6ac7bb98ed88a769daa13d3a1755d9    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Wed, 21 Apr 2010 19:53:24 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Wed, 21 Apr 2010 19:53:24 +0000    

Click here for diff

  
  

Relax locking during GetCurrentVirtualXIDs(). Earlier improvements to handling of btree delete records mean that all snapshot conflicts on standby now have a valid, useful latestRemovedXid. Our earlier approach using LW_EXCLUSIVE was useful when we didnt always have a valid value, though is no longer useful or necessary. Asserts added to code path to prove and ensure this is the case. This will reduce contention and improve performance of larger Hot Standby servers.

  
commit   : 0192abc4d7792117d53c6c894eeeaa83b02802c5    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Wed, 21 Apr 2010 19:08:14 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Wed, 21 Apr 2010 19:08:14 +0000    

Click here for diff

  
  

Fix oversight in collecting values for cleanup_info records. vacuum_log_cleanup_info() now generates log records with a valid latestRemovedXid set in all cases. Also be careful not to zero the value when we do a round of vacuuming part-way through lazy_scan_heap(). Incidentally, this reduces frequency of conflicts in Hot Standby.

  
commit   : bc2b85d90481c317c7d4efcf5dfc8c134f6105f9    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Wed, 21 Apr 2010 17:20:56 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Wed, 21 Apr 2010 17:20:56 +0000    

Click here for diff

  
  

Fix pg_hba.conf matching so that replication connections only match records with database = replication. The previous coding would allow them to match ordinary records too, but that seems like a recipe for security breaches. Improve the messages associated with no-such-pg_hba.conf entry to report replication connections as such, since that’s now a critical aspect of whether the connection matches. Make some cursory improvements in the related documentation, too.

  
commit   : a2c3931a244b67115a0eac1ee5fde9eb7cb4e42c    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 21 Apr 2010 03:32:53 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 21 Apr 2010 03:32:53 +0000    

Click here for diff

  
  

Move the check for whether walreceiver has authenticated as a superuser from walsender.c, where it didn’t really belong, to postinit.c where it does belong (and is essentially free, too).

  
commit   : a3c6d105752c28dbd19d0558733a2157e6ab55e0    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 21 Apr 2010 00:51:57 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 21 Apr 2010 00:51:57 +0000    

Click here for diff

  
  

Arrange for client authentication to occur before we select a specific database to connect to. This is necessary for the walsender code to work properly (it was previously using an untenable assumption that template1 would always be available to connect to). This also gets rid of a small security shortcoming that was introduced in the original patch to eliminate the flat authentication files: before, you could find out whether or not the requested database existed even if you couldn’t pass the authentication checks.

  
commit   : ea46000a40cf583401504e095ca1a49f57fa0227    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 20 Apr 2010 23:48:47 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 20 Apr 2010 23:48:47 +0000    

Click here for diff

  
The changes needed to support this are mainly just to treat pg_authid and  
pg_auth_members as nailed relations, so that we can read them without having  
to be able to locate real pg_class entries for them.  This mechanism was  
already debugged for pg_database, but we hadn't recognized the value of  
applying it to those catalogs too.  
  
Since the current code doesn't have support for accessing toast tables before  
we've brought up all of the relcache, remove pg_authid's toast table to ensure  
that no one can store an out-of-line toasted value of rolpassword.  The case  
seems quite unlikely to occur in practice, and was effectively unsupported  
anyway in the old "flatfiles" implementation.  
  
Update genbki.pl to actually implement the same rules as bootstrap.c does for  
not-nullability of catalog columns.  The previous coding was a bit cheesy but  
worked all right for the previous set of bootstrap catalogs.  It does not work  
for pg_authid, where rolvaliduntil needs to be nullable.  
  
Initdb forced due to minor catalog changes (mainly the toast table removal).  
  

Fix code that doesn’t work on machines with strict alignment requirements: must use memcpy here rather than struct assignment.

  
commit   : 7de2dfccc5868d8ba1c00a6bf7de67d9d50bc7bc    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 20 Apr 2010 22:55:03 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 20 Apr 2010 22:55:03 +0000    

Click here for diff

  
In passing, rearrange some randomly-ordered declarations to be a tad less  
random.  
  

Rename standby_keep_segments to wal_keep_segments.

  
commit   : 481cb5d9b506069a6fbe2a7069b576e8eb2f2cde    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Tue, 20 Apr 2010 11:15:06 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Tue, 20 Apr 2010 11:15:06 +0000    

Click here for diff

  
Also, make the name of the GUC and the name of the backing variable match.  
Alnong the way, clean up a couple of slight typographical errors in the  
related docs.  
  

Move the responsibility for calling StartupXLOG into InitPostgres, for those process types that go through InitPostgres; in particular, bootstrap and standalone-backend cases. This ensures that we have set up a PGPROC and done some other basic initialization steps (corresponding to the if (IsUnderPostmaster) block in AuxiliaryProcessMain) before we attempt to run WAL recovery in a standalone backend. As was discovered last September, this is necessary for some corner-case code paths during WAL recovery, particularly end-of-WAL cleanup.

  
commit   : c670410e7fe59dffb0227ed1dd0f532013993859    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 20 Apr 2010 01:38:52 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 20 Apr 2010 01:38:52 +0000    

Click here for diff

  
Moving the bootstrap case here too is not necessary for correctness, but it  
seems like a good idea since it reduces the number of distinct code paths.  
  

Update docs as to when WAL logging can be skipped.

  
commit   : ee7769bb7649e0f990179f9ed56e60c031542077    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Tue, 20 Apr 2010 00:26:06 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Tue, 20 Apr 2010 00:26:06 +0000    

Click here for diff

  
In 8.4 and prior, WAL-logging could potentially be skipped whenever  
archive_mode=off.  With streaming replication, this is now true only  
if max_wal_senders=0.  
  
Fujii Masao, with light copyediting by me  
  

Add new message for explicit rejection by pg_hba.conf. Implicit rejection retains same message as before.

  
commit   : cfac702223a904fb7db55db2084ac68611fd95dc    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Mon, 19 Apr 2010 19:02:18 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Mon, 19 Apr 2010 19:02:18 +0000    

Click here for diff

  
  

Check RecoveryInProgress() while holding ProcArrayLock during snapshots. This prevents a rare, yet possible race condition at the exact moment of transition from recovery to normal running.

  
commit   : 7bc76d51fbac35950ae5e5d05535bdc33f93b42c    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Mon, 19 Apr 2010 18:03:38 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Mon, 19 Apr 2010 18:03:38 +0000    

Click here for diff

  
  

Fix uninitialized local variables. Not sure why gcc doesn’t complain about these — maybe because they’re effectively unused? MSVC does complain though, per buildfarm.

  
commit   : 39bf46384b89b89d3b51bb3cd968d476c1361f95    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 19 Apr 2010 17:54:48 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 19 Apr 2010 17:54:48 +0000    

Click here for diff

  
  

Add wrapper function libpqrcv_PQexec() in the walreceiver that uses async libpq to send queries, making the waiting for responses interruptible on platforms where PQexec() can’t normally be interrupted by signals, such as win32.

  
commit   : 03a571a4cf26e06ff504e5b38a9432a003008c19    
  
author   : Magnus Hagander <magnus@hagander.net>    
date     : Mon, 19 Apr 2010 14:10:45 +0000    
  
committer: Magnus Hagander <magnus@hagander.net>    
date     : Mon, 19 Apr 2010 14:10:45 +0000    

Click here for diff

  
Fujii Masao and Magnus Hagander  
  

Add an ‘enable_material’ GUC.

  
commit   : 5b89ef384c7719478bb08b0c771dcbfdc51d507e    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Mon, 19 Apr 2010 00:55:26 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Mon, 19 Apr 2010 00:55:26 +0000    

Click here for diff

  
The logic for determining whether to materialize has been significantly  
overhauled for 9.0.  In case there should be any doubt about whether  
materialization is a win in any particular case, this should provide a  
convenient way of seeing what happens without it; but even with enable_material  
turned off, we still materialize in cases where it is required for  
correctness.  
  
Thanks to Tom Lane for the review.  
  

Fix bogus order of cleanup steps in plperl_inline_handler. Per Alex Hunsaker

  
commit   : 9287567effc81d3892c2a9889dbf99982c6cce58    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 18 Apr 2010 19:16:06 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 18 Apr 2010 19:16:06 +0000    

Click here for diff

  
  

Improve sequence and sense of messages from pg_stop_backup(). Now doesn’t report it is waiting until it actually is waiting, plus message doesn’t appear until at least 5 seconds wait, so we avoid reporting the wait before we’ve given the archiver a reasonable time to wake up and archive the file we just created earlier in the function. Also add new unconditional message to confirm safe completion. Now a normal, healthy execution does not report waiting at all, just safe completion.

  
commit   : d38603bd974f2befd1f0599a2392849916b2102c    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Sun, 18 Apr 2010 18:44:53 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Sun, 18 Apr 2010 18:44:53 +0000    

Click here for diff

  
  

Remove some additional changes in previous commit that belong elsewhere.

  
commit   : 2847de9df2c8f10b0f44170c373559164d5cef6f    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Sun, 18 Apr 2010 18:17:12 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Sun, 18 Apr 2010 18:17:12 +0000    

Click here for diff

  
  

Tune GetSnapshotData() during Hot Standby by avoiding loop through normal backends. Makes code clearer also, since we avoid various Assert()s. Performance of snapshots taken during recovery no longer depends upon number of read-only backends.

  
commit   : 21d6a6a12850724b53ebc240080a90597b3b2580    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Sun, 18 Apr 2010 18:06:07 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Sun, 18 Apr 2010 18:06:07 +0000    

Click here for diff

  
  

Provide better guidance for adjusting shared_buffers.

  
commit   : 7b130fbc503a1bfabf58c0c67cf8461e33fcc680    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Fri, 16 Apr 2010 21:46:07 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Fri, 16 Apr 2010 21:46:07 +0000    

Click here for diff

  
  

On Windows, syslogger runs in two threads. The main thread processes config reload and rotation signals, and a helper thread reads messages from the pipe and writes them to the log file. However, server code isn’t generally thread-safe, so if both try to do e.g palloc()/pfree() at the same time, bad things will happen. To fix that, use a critical section (which is like a mutex) to enforce that only one the threads are active at a time.

  
commit   : 961ad3fdd95f621e34a1680e42ff859f0bcb5682    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Fri, 16 Apr 2010 09:51:49 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Fri, 16 Apr 2010 09:51:49 +0000    

Click here for diff

  
  

In standby mode, suppress repeated LOG messages about a corrupt record, which just indicates that we’ve reached the end of valid WAL found in the standby.

  
commit   : 78974cfb9ba208516a4824466b6053cc48839ce2    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Fri, 16 Apr 2010 08:58:16 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Fri, 16 Apr 2010 08:58:16 +0000    

Click here for diff

  
  

Document that autovacuum cannot vacuum or analyze temporary tables.

  
commit   : b4fd1e246e6edf08b2b7ce4d5af7704ce0c75a26    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Fri, 16 Apr 2010 02:22:33 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Fri, 16 Apr 2010 02:22:33 +0000    

Click here for diff

  
  

Improve punctuation

  
commit   : b6c586a36c18a58eb804f47213b29f71115ea4df    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 15 Apr 2010 20:56:13 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 15 Apr 2010 20:56:13 +0000    

Click here for diff

  
  

IP port -> TCP port

  
commit   : edde4169b5667d25a50d0afb55a1ac7161592f28    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 15 Apr 2010 20:48:22 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 15 Apr 2010 20:48:22 +0000    

Click here for diff

  
backpatched to 8.1, where this first appeared  
  

Improve message style for messages associated with not being able to identify the system time zone setting. Per recent discussion.

  
commit   : 6ead7828b040ed0442bf0ddb75e6f1b0ca66b291    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 15 Apr 2010 18:46:45 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 15 Apr 2010 18:46:45 +0000    

Click here for diff

  
  

Fix typo, spotted by Erik Rijkers.

  
commit   : 95eaea4c274615d7813149caa877db0dd56b152e    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Thu, 15 Apr 2010 16:25:13 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Thu, 15 Apr 2010 16:25:13 +0000    

Click here for diff

  
  

Add script to enumerate the timezones in the Windows registry and compare it with the list we have in pgtz.c, showing any differences.

  
commit   : 17056e054ece2ce5f19d9bee63a0b415b04cb1ae    
  
author   : Magnus Hagander <magnus@hagander.net>    
date     : Thu, 15 Apr 2010 11:00:45 +0000    
  
committer: Magnus Hagander <magnus@hagander.net>    
date     : Thu, 15 Apr 2010 11:00:45 +0000    

Click here for diff

  
  

Update XML features list

  
commit   : 7a7663f61a49472b4a4f48a8c2373dee4da8b54c    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 15 Apr 2010 05:45:37 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 15 Apr 2010 05:45:37 +0000    

Click here for diff

  
  

Doc change: effect -> affect, per Robert Haas

  
commit   : ec4b9bcc3dbb2d9a2811ec77200a911c271edcdc    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 15 Apr 2010 03:05:59 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 15 Apr 2010 03:05:59 +0000    

Click here for diff

  
  

Fix plpgsql’s exec_eval_expr() to ensure it returns a sane type OID even when the expression is a query that returns no rows.

  
commit   : f7c5ff3d6d003a33fb12d77cc4057af6e8279c84    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 14 Apr 2010 23:52:10 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 14 Apr 2010 23:52:10 +0000    

Click here for diff

  
So far as I can tell, the only caller that actually fails when a garbage  
OID is returned is exec_stmt_case(), which is new in 8.4 --- in all other  
cases, we might make a useless trip through casting logic, but we won't  
fail since the isnull flag will be set.  Hence, backpatch only to 8.4,  
just in case there are apps out there that aren't expecting an error to  
be thrown if the query returns more or less than one column.  (Which seems  
unlikely, since the error would be thrown if the query ever did return a  
row; but it's possible there's some never-exercised code out there.)  
  
Per report from Mario Splivalo.  
  

Fix a problem introduced by my patch of 2010-01-12 that revised the way relcache reload works. In the patched code, a relcache entry in process of being rebuilt doesn’t get unhooked from the relcache hash table; which means that if a cache flush occurs due to sinval queue overrun while we’re rebuilding it, the entry could get blown away by RelationCacheInvalidate, resulting in crash or misbehavior. Fix by ensuring that an entry being rebuilt has positive refcount, so it won’t be seen as a target for removal if a cache flush occurs. (This will mean that the entry gets rebuilt twice in such a scenario, but that’s okay.) It appears that the problem can only arise within a transaction that has previously reassigned the relfilenode of a pre-existing table, via TRUNCATE or a similar operation. Per bug #5412 from Rusty Conover.

  
commit   : 73981cb4512a57adcb2f90a9c3cebf5ab13cf0fe    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 14 Apr 2010 21:31:11 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 14 Apr 2010 21:31:11 +0000    

Click here for diff

  
Back-patch to 8.2, same as the patch that introduced the problem.  
I think that the failure can't actually occur in 8.2, since it lacks the  
rd_newRelfilenodeSubid optimization, but let's make it work like the later  
branches anyway.  
  
Patch by Heikki, slightly editorialized on by me.  
  

Typo fix. Kevin Grittner.

  
commit   : 9d137a756fb7fd7e7f1b2f932009abd0aea4ff79    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Wed, 14 Apr 2010 20:17:26 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Wed, 14 Apr 2010 20:17:26 +0000    

Click here for diff

  
  

Fix minor typo in comment in xlog.c

  
commit   : 55d7556a4dddf0d0b545242a9f6887d2d5eeeb8f    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Wed, 14 Apr 2010 10:29:07 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Wed, 14 Apr 2010 10:29:07 +0000    

Click here for diff

  
  

Doc change: anyways -> anyway; Erik Rijkers

  
commit   : 0993d2943e01084e692d55c7ae918d05de46d9da    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 14 Apr 2010 02:36:04 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 14 Apr 2010 02:36:04 +0000    

Click here for diff

  
  

Allow Hot Standby to begin from a shutdown checkpoint.

  
commit   : 361bd1662eb1edbc24a9e26dd413e5f38c68fcdf    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Tue, 13 Apr 2010 14:17:46 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Tue, 13 Apr 2010 14:17:46 +0000    

Click here for diff

  
Patch by Simon Riggs & me  
  

Add “SSD” acronym mention for solid state drive mention.

  
commit   : ea9c103237ae9a42cc8e7acdf837df959c03c107    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 13 Apr 2010 14:15:25 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 13 Apr 2010 14:15:25 +0000    

Click here for diff

  
  

Fix typo.

  
commit   : 4f57c28da067d0df4a1a23e0d0bcd9aa14cd7c5e    
  
author   : Magnus Hagander <magnus@hagander.net>    
date     : Tue, 13 Apr 2010 08:19:12 +0000    
  
committer: Magnus Hagander <magnus@hagander.net>    
date     : Tue, 13 Apr 2010 08:19:12 +0000    

Click here for diff

  
Fujii Masao  
  

Only try to do a graceful disconnect if we’ve successfully loaded the shared library with the disconnect function in it. Fixes segmentation fault reported by Jeff Davis.

  
commit   : a95d15ff5dd58ed1d8889e2476748a3ea49a9bf1    
  
author   : Magnus Hagander <magnus@hagander.net>    
date     : Tue, 13 Apr 2010 08:16:09 +0000    
  
committer: Magnus Hagander <magnus@hagander.net>    
date     : Tue, 13 Apr 2010 08:16:09 +0000    

Click here for diff

  
Fujii Masao  
  

Remove example of archive_command from configure section; instead have users look at the referenced section for examples, per idea from Greg Smith.

  
commit   : 325e9cb3a06b6e35968ad8eee4a606c64519fac9    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Mon, 12 Apr 2010 22:09:58 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Mon, 12 Apr 2010 22:09:58 +0000    

Click here for diff

  
  

Spell out full archive directory specification in ‘test -f’ continuous archiving example, per suggestion from Greg Smith.

  
commit   : 202c655810ed5aa65822cb5b621b47a68550b426    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Mon, 12 Apr 2010 19:08:28 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Mon, 12 Apr 2010 19:08:28 +0000    

Click here for diff

  
  

Update the location of last removed WAL segment in shared memory only after actually removing one, so that if we can’t remove segments because WAL archiving is lagging behind, we don’t unnecessarily forbid streaming the old not-yet-archived segments that are still perfectly valid. Per suggestion from Fujii Masao.

  
commit   : 30556568f59607f04e712fcc48ffadccea3dfc78    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Mon, 12 Apr 2010 10:40:43 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Mon, 12 Apr 2010 10:40:43 +0000    

Click here for diff

  
  

Need to use the start pointer of a block we read from WAL segment in the calculation, not the end pointer, as pointed out by Fujii Masao.

  
commit   : 258174b4629e59469a1b73a02e552b7e7cf60e7c    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Mon, 12 Apr 2010 10:18:50 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Mon, 12 Apr 2010 10:18:50 +0000    

Click here for diff

  
  

Adjust paragraph about monitoring streaming replication, now that we have standby_keep_segments.

  
commit   : e76b4e0ddbdb1d1214bfa2b3d212b6d62671729d    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Mon, 12 Apr 2010 10:01:04 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Mon, 12 Apr 2010 10:01:04 +0000    

Click here for diff

  
  

Change the logic to decide when to delete old WAL segments, so that it doesn’t take into account how far the WAL senders are. This way a hung WAL sender doesn’t prevent old WAL segments from being recycled/removed in the primary, ultimately causing the disk to fill up. Instead add standby_keep_segments setting to control how many old WAL segments are kept in the primary. This also makes it more reliable to use streaming replication without WAL archiving, assuming that you set standby_keep_segments high enough.

  
commit   : e57cd7f0a1622138d5489477e0625741e036e940    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Mon, 12 Apr 2010 09:52:29 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Mon, 12 Apr 2010 09:52:29 +0000    

Click here for diff

  
  

Perltidy run over the MSVC build system files, to clean up code formatting and indentation styles.

  
commit   : 93f35f0955f4a9c7bda191f80e3b64ba509ce923    
  
author   : Magnus Hagander <magnus@hagander.net>    
date     : Fri, 9 Apr 2010 13:05:58 +0000    
  
committer: Magnus Hagander <magnus@hagander.net>    
date     : Fri, 9 Apr 2010 13:05:58 +0000    

Click here for diff

  
  

Clean up inconsistent commas

  
commit   : 7c606375650e867bc768f93c037b5c0f981565aa    
  
author   : Magnus Hagander <magnus@hagander.net>    
date     : Fri, 9 Apr 2010 11:49:51 +0000    
  
committer: Magnus Hagander <magnus@hagander.net>    
date     : Fri, 9 Apr 2010 11:49:51 +0000    

Click here for diff

  
  

Update list of Windows timezones we try to match localized names against to one that’s up to date with Windows 2003R2.

  
commit   : 6279192f4f99591199cca48a9d6579ca37218da8    
  
author   : Magnus Hagander <magnus@hagander.net>    
date     : Fri, 9 Apr 2010 11:46:06 +0000    
  
committer: Magnus Hagander <magnus@hagander.net>    
date     : Fri, 9 Apr 2010 11:46:06 +0000    

Click here for diff

  
  

Proceed to look for the next timezone when matching a localized Windows timezone name where the information in the registry is incomplete, instead of aborting.

  
commit   : 6efb081e10236187ac3877df13977631b7309a9b    
  
author   : Magnus Hagander <magnus@hagander.net>    
date     : Thu, 8 Apr 2010 11:25:58 +0000    
  
committer: Magnus Hagander <magnus@hagander.net>    
date     : Thu, 8 Apr 2010 11:25:58 +0000    

Click here for diff

  
This fixes cases when the registry information is incomplete for  
a timezone that is alphabetically before the one that is in use.  
  
Per report from Alexander Forschner  
  

Make smart shutdown work in combination with Hot Standby/Streaming Replication.

  
commit   : 1c850fa80727180d03bdb6a8c2f672eeda7fa818    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Thu, 8 Apr 2010 01:39:37 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Thu, 8 Apr 2010 01:39:37 +0000    

Click here for diff

  
At present, killing the startup process does not release any locks it holds,  
so we must wait to stop the startup and walreceiver processes until all  
read-only backends have exited.  Without this patch, the startup and  
walreceiver processes never exit, so the server gets permanently stuck in  
a half-shutdown state.  
  
Fujii Masao, with review, docs, and comment adjustments by me.  
  

Fix to_char YYY, YY, Y format codes so that FM zero-suppression really works, rather than only sort-of working as the previous attempt had left it. Clean up some unnecessary differences between the way these were coded and the way the YYYY case was coded. Update the regression test cases that proved that it wasn’t working.

  
commit   : 2c0870ff7ab9bda44f39dd332836d0928afb2297    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 7 Apr 2010 21:41:53 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 7 Apr 2010 21:41:53 +0000    

Click here for diff

  
  

Allow quotes to be escaped in recovery.conf, by doubling them. This patch also makes the parsing a little bit stricter, rejecting garbage after the parameter value and values with missing ending quotes, for example.

  
commit   : 0f11ed5886ce797d816177f5a915a22d85dd7400    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Wed, 7 Apr 2010 10:58:49 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Wed, 7 Apr 2010 10:58:49 +0000    

Click here for diff

  
  

Forbid using pg_xlogfile_name() and pg_xlogfile_name_offset() during recovery. We might want to relax this in the future, but ThisTimeLineID isn’t currently correct in backends during recovery, so the filename returned was wrong.

  
commit   : 370f770c15a4c08094298685887d8a512267c369    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Wed, 7 Apr 2010 06:12:52 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Wed, 7 Apr 2010 06:12:52 +0000    

Click here for diff

  
  

psql tab completion for ALTER DEFAULT PRIVILEGES and USER MAPPING FOR PUBLIC.

  
commit   : 9c40543c02f2acb4e7ffd6ad732fccc0f725ef80    
  
author   : Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Wed, 7 Apr 2010 03:51:19 +0000    
  
committer: Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Wed, 7 Apr 2010 03:51:19 +0000    

Click here for diff

  
  

Add cygwin version check before using cygwin_conv_path(), and use cygwin_conv_to_full_win32_path() in older versions.

  
commit   : 1a8957a6f7f17eaed848f5eb0f09de9c04355f97    
  
author   : Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Wed, 7 Apr 2010 03:48:51 +0000    
  
committer: Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Wed, 7 Apr 2010 03:48:51 +0000    

Click here for diff

  
  

Log the actual timezone name that we fail to look up the values for in case the registry data doesn’t follow the format we expect, to facilitate debugging.

  
commit   : 26eb0c72ab564d17e72f45b16d8ff42d357986b9    
  
author   : Magnus Hagander <magnus@hagander.net>    
date     : Tue, 6 Apr 2010 20:35:11 +0000    
  
committer: Magnus Hagander <magnus@hagander.net>    
date     : Tue, 6 Apr 2010 20:35:11 +0000    

Click here for diff

  
  

Further message changes when recovery.conf parameters missing.

  
commit   : 89c500815899b945997d08dc247fb95974b55162    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Tue, 6 Apr 2010 17:51:58 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Tue, 6 Apr 2010 17:51:58 +0000    

Click here for diff

  
  

Rename “Log-streaming replication parameters” header to “Standby server parameters” in recovery.conf, to match the grouping in the documentation.

  
commit   : 492d9f2309d55c32ee19df4dda990bbbcf63a19c    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Tue, 6 Apr 2010 14:53:20 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Tue, 6 Apr 2010 14:53:20 +0000    

Click here for diff

  
Fujii Masao  
  

Change some debug ereports to elogs, as requested by translation team.

  
commit   : 19c7a59b56f1c27065d51e1349a87dde497c9a3f    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Tue, 6 Apr 2010 10:50:57 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Tue, 6 Apr 2010 10:50:57 +0000    

Click here for diff

  
  

Reword exclusion constriants to mention that the operator can return false or null, per Tom.

  
commit   : 08c1d4e56050f59a326c78eca4c26aaeed0d86d4    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 6 Apr 2010 02:18:04 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 6 Apr 2010 02:18:04 +0000    

Click here for diff

  
  

Assorted tab-completion improvements in psql.

  
commit   : f1926c93c860f1ae37cf8c0c5d738bc6e448cb00    
  
author   : Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Mon, 5 Apr 2010 05:33:24 +0000    
  
committer: Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Mon, 5 Apr 2010 05:33:24 +0000    

Click here for diff

  
Add missing completions for:  
- ALTER SEQUENCE name OWNER TO  
- ALTER TYPE name RENAME TO  
- ALTER VIEW name ALTER COLUMN  
- ALTER VIEW name OWNER TO  
- ALTER VIEW name SET SCHEMA  
  
Fix wrong completions for:  
- ALTER FUNCTION/AGGREGATE name (arguments) ...  
    "(arguments)" has been ignored.  
- ALTER ... SET SCHEMA  
    "SCHEMA" has been considered as a variable name.  
  

Exclude unwanted typedef symbols in pgindent, including FD_SET which is found on some Windows platforms. Also, silence unnecessary messages and make awk happier about literal ‘*’ on some platforms.

  
commit   : 7004434a46be0a0f75608c9cde7c81eaba6566c8    
  
author   : Andrew Dunstan <andrew@dunslane.net>    
date     : Mon, 5 Apr 2010 03:09:09 +0000    
  
committer: Andrew Dunstan <andrew@dunslane.net>    
date     : Mon, 5 Apr 2010 03:09:09 +0000    

Click here for diff

  
  

Clean up description of 9.0’s incompatible changes in SIMILAR TO and SQL-style substring().

  
commit   : 87d5c22925fbf5fd9f8f16c3e85d2999e12036dc    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 5 Apr 2010 02:46:42 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 5 Apr 2010 02:46:42 +0000    

Click here for diff

  
  

Make dmetaphone.c safe for pgindent and fussy compilers. Still to do: make it properly encoding aware w.r.t. chars U+00C7 and U+00D1.

  
commit   : ce36151ac7ade5954dc7a08bff52e6cdc54cccc9    
  
author   : Andrew Dunstan <andrew@dunslane.net>    
date     : Mon, 5 Apr 2010 02:46:20 +0000    
  
committer: Andrew Dunstan <andrew@dunslane.net>    
date     : Mon, 5 Apr 2010 02:46:20 +0000    

Click here for diff

  
  

Use a new API rather than a deprecated one in in cygwin. cygwin_conv_to_full_win32_path should be replaced with cygwin_conv_path.

  
commit   : d208fcd167530ade1e166f19d6fbe045796adf34    
  
author   : Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Mon, 5 Apr 2010 02:25:56 +0000    
  
committer: Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Mon, 5 Apr 2010 02:25:56 +0000    

Click here for diff

  
  

Arrange to remove pg_default_acl entries completely if their ACL setting is changed to match the hard-wired default. This avoids accumulating useless catalog entries, and also provides a path for dropping the owning role without using DROP OWNED BY. Per yesterday’s complaint from Jaime Casanova, the need to use DROP OWNED BY for that is less than obvious, so providing this alternative method might save some user frustration.

  
commit   : 60bd2b1941c6211e973770e69cfa33367cc5db48    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 5 Apr 2010 01:58:03 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 5 Apr 2010 01:58:03 +0000    

Click here for diff

  
  

Fix updateAclDependencies() to not assume that ACL role dependencies can only be added during GRANT and can only be removed during REVOKE; and fix its callers to not lie to it about the existing set of dependencies when instantiating a formerly-default ACL. The previous coding accidentally failed to malfunction so long as default ACLs contain only references to the object’s owning role, because that role is ignored by updateAclDependencies. However this is obviously pretty fragile, as well as being an undocumented assumption. The new coding is a few lines longer but IMO much clearer.

  
commit   : 9029df17c4a885b83ea2b000b4114d438578a51a    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 5 Apr 2010 01:09:53 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 5 Apr 2010 01:09:53 +0000    

Click here for diff

  
  

Improve phrasing of warning message for NOTIFY queue getting too full. Per gripe from Peter.

  
commit   : 80390f493a612a135157ee05cfd1945d234753ce    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 5 Apr 2010 00:42:24 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 5 Apr 2010 00:42:24 +0000    

Click here for diff

  
  

Minor wording improvement.

  
commit   : 87ecae72bab970fc625b5599cc17d93151ae66ac    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 3 Apr 2010 21:46:59 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 3 Apr 2010 21:46:59 +0000    

Click here for diff

  
  

\ddp should be recognized as such even if user appends S or + to it. Those options do nothing right now, but might be wanted later, and in any case it’s confusing for the command to be interpreted as \dd if anything is appended. Per Jaime Casanova.

  
commit   : b84332830dcc83b8084c2721390708e9b972cb3a    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 3 Apr 2010 20:55:57 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 3 Apr 2010 20:55:57 +0000    

Click here for diff

  
  

Make ecpg in line with other compilers in that it deletes its output if there was an error processing the input file.

  
commit   : 5f5ba923346daf841b9ab8cd7ffc208bafbee6c2    
  
author   : Michael Meskes <meskes@postgresql.org>    
date     : Sat, 3 Apr 2010 19:30:49 +0000    
  
committer: Michael Meskes <meskes@postgresql.org>    
date     : Sat, 3 Apr 2010 19:30:49 +0000    

Click here for diff

  
Work done by Zoltan.  
  

Message quoting style tuning

  
commit   : a404a12fb48a7623fb806e98f1f9b12b4443aeb1    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Sat, 3 Apr 2010 07:53:29 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Sat, 3 Apr 2010 07:53:29 +0000    

Click here for diff

  
  

Clarify documentation of to_char EEEE pattern

  
commit   : a8af3d1a572c88112d97152d9b318624877547c2    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Sat, 3 Apr 2010 07:53:02 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Sat, 3 Apr 2010 07:53:02 +0000    

Click here for diff

  
  

Remove unnecessary xref endterm attributes and title ids

  
commit   : 6dcce3985bd4239b02e48c0e530ab1c612864dfc    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Sat, 3 Apr 2010 07:23:02 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Sat, 3 Apr 2010 07:23:02 +0000    

Click here for diff

  
The endterm attribute is mainly useful when the toolchain does not support  
automatic link target text generation for a particular situation.  In  the  
past, this was required by the man page tools for all reference page links,  
but that is no longer the case, and it now actually gets in the way of  
proper automatic link text generation.  The only remaining use cases are  
currently xrefs to refsects.  
  

Allow for more room in the man page title, so that “CREATE TEXT SEARCH CONFIGURATION” is not truncated.

  
commit   : 7969145483e45298d754ee70f857817962377f8f    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Sat, 3 Apr 2010 07:16:05 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Sat, 3 Apr 2010 07:16:05 +0000    

Click here for diff

  
  

Check compulsory parameters in recovery.conf in standby_mode, per docs.

  
commit   : cf2575b8c42605834f2deddca4a07756345194ec    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Fri, 2 Apr 2010 21:50:40 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Fri, 2 Apr 2010 21:50:40 +0000    

Click here for diff

  
  

Clarify some behaviours of REASSIGN OWNED and DROP OWNED BY.

  
commit   : 3e754a89ea328f766cff5c19d3880d63cc3330f8    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Fri, 2 Apr 2010 17:29:22 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Fri, 2 Apr 2010 17:29:22 +0000    

Click here for diff

  
  

Ensure that contrib/pgstattuple functions respond to cancel interrupts reasonably promptly, by adding CHECK_FOR_INTERRUPTS in the per-page loops.

  
commit   : 33065ef8bc52253ae855bc959576e52d8a28ba06    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 2 Apr 2010 16:16:51 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 2 Apr 2010 16:16:51 +0000    

Click here for diff

  
Tatsuhito Kasahara  
  

  
commit   : 4c1062330630af820f5bc4a72641b3390929e525    
  
author   : Magnus Hagander <magnus@hagander.net>    
date     : Fri, 2 Apr 2010 15:21:20 +0000    
  
committer: Magnus Hagander <magnus@hagander.net>    
date     : Fri, 2 Apr 2010 15:21:20 +0000    

Click here for diff

  
Josh Kupershmidt  
  

Fix minor typos in comments.

  
commit   : 337b2175729b89a411f2453caa93acfc601ca45c    
  
author   : Magnus Hagander <magnus@hagander.net>    
date     : Fri, 2 Apr 2010 15:19:22 +0000    
  
committer: Magnus Hagander <magnus@hagander.net>    
date     : Fri, 2 Apr 2010 15:19:22 +0000    

Click here for diff

  
Josh Kupershmidt  
  

Fix the build and install rules for man pages with SQL section != 7

  
commit   : a5c317cf78c741f21b69e1c87e755adc16761efd    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Fri, 2 Apr 2010 14:02:49 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Fri, 2 Apr 2010 14:02:49 +0000    

Click here for diff

  
The previous coding failed in various scenarios possibly including vpath  
builds and doing make install without preceding make all.  
  

Move system startup message prior to any calls out of data directory. This allows us to see what mode the server is in before it starts to perform actions that can block or hang. Otherwise server messages may not appear until after messages that say FATAL the database server is starting up.

  
commit   : 31f00d163b44be096b8282880528fc199f3cc98e    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Fri, 2 Apr 2010 13:10:56 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Fri, 2 Apr 2010 13:10:56 +0000    

Click here for diff

  
  

FATAL errors are meant to stop ecpg immediately, e.g. because the syntax is corrupted. This error, however, does is not a compilation problem but a runtime one, so we can keep compiling but still have to declare ERROR.

  
commit   : 001b1ad6a38c8039b027d70a4058d645397a0ae4    
  
author   : Michael Meskes <meskes@postgresql.org>    
date     : Fri, 2 Apr 2010 10:27:45 +0000    
  
committer: Michael Meskes <meskes@postgresql.org>    
date     : Fri, 2 Apr 2010 10:27:45 +0000    

Click here for diff

  
  

Don’t pass an invalid file handle to dup2(). That causes a crash on Windows, thanks to a feature in CRT called Parameter Validation.

  
commit   : 93001dfd18241e11d4f1e188a813c247b143c2e4    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Thu, 1 Apr 2010 20:12:22 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Thu, 1 Apr 2010 20:12:22 +0000    

Click here for diff

  
Backpatch to 8.2, which is the oldest version supported on Windows. In  
8.2 and 8.3 also backpatch the earlier change to use DEVNULL instead of  
NULL_DEV #define for a /dev/null-like device. NULL_DEV was hard-coded to  
"/dev/null" regardless of platform, which didn't work on Windows, while  
DEVNULL works on all platforms. Restarting syslogger didn't work on  
Windows on versions 8.3 and below because of that.  
  

Use a file of patterns of filenames to exclude from pgindent runs, instead if using multiple invocations of egrep. Add perl ppport.h to the current list.

  
commit   : 799c0d3f65082591583086949bba2be159a36e32    
  
author   : Andrew Dunstan <andrew@dunslane.net>    
date     : Thu, 1 Apr 2010 14:44:39 +0000    
  
committer: Andrew Dunstan <andrew@dunslane.net>    
date     : Thu, 1 Apr 2010 14:44:39 +0000    

Click here for diff

  
  

Change test -e to test -f in docs, for portability.

  
commit   : 399ea9e7a5dca4a4eee16f8940b969afeeb1ad0f    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 1 Apr 2010 13:52:56 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 1 Apr 2010 13:52:56 +0000    

Click here for diff

  
  

Zoltan beautified his hidden-variable-patch for ecpg. This also makes sure we get an error message instead of a warning if the variable have different types.

  
commit   : 1fbb06d2042d999d5cb188b814fb2e3bd82da96b    
  
author   : Michael Meskes <meskes@postgresql.org>    
date     : Thu, 1 Apr 2010 10:30:53 +0000    
  
committer: Michael Meskes <meskes@postgresql.org>    
date     : Thu, 1 Apr 2010 10:30:53 +0000    

Click here for diff

  
  

Applied Zoltan’s patch to make ecpg spit out warnings if a local variable hides a global one with the same name.

  
commit   : b2bddc2ff22f0c3d54671e43c67a2563deed7908    
  
author   : Michael Meskes <meskes@postgresql.org>    
date     : Thu, 1 Apr 2010 08:41:01 +0000    
  
committer: Michael Meskes <meskes@postgresql.org>    
date     : Thu, 1 Apr 2010 08:41:01 +0000    

Click here for diff

  
  

Add contraint exclusion section to contraint docs.

  
commit   : 0189c42f31dbd22c2707f0b79a5728eb91f5d66e    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 1 Apr 2010 01:18:17 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 1 Apr 2010 01:18:17 +0000    

Click here for diff

  
Takahiro Itagaki  
  

Refer to max_wal_senders in a more consistent fashion.

  
commit   : 54943734f8fca3a9092564f31a7c9c6b8a58c7bc    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Thu, 1 Apr 2010 00:43:29 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Thu, 1 Apr 2010 00:43:29 +0000    

Click here for diff

  
The error message now makes explicit reference to the GUC that must be changed  
to fix the problem, using wording suggested by Tom Lane.  Along the way,  
rename the GUC from MaxWalSenders to max_wal_senders for consistency and  
grep-ability.  
  

Add full names for release note item authors.

  
commit   : 38672aaaa1b8d786cb9ac4eba50860bfce3f1782    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 1 Apr 2010 00:32:53 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 1 Apr 2010 00:32:53 +0000    

Click here for diff

  
  

Use test -e rather than test -f.

  
commit   : 570e01becc662888f147d4e53b2011bd852aad31    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 1 Apr 2010 00:31:00 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 1 Apr 2010 00:31:00 +0000    

Click here for diff

  
  

Improve 9.0 release notes by removing extra parentheses and linking to a more appropriate place for exclusion constraints.

  
commit   : 8ae5160bf3c505b85a2c290a7c7781a7cadc5573    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 1 Apr 2010 00:18:21 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 1 Apr 2010 00:18:21 +0000    

Click here for diff

  
  

Revert change that prevented ellipses from looking like ../.

  
commit   : d93e4d819c6bd19145644733a642e30d6878e54b    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 31 Mar 2010 23:51:41 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 31 Mar 2010 23:51:41 +0000    

Click here for diff

  
  

Clarify ellipses use in archive_command example, per Josh Kupershmidt.

  
commit   : c2af244021cf46da928d1e0f4f7f67f9761a193f    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 31 Mar 2010 23:39:15 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 31 Mar 2010 23:39:15 +0000    

Click here for diff

  
  

Document why ‘cp -i </dev/null’ is suggested for archive command.

  
commit   : cba349859640b3c1f3f2e33f102b313b9efe2d92    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 31 Mar 2010 23:35:19 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 31 Mar 2010 23:35:19 +0000    

Click here for diff

  
  

Fix typos, spotted by Thom Brown.

  
commit   : f185fc3c5e119f03e8057e8f741df4d4f6c50713    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Wed, 31 Mar 2010 20:41:50 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Wed, 31 Mar 2010 20:41:50 +0000    

Click here for diff

  
  

Enhance standby documentation.

  
commit   : ec9ee9381fab6e2cf8f14722a2e5dfe0beedbe15    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Wed, 31 Mar 2010 20:35:09 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Wed, 31 Mar 2010 20:35:09 +0000    

Click here for diff

  
Original patch by Fujii Masao, with heavy editing and bitrot-fixing  
after my other commit.  
  

Mention in the docs that if special keywords like “sameuser” and “replication” are quoted in pg_hba.conf, they lose their special meaning.

  
commit   : 259f60e9b6884f3ba4197f1315221c21258a1f23    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Wed, 31 Mar 2010 20:18:10 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Wed, 31 Mar 2010 20:18:10 +0000    

Click here for diff

  
  

Enhance documentation of the build-in standby mode, explaining the retry loop in standby mode, trying to restore from archive, pg_xlog and streaming.

  
commit   : 991bfe11d28a9d2c70d54203bac2562995af504a    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Wed, 31 Mar 2010 19:13:01 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Wed, 31 Mar 2010 19:13:01 +0000    

Click here for diff

  
Move sections around to make the high availability chapter more  
coherent: the most prominent part is now a "Log-Shipping Standby Servers"  
section that describes what a standby server is (like the old  
"Warm Standby Servers for High Availability" section), and how to  
set up a warm standby server, including streaming replication, using the  
built-in standby mode. The pg_standby method is desribed in another  
section called "Alternative method for log shipping", with the added  
caveat that it doesn't work with streaming replication.  
  

Change recovery.conf.sample to match postgresql.conf by showing only default values, with example comments.

  
commit   : 55a01b4c0a5d5aacab57fbb2fbf7243e511f239c    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 31 Mar 2010 14:18:45 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 31 Mar 2010 14:18:45 +0000    

Click here for diff

  
  

Give a more precise error message if a variable is re-used as cursor name in ecpg.

  
commit   : e01c6ce712d3db0ae1f2205d9dae1168f1da1f5d    
  
author   : Michael Meskes <meskes@postgresql.org>    
date     : Wed, 31 Mar 2010 08:45:18 +0000    
  
committer: Michael Meskes <meskes@postgresql.org>    
date     : Wed, 31 Mar 2010 08:45:18 +0000    

Click here for diff

  
  

Fix “constraint_exclusion = partition” logic so that it will also attempt constraint exclusion on an inheritance set that is the target of an UPDATE or DELETE query. Per gripe from Marc Cousin. Back-patch to 8.4 where the feature was introduced.

  
commit   : d174a4adbb7423ee5ff30aa98043db4521ffd1be    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 30 Mar 2010 21:58:11 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 30 Mar 2010 21:58:11 +0000    

Click here for diff

  
  

Change the retry-loop in standby mode to also try restoring files from pg_xlog directory. This is essential for replaying WAL records that were streamed from the master, after a standby server restart.

  
commit   : 2a77355ea1e53bc234ed0b5fda8ec9f304f6797a    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Tue, 30 Mar 2010 16:23:57 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Tue, 30 Mar 2010 16:23:57 +0000    

Click here for diff

  
If a corrupt record is seen in a file restored from the archive or  
streamed from the master, log it as a WARNING and keep retrying. If the  
corruption is permanent, and not just a glitch in the whatever copies the  
files to the archive or a network error not caught by CRC checks in TCP  
for example, we will keep retrying and logging the WARNING indefinitely.  
But that's better than shutting down completely, the standby is still  
useful for running read-only queries. In PITR the recovery ends at such a  
corrupt record, which is a bit questionable, but that's the behavior we  
had in previous releases and we don't feel like chaning it now. It does  
make sense for tools like pg_standby.  
  

Message tuning

  
commit   : feb5087a34cbe7565ec351e6b3c9f94b627acb32    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Tue, 30 Mar 2010 16:08:22 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Tue, 30 Mar 2010 16:08:22 +0000    

Click here for diff

  
  

Properly initialize local varaible in btree_xlog_delete_get_latestRemovedXid(). This variable was only tested in assert builds.

  
commit   : e919a844eb675d501207b14584da3986b4288ce9    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 30 Mar 2010 13:46:09 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 30 Mar 2010 13:46:09 +0000    

Click here for diff

  
  

Add comma missing from postgresql.conf comment.

  
commit   : a358423d8fed94b2b7dd93c3b8c7d87f5150cdeb    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 30 Mar 2010 00:11:45 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 30 Mar 2010 00:11:45 +0000    

Click here for diff

  
  

Separate targets “make docs” and “make install-docs” for the documentation

  
commit   : 29ccc32c3024586a0b171cac4224277ddacecad8    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Tue, 30 Mar 2010 00:10:46 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Tue, 30 Mar 2010 00:10:46 +0000    

Click here for diff

  
It is no longer installed by default, but included in "make world"/"make  
install-world".  Documentation updated accordingly.  
  
Also, fix vpathsearch function to work when calling make install-docs  
without previous make docs.  
  

Add note that XML Schema validation is not supported

  
commit   : 3f76f9613d98890306086a3b18198c43d34a6d85    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Mon, 29 Mar 2010 22:01:08 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Mon, 29 Mar 2010 22:01:08 +0000    

Click here for diff

  
requested by Andrew Lardinois  
  

Add some information about what it means for PL/Python to be untrusted. Similar information already appears in the PL/Perl and PL/Tcl chapters.

  
commit   : 1e24678349ba90500fe32722c92c680e811f20ea    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Mon, 29 Mar 2010 21:35:59 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Mon, 29 Mar 2010 21:35:59 +0000    

Click here for diff

  
  

Add some documentation about PL/Python limitations

  
commit   : 51d2c9b0bb695e4d876701d0c60acc369cc28ce5    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Mon, 29 Mar 2010 21:20:58 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Mon, 29 Mar 2010 21:20:58 +0000    

Click here for diff

  
suggested by Steve White (bug #5272)  
  

Edit recovery.conf.sample so it matches docs. Change standby_mode example to ‘on or ‘off’ rather than ‘true’ or ‘false’, as shown in docs. Add restartpoint_command. Add section header for recovery target parameters, matching docs.

  
commit   : de66effede5f7cb6da258e1bfe6fc508ad4cf940    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Mon, 29 Mar 2010 18:50:36 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Mon, 29 Mar 2010 18:50:36 +0000    

Click here for diff

  
  

Rework join-removal logic as per recent discussion. In particular this fixes things so that it works for cases where nested removals are possible. The overhead of the optimization should be significantly less, as well.

  
commit   : b78f6264eba33e2966447572b8261e353df01e59    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 28 Mar 2010 22:59:34 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 28 Mar 2010 22:59:34 +0000    

Click here for diff

  
  

Derive latestRemovedXid for btree deletes by reading heap pages. The WAL record for btree delete contains a list of tids, even when backup blocks are present. We follow the tids to their heap tuples, taking care to follow LP_REDIRECT tuples. We ignore LP_DEAD tuples on the understanding that they will always have xmin/xmax earlier than any LP_NORMAL tuples referred to by killed index tuples. Iff all tuples are LP_DEAD we return InvalidTransactionId. The heap relfilenode is added to the WAL record, requiring API changes to pass down the heap Relation. XLOG_PAGE_MAGIC updated.

  
commit   : a760893dbda9934e287789d54bbd3c4ca3914ce0    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Sun, 28 Mar 2010 09:27:02 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Sun, 28 Mar 2010 09:27:02 +0000    

Click here for diff

  
  

Flush CopyOutResponse when starting streaming in walsender, so that it’s not delayed until the first WAL record is sent.

  
commit   : 59292f28cace8c0d4b038cadbb127b440e3a7815    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Fri, 26 Mar 2010 12:23:34 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Fri, 26 Mar 2010 12:23:34 +0000    

Click here for diff

  
Fujii Masao  
  

Modify some new and pre-existing messages for translatability.

  
commit   : 65cd829232508405833ee5ae46c9fff42a2b215a    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Thu, 25 Mar 2010 20:40:17 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Thu, 25 Mar 2010 20:40:17 +0000    

Click here for diff

  
  

Fix ginint4_queryextract() to actually do what it was intended to do for an unsatisfiable query, such as indexcol && empty_array. It should return -1 to tell GIN no scan is required; but silly typo disabled the logic for that, resulting in unnecessary “GIN indexes do not support whole-index scans” error. Per bug report from Jeff Trout.

  
commit   : 5ceb13c8a12320a44fa211cf0ba32b1641270aeb    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 25 Mar 2010 15:50:10 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 25 Mar 2010 15:50:10 +0000    

Click here for diff

  
Back-patch to 8.3 where the logic was introduced.  
  

Prevent ALTER USER f RESET ALL from removing the settings that were put there by a superuser – “ALTER USER f RESET setting” already disallows removing such a setting.

  
commit   : be8cebc717ef0b583ada09da8d0245793697c1a8    
  
author   : Alvaro Herrera <alvherre@alvh.no-ip.org>    
date     : Thu, 25 Mar 2010 14:44:34 +0000    
  
committer: Alvaro Herrera <alvherre@alvh.no-ip.org>    
date     : Thu, 25 Mar 2010 14:44:34 +0000    

Click here for diff

  
Apply the same treatment to ALTER DATABASE d RESET ALL when run by a database  
owner that's not superuser.  
  

Additional thoughts on WALSender cpu reduction. Use long type and alter a comment to reduce confusion.

  
commit   : 92fc0db99fb7a77864558615b76f4ab84227df30    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Wed, 24 Mar 2010 21:41:57 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Wed, 24 Mar 2010 21:41:57 +0000    

Click here for diff

  
  

Change replication connection log format to allow for a database called replication. Add host and port details, following format of messages in BackendInitialize().

  
commit   : e6867eebd4bebfde2aaeaf6bf0d5c822a3c83298    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Wed, 24 Mar 2010 21:25:50 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Wed, 24 Mar 2010 21:25:50 +0000    

Click here for diff

  
  

Reduce CPU utilisation of WALSender process. Process was using 10% CPU doing nothing, caused by naptime specified in milliseconds yet units of pg_usleep() parameter is microseconds. Correctly specifying units reduces call frequency by 1000. Reduction in CPU consumption verified.

  
commit   : 08882ce74cd6775bd8446eb7343c61a3e5648620    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Wed, 24 Mar 2010 20:11:12 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Wed, 24 Mar 2010 20:11:12 +0000    

Click here for diff

  
  

Fix thinko in log message for “sameuser” ident map mismatch: the provided and authenticated usernames were swapped. Reported by Bryan Henderson in bug #5386.

  
commit   : 16a4186d6aab46953f03f52b7a6d9ede7c89eaf7    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 24 Mar 2010 17:05:45 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 24 Mar 2010 17:05:45 +0000    

Click here for diff

  
Also clean up poorly-maintained header comment for this function.  
  

Now that we know last_statrequest > last_statwrite can be observed in the buildfarm, expend a little more effort on the log message for it.

  
commit   : 223f82d4da528b61b50ea2cae142b7e14584bca3    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 24 Mar 2010 16:07:10 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 24 Mar 2010 16:07:10 +0000    

Click here for diff

  
  

Mark “installcheck-parallel”, “world”, “install-world” and “installcheck-world” make targets as PHONY. Fujii Masao.

  
commit   : 23244d6f24766a6435455a069cad43e4e9201572    
  
author   : Andrew Dunstan <andrew@dunslane.net>    
date     : Wed, 24 Mar 2010 13:14:02 +0000    
  
committer: Andrew Dunstan <andrew@dunslane.net>    
date     : Wed, 24 Mar 2010 13:14:02 +0000    

Click here for diff

  
  

Update description of walrcv_receive() function to match reality.

  
commit   : de3483acfa267bee664394405a78863d1355117d    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Wed, 24 Mar 2010 06:25:39 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Wed, 24 Mar 2010 06:25:39 +0000    

Click here for diff

  
  

Document in postgresql.conf that the max_standby_delay default is 30 ‘seconds’.

  
commit   : 96189dbe664cf81efcc4c1f40df43bce3d9aa785    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 24 Mar 2010 03:13:45 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 24 Mar 2010 03:13:45 +0000    

Click here for diff

  
  

Typo fix from IRC breinbaas

  
commit   : 5f9d2316d5c4bc88866eacd267139b42298a31a8    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 23 Mar 2010 22:37:14 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 23 Mar 2010 22:37:14 +0000    

Click here for diff

  
  

Remove useless double assignment

  
commit   : 8a367d441b5abc0adc07522fc58783aa70e84143    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Tue, 23 Mar 2010 22:12:06 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Tue, 23 Mar 2010 22:12:06 +0000    

Click here for diff

  
GCC 4.5 complained about it.  
  

Remove CRs for each line in pgbench.sgml.

  
commit   : 7e2411429c248c137de93b421e2931f33978af05    
  
author   : Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Tue, 23 Mar 2010 04:09:17 +0000    
  
committer: Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Tue, 23 Mar 2010 04:09:17 +0000    

Click here for diff

  
  

Add back other xlog() function author names.

  
commit   : a9ae3c0a567125cece0f86003ba37638d0372ed4    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 23 Mar 2010 02:28:48 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 23 Mar 2010 02:28:48 +0000    

Click here for diff

  
  

Each worker thread will have its own log file in pgbench to avoid interleaved writes. The first worker still uses “pgbench_log.” for the name, but additional workers use “pgbench_log..” instead.

  
commit   : a887c486d5df956de8ac3ee5db9b5e1c8bbe9fd1    
  
author   : Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Tue, 23 Mar 2010 01:29:22 +0000    
  
committer: Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Tue, 23 Mar 2010 01:29:22 +0000    

Click here for diff

  
Reported by Greg Smith.  
  

Properly credit Simon for functions pg_last_xlog_replay_location, etc.

  
commit   : 1d34814ac2bfcf1c577b9cb6d6b3719c9a41f9ec    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Mon, 22 Mar 2010 22:56:52 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Mon, 22 Mar 2010 22:56:52 +0000    

Click here for diff

  
  

Fix regression test breakage from recent change in default name of exclusion-constraint index.

  
commit   : d0049f8eee587269db81192410cb61a4204ac00c    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 22 Mar 2010 17:43:28 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 22 Mar 2010 17:43:28 +0000    

Click here for diff

  
  

Shorten suffix of automatically created indexes to “_excl” when using exclusion constraints, in line with string length of other pre-9.0 suffixes.

  
commit   : 37afd3ef4e72fff7708d23b108fbf3031e65956a    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Mon, 22 Mar 2010 15:24:11 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Mon, 22 Mar 2010 15:24:11 +0000    

Click here for diff

  
  

Re-order createuser and vacuumedb documentation options, for consistency.

  
commit   : 260d843d70e19e6d56bc6e2ad84d53cc5e31f377    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Mon, 22 Mar 2010 14:56:09 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Mon, 22 Mar 2010 14:56:09 +0000    

Click here for diff

  
Gabrielle (Roth)  
  

Fix an oversight in join-removal optimization: we have to check not only for plain Vars that are generated in the inner rel and used above the join, but also for PlaceHolderVars. Per report from Oleg K.

  
commit   : 8d3c4aa614e20375daeff0bb1b9f640b115f363e    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 22 Mar 2010 13:57:16 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 22 Mar 2010 13:57:16 +0000    

Click here for diff

  
  

Fixed ECPG regression test to make sure it uses absolute paths for include files instead of relative ones which break vpath builds.

  
commit   : ecac5e6bfc3b236b41ea282f5625203d5ee90b55    
  
author   : Michael Meskes <meskes@postgresql.org>    
date     : Mon, 22 Mar 2010 07:41:20 +0000    
  
committer: Michael Meskes <meskes@postgresql.org>    
date     : Mon, 22 Mar 2010 07:41:20 +0000    

Click here for diff

  
  

Remove 9.0 release notes xref’s to HISTORY.html can be built.

  
commit   : 0885dd15171cf0f24074318fa178a122d6313558    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sun, 21 Mar 2010 22:12:27 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sun, 21 Mar 2010 22:12:27 +0000    

Click here for diff

  
Document this restriction.  
  

Adding special command line option that is now needed for the one ecpg regression test that was changed.

  
commit   : 075d44120fd9e3c33a99246c4f457630f71073a7    
  
author   : Michael Meskes <meskes@postgresql.org>    
date     : Sun, 21 Mar 2010 14:26:58 +0000    
  
committer: Michael Meskes <meskes@postgresql.org>    
date     : Sun, 21 Mar 2010 14:26:58 +0000    

Click here for diff

  
  

ECPG’s parser now accepts and handles variables as arguments for the FREE command.

  
commit   : b4d298ac234cb85df96a3c95f3b7c55183606e4a    
  
author   : Michael Meskes <meskes@postgresql.org>    
date     : Sun, 21 Mar 2010 11:56:45 +0000    
  
committer: Michael Meskes <meskes@postgresql.org>    
date     : Sun, 21 Mar 2010 11:56:45 +0000    

Click here for diff

  
Informix allows variables as argument to the embedded SQL command FREE. Given  
that we only allow freeing cursors via FREE for compatibility reasons only we  
should do the same.  
  

Adjusted regression test results to the change I made in debug output for ecpglib.

  
commit   : 654fff2311f564c276e29d460e07696f77b92847    
  
author   : Michael Meskes <meskes@postgresql.org>    
date     : Sun, 21 Mar 2010 11:38:16 +0000    
  
committer: Michael Meskes <meskes@postgresql.org>    
date     : Sun, 21 Mar 2010 11:38:16 +0000    

Click here for diff

  
  

Correctly name functions in debug output in ecpglib. When the functions were refactored the debug output wasn’t adjusted.

  
commit   : a9dd21786153e35e5b0a9743192fe0a50008e808    
  
author   : Michael Meskes <meskes@postgresql.org>    
date     : Sun, 21 Mar 2010 11:33:44 +0000    
  
committer: Michael Meskes <meskes@postgresql.org>    
date     : Sun, 21 Mar 2010 11:33:44 +0000    

Click here for diff

  
  

ECPG only copied #include statements instead of processing them according to commandline option “-i”. This change fixes this and adds a test case. It also honors #include_next, although this is probably never used for embedded SQL.

  
commit   : 1d66a1cca1e0ad649beba720466461b4af7fddd4    
  
author   : Michael Meskes <meskes@postgresql.org>    
date     : Sun, 21 Mar 2010 10:49:52 +0000    
  
committer: Michael Meskes <meskes@postgresql.org>    
date     : Sun, 21 Mar 2010 10:49:52 +0000    

Click here for diff

  
  

  
commit   : 6ad4249b5cde27e914acfa64a9bad268ece61fe2    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sun, 21 Mar 2010 02:24:29 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sun, 21 Mar 2010 02:24:29 +0000    

Click here for diff

  
  

  
commit   : 4748faa50a5d1cc6eb4205b305c1465bd9f91963    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sun, 21 Mar 2010 00:43:40 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sun, 21 Mar 2010 00:43:40 +0000    

Click here for diff

  
Also update tagging instructions, and add id tags to a few documentation  
sections.  
  

Message tuning

  
commit   : c248d171209fb1468a68d4d623fe721497cab7ba    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Sun, 21 Mar 2010 00:17:59 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Sun, 21 Mar 2010 00:17:59 +0000    

Click here for diff

  
  

Fixed ecpg parser to allow more than one C preprocessor command inside a declare section.

  
commit   : 1dff2a0f25badf7fc15a654172bf4e0bce964008    
  
author   : Michael Meskes <meskes@postgresql.org>    
date     : Sat, 20 Mar 2010 18:53:00 +0000    
  
committer: Michael Meskes <meskes@postgresql.org>    
date     : Sat, 20 Mar 2010 18:53:00 +0000    

Click here for diff

  
  

In 9.0 release notes, move libpq/ecpg up into their own sections, like I did with server-side languages.

  
commit   : 4a12e98c4672def5e06ec946715dddd92e4a14e8    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sat, 20 Mar 2010 16:31:09 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sat, 20 Mar 2010 16:31:09 +0000    

Click here for diff

  
  

Move server-side languages up one section in the 9.0 release notes.

  
commit   : 9e6c5f1e74118047019c57eae2308d8e8c7ffee0    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sat, 20 Mar 2010 14:03:31 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sat, 20 Mar 2010 14:03:31 +0000    

Click here for diff

  
  

Further corrections of mismatching struct and btree SizeOf macros. In this case, correction is to remove now unused fields from struct. Since these were unused and full of garbage anyway, no version change.

  
commit   : bf6285b3a7e0dc9936990b98d799a36a5d2db140    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Sat, 20 Mar 2010 07:49:48 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Sat, 20 Mar 2010 07:49:48 +0000    

Click here for diff

  
  

Create 9.0 release notes; keep 9.0-alpha release notes in place.

  
commit   : 128b1c5022dd6299a56d9cf356a6368d1aeea885    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sat, 20 Mar 2010 03:30:12 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sat, 20 Mar 2010 03:30:12 +0000    

Click here for diff

  
  

Update sgml release note markup suggestions.

  
commit   : 4430907d9590170e54f729b8d8d1bcef7f24ad34    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sat, 20 Mar 2010 03:12:52 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sat, 20 Mar 2010 03:12:52 +0000    

Click here for diff

  
  

Clear error_context_stack and debug_query_string at the beginning of proc_exit, so that we won’t try to attach any context printouts to messages that get emitted while exiting. Per report from Dennis Koegel, the context functions won’t necessarily work after we’ve started shutting down the backend, and it seems possible that debug_query_string could be pointing at freed storage as well. The context information doesn’t seem particularly relevant to such messages anyway, so there’s little lost by suppressing it.

  
commit   : f784f05e95c14bc4234e27db54a220818161c3ac    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 20 Mar 2010 00:58:09 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 20 Mar 2010 00:58:09 +0000    

Click here for diff

  
Back-patch to all supported branches.  I can only demonstrate a crash with  
log_disconnections messages back to 8.1, but the risk seems real in 8.0 and  
before anyway.  
  

Forbid renaming columns of objects whose column names are system-generated.

  
commit   : acdd6ea5ab887fd18912578f110c55dab0f5ec97    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Sat, 20 Mar 2010 00:43:42 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Sat, 20 Mar 2010 00:43:42 +0000    

Click here for diff

  
KaiGai Kohei, with adjustments to the comments.  
  

  
commit   : a836abe9f6934b51a0f92cb50c8514cd6f14c8b6    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 19 Mar 2010 22:54:41 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 19 Mar 2010 22:54:41 +0000    

Click here for diff

  
Per crash report from Dennis Koegel.  I've concluded that the real fix for  
his problem is to clear the error context stack at entry to proc_exit, but  
it still seems like a good idea to make the callbacks a bit less fragile  
for other cases.  
  
Backpatch to 8.4.  We could go further back, but the patch doesn't apply  
cleanly.  In the absence of proof that this fixes something and isn't just  
paranoia, I'm not going to expend the effort.  
  

Fix oversight in btpo.xact patch; it was in fact installing garbage in the xact field on replay, due to not writing out all the data in the wal log struct.

  
commit   : 865b29540ef3484762364d40fd3888808107238a    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 19 Mar 2010 20:51:30 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 19 Mar 2010 20:51:30 +0000    

Click here for diff

  
  

Clarify docs about database parameter in streaming replication primary_conninfo. Docs were unclear on whether or not database=replication was required, nor did they mention the FATAL error this causes if database parameter is mentioned explicitly, whatever its value.

  
commit   : f42ddc477297a6cac9cc403a65b268f2b578b621    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Fri, 19 Mar 2010 19:31:06 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Fri, 19 Mar 2010 19:31:06 +0000    

Click here for diff

  
  

Add connection messages for streaming replication. log_connections was broken for a replication connection and no messages were displayed on either standby or primary, at any debug level. Connection messages needed to diagnose session drop/reconnect events. Use LOG mode for now, discuss lowering in later releases.

  
commit   : 6a771d1d367d7e204edf78aee3f069f1b5ba36db    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Fri, 19 Mar 2010 19:19:38 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Fri, 19 Mar 2010 19:19:38 +0000    

Click here for diff

  
  

Minor tweaks on libpqrcv_connect(): ensure conninfo_repl[] is correctly sized and expand comment to explain otherwise undocumented use of replication connection parameter.

  
commit   : 75867c528d45829c39b2aba29e0617e3c381ce52    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Fri, 19 Mar 2010 17:51:42 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Fri, 19 Mar 2010 17:51:42 +0000    

Click here for diff

  
  

Update XLOG_PAGE_MAGIC to recognise WAL format changes.

  
commit   : aa36bd2039272dabcabf486a7d4e05f755778e32    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Fri, 19 Mar 2010 17:42:10 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Fri, 19 Mar 2010 17:42:10 +0000    

Click here for diff

  
  

Adjust comment in .history file to match recovery target specified. Comment present since 8.0 was never fully meaningful, since two recovery targets cannot be specified. Refactor recovery target type to make this change and associated code easier to understand. No change in function.

  
commit   : 3cdafe40e73c0c565e54fdaf69fe35f294906693    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Fri, 19 Mar 2010 11:05:15 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Fri, 19 Mar 2010 11:05:15 +0000    

Click here for diff

  
Bug report arising from internal support question.  
  

Reset btpo.xact following recovery of btree delete page. Add btpo_xact field into WAL record and reset it from there, rather than using FrozenTransactionId which can lead to some corner case bugs.

  
commit   : 5c73ae17d18a424fe63c0a1d8b674e9f22800572    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Fri, 19 Mar 2010 10:41:22 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Fri, 19 Mar 2010 10:41:22 +0000    

Click here for diff

  
Problem report and suggested route to a fix from Heikki, details by me.  
  

Also print the libpq error message when lo_create or lo_open fails

  
commit   : 2827516394ef7b536f67904f9115355f3f7443e9    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 18 Mar 2010 20:00:51 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 18 Mar 2010 20:00:51 +0000    

Click here for diff

  
  

Prevent the injection of invalidly encoded strings by PL/Python into PostgreSQL with a few strategically placed pg_verifymbstr calls.

  
commit   : a401226bd8749c915bf275b30eb9a06f49a529d2    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 18 Mar 2010 19:43:03 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 18 Mar 2010 19:43:03 +0000    

Click here for diff

  
  

Message style tuning

  
commit   : ab5694e80d69fc57e59972583439b1413262d14f    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 18 Mar 2010 19:02:46 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 18 Mar 2010 19:02:46 +0000    

Click here for diff

  
  

Mention way to get commit details for release notes.

  
commit   : d154a857ba2e77376312b5c978f19821d2fc2600    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 18 Mar 2010 16:31:12 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 18 Mar 2010 16:31:12 +0000    

Click here for diff

  
  

Fix missing parentheses for current_query(), per bug #5378. Also make a couple other minor editorial improvements.

  
commit   : 5f6285616d67e545d6a0df2a55d98046fca17982    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 18 Mar 2010 15:29:44 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 18 Mar 2010 15:29:44 +0000    

Click here for diff

  
  

Use data-type specific conversion functions also in plpy.execute

  
commit   : 12c2f2f66c2d37a951cdf01049d74c520f26e7f9    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 18 Mar 2010 13:23:57 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Thu, 18 Mar 2010 13:23:57 +0000    

Click here for diff

  
In PLy_spi_execute_plan, use the data-type specific Python-to-PostgreSQL  
conversion function instead of passing everything through InputFunctionCall  
as a string.  The equivalent fix was already done months ago for function  
parameters and return values, but this other gateway between Python and  
PostgreSQL was apparently forgotten.  As a result, data types that need  
special treatment, such as bytea, would misbehave when used with  
plpy.execute.  
  

Add restartpoint_command option to recovery.conf. Fix bug in %r handling in recovery_end_command, it always came out as 0 because InRedo was cleared before recovery_end_command was executed. Also, always take ControlFileLock when reading checkpoint location for %r.

  
commit   : c21ac0b58e8c3bb050d87e213a6f4524b01b2a6d    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Thu, 18 Mar 2010 09:17:18 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Thu, 18 Mar 2010 09:17:18 +0000    

Click here for diff

  
The recovery_end_command bug and the missing locking was present in 8.4  
as well, that part of this patch will be backported separately.  
  

Add vacuum_defer_cleanup_age to postgresql.conf.sample.

  
commit   : 6407fa996a0f2a9da1fbb91fd47afe97f5743be8    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Thu, 18 Mar 2010 07:01:01 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Thu, 18 Mar 2010 07:01:01 +0000    

Click here for diff

  
  

  
commit   : 7e8a60b7c5ede78db084ce0f2d6a0234040be1eb    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Wed, 17 Mar 2010 22:02:44 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Wed, 17 Mar 2010 22:02:44 +0000    

Click here for diff

  
This variable is apparently only for Python internally.  In newer releases  
of Python this variable pulls in more and more libraries that users are  
less likely to have, leading to potential build failures.  
  

Message style tuning

  
commit   : c92e2702f1b50f8ac7440b79274afdf2f0248816    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Wed, 17 Mar 2010 21:31:17 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Wed, 17 Mar 2010 21:31:17 +0000    

Click here for diff

  
  

Fix peculiar, untranslatable message concatenation attempt

  
commit   : 2fb605ec76ee4dbcd15482d3623e1cf1aaa68e63    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Wed, 17 Mar 2010 20:58:38 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Wed, 17 Mar 2010 20:58:38 +0000    

Click here for diff

  
  

Make typography consistent

  
commit   : b2640888d99b68d6677d13e90d9b5b716844018f    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Wed, 17 Mar 2010 20:53:19 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Wed, 17 Mar 2010 20:53:19 +0000    

Click here for diff

  
  

Typo fixes.

  
commit   : ad8f6fec3b46d3c753c0946991c94b7ec2356ea8    
  
author   : Magnus Hagander <magnus@hagander.net>    
date     : Wed, 17 Mar 2010 18:03:55 +0000    
  
committer: Magnus Hagander <magnus@hagander.net>    
date     : Wed, 17 Mar 2010 18:03:55 +0000    

Click here for diff

  
Fujii Masao  
  

  
commit   : a95e51962d6bab6d155a0a650fc240f50b28cfd8    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Wed, 17 Mar 2010 17:12:31 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Wed, 17 Mar 2010 17:12:31 +0000    

Click here for diff

  
  

Pass incompletely-transformed aggregate argument lists as separate parameters to transformAggregateCall, instead of abusing fields in Aggref to carry them temporarily. No change in functionality but hopefully the code is a bit clearer now. Per gripe from Gokulakannan Somasundaram.

  
commit   : 93324355eb9506512acfaca10f6958cdd3ccf77e    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 17 Mar 2010 16:52:38 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 17 Mar 2010 16:52:38 +0000    

Click here for diff

  
  

Fix incorrect example in CREATE INDEX reference page, per Josh Kupershmidt. Also fix and uncomment an old example of creating a GIST index, and make a couple of other minor editorial adjustments.

  
commit   : f248e11f7006a4331c66ef838053dee827d5664d    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 17 Mar 2010 15:55:50 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 17 Mar 2010 15:55:50 +0000    

Click here for diff

  
  

Fix typo in streaming replication protocol docs.

  
commit   : 0131088f1829ca968c8d1302728c6ff37a97092d    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Wed, 17 Mar 2010 00:28:15 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Wed, 17 Mar 2010 00:28:15 +0000    

Click here for diff

  
  

Fix typo in math function docs, spotted by Heikki.

  
commit   : ce701c1e731033aeda23ff9f686e7a84d36eac2b    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Tue, 16 Mar 2010 16:03:24 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Tue, 16 Mar 2010 16:03:24 +0000    

Click here for diff

  
  

Throw a nicer error message if a standby server attempts to connect while the master is still in recovery. We don’t support cascading slaves yet.

  
commit   : a383c55a1d8bfab3d5840ae522c1d0bb07f2fb1f    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Tue, 16 Mar 2010 09:09:55 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Tue, 16 Mar 2010 09:09:55 +0000    

Click here for diff

  
Patch by Fujii Masao, with slightly changed wording.  
  

Document that trig functions accept/return values in radians.

  
commit   : bd11a0f67f7f2032c5884ecc1c8454378d7af5cd    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Mon, 15 Mar 2010 19:03:31 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Mon, 15 Mar 2010 19:03:31 +0000    

Click here for diff

  
  

Remove incorrect comment from GetWriteRecPtr(): the return value is always correct, as described in comments at start of xlog.c

  
commit   : 1a163a0c68fe974c12c807c14c3701baa15e124c    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Mon, 15 Mar 2010 18:49:17 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Mon, 15 Mar 2010 18:49:17 +0000    

Click here for diff

  
  

Update oidjoins regression test for 9.0.

  
commit   : 324505af01dc54add3ce9489829808efda2c161e    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 14 Mar 2010 04:17:54 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 14 Mar 2010 04:17:54 +0000    

Click here for diff

  
  

Add some more structure and bits of information to PL/Python documentation

  
commit   : 66cac8feab9c6a34cda8923efbfe5efd4a1b1b4d    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Sat, 13 Mar 2010 20:55:05 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Sat, 13 Mar 2010 20:55:05 +0000    

Click here for diff

  
  

Revert all keepalive moves, reevaluate.

  
commit   : 54aaef864213d7b91f1efc691d3dc93ba468815b    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sat, 13 Mar 2010 16:56:37 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sat, 13 Mar 2010 16:56:37 +0000    

Click here for diff

  
  

Move more tcp keepalive macros to be consistent.

  
commit   : 3f10d21ecddd8af06bfc6d458f5c9fa092730bc0    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sat, 13 Mar 2010 16:40:38 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sat, 13 Mar 2010 16:40:38 +0000    

Click here for diff

  
  

Move TCP keepalive macro definition

  
commit   : 45d9d90c83a577a1b241369ccc1a49243619d14c    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sat, 13 Mar 2010 15:35:46 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sat, 13 Mar 2010 15:35:46 +0000    

Click here for diff

  
Jaime Casanova  
  

Add libpq warning message if the .pgpass-retrieved password fails.

  
commit   : a6c1cea2b7ac446558ce0cde14b19e74220eeb7f    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sat, 13 Mar 2010 14:55:57 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sat, 13 Mar 2010 14:55:57 +0000    

Click here for diff

  
Add ERRCODE_INVALID_PASSWORD sqlstate error code.  
  

Update shared memory configuration information for Linux

  
commit   : 8b2ae44dc8dd56511c7004c5b117b720081dc8fb    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Sat, 13 Mar 2010 11:00:19 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Sat, 13 Mar 2010 11:00:19 +0000    

Click here for diff

  
In particular, the assertion that shmall is sufficiently sized by default  
is slowly becoming untrue.  
  

Document what user name email symbols are supported by tsearch.

  
commit   : 5473df9eb7a827efa7a438723e07c90d785acd23    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sat, 13 Mar 2010 03:09:04 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sat, 13 Mar 2010 03:09:04 +0000    

Click here for diff

  
  

Allow underscores in tsearch email addressses, per RFC 5322 and report by Dan O’Hara.

  
commit   : 89b0095ebdfed9303c5a372f4717eae779cc4af6    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sat, 13 Mar 2010 00:41:58 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sat, 13 Mar 2010 00:41:58 +0000    

Click here for diff

  
Patch by Teodor Sigaev  
  

Small adjustment by pgindent.

  
commit   : 66b82c20d9686f6da2d7125bda4fe8d9c6db8428    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sat, 13 Mar 2010 00:40:43 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sat, 13 Mar 2010 00:40:43 +0000    

Click here for diff

  
  

Re-add comma, oops.

  
commit   : c24b2ef21781d0c848bdbcef294c02e6902d6295    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Fri, 12 Mar 2010 23:21:48 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Fri, 12 Mar 2010 23:21:48 +0000    

Click here for diff

  
  

Add some logging code for unexpected cases in pgstat.c, particularly being unable to read a stats file for reasons other than ENOENT, and having to reset last_statrequest because it’s later than current time in the collector. Not clear if this will shed any light on the “pgstat wait timeout” business, but it seems like a good idea in general.

  
commit   : 52e2b33a556ead1df365777ba2f3ad8accbbe504    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 12 Mar 2010 22:19:19 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 12 Mar 2010 22:19:19 +0000    

Click here for diff

  
In passing, do some message-style-police work on recently-added  
pgstat_reset_shared_counters code.  
  

Fix a commented-out block of code that pgindent didn’t understand properly; it’s been making that comment uglier with each run.

  
commit   : d75f7a01bf646b3ebe71688c31ffe56fc6fde9a8    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 12 Mar 2010 21:40:36 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 12 Mar 2010 21:40:36 +0000    

Click here for diff

  
  

Remove unnecessary comma in documentation.

  
commit   : cb08f6b68864b87af3a20d9ec721a99da742c970    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Fri, 12 Mar 2010 17:46:07 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Fri, 12 Mar 2010 17:46:07 +0000    

Click here for diff

  
  

Add missing reset of need_initialization in reloptions code.

  
commit   : 1f44a313bdffd887ddea1f51681420ce5621fb1d    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 11 Mar 2010 21:47:19 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 11 Mar 2010 21:47:19 +0000    

Click here for diff

  
This resulted in useless extra work during every call of parseRelOptions,  
but no bad effects other than that.  Noted by Alvaro.  
  

Modify psql’s \d printout to fold exclusion constraints in with regular indexes, rather than printing them twice. Per my gripe when the exclusion constraint feature was committed.

  
commit   : 924d6ed437ebe1c5e5536575b77856adc18782a2    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 11 Mar 2010 21:29:32 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 11 Mar 2010 21:29:32 +0000    

Click here for diff

  
  

Sync timezone code with tzcode 2010c from the Olson group. This fixes some corner cases that come up in certain timezones (apparently, only those with lots and lots of distinct TZ transition rules, as far as I can gather from a quick scan of their archives). Per suggestion from Jeevan Chalke.

  
commit   : f4898c945fb18c3ced03101adecb6c58e4128ad5    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 11 Mar 2010 18:43:24 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 11 Mar 2010 18:43:24 +0000    

Click here for diff

  
Back-patch to 8.4.  Possibly we need to push this into earlier releases  
as well, but I'm hesitant to update them to the 64-bit tzcode without  
more thought and testing.  
  

Fix bug in KnownAssignedXidsMany(). I saw this when looking at the assertion failure reported by Erik Rijkers, but this alone doesn’t explain the failure.

  
commit   : e0f9e2b648c8e6f237549c353b7b3179654451d1    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Thu, 11 Mar 2010 09:26:59 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Thu, 11 Mar 2010 09:26:59 +0000    

Click here for diff

  
  

Fix comment which was apparently copy-pasted from another function.

  
commit   : daaeac88aaf60823e1328fa950d324818638c934    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Thu, 11 Mar 2010 09:10:25 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Thu, 11 Mar 2010 09:10:25 +0000    

Click here for diff

  
  

Simplify a couple of pg_dump and psql \d queries about index constraints by joining to pg_constraint.conindid, instead of the former technique of joining indirectly through pg_depend. This is much more straightforward and probably faster as well. I had originally desisted from changing these queries when conindid was added because I was worried about losing performance, but if we join on conrelid as well as conindid then the index on conrelid can be used when pg_constraint is large.

  
commit   : e6555b436e44fc43f14b3d8c1f782fbd3924485d    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 11 Mar 2010 04:36:43 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 11 Mar 2010 04:36:43 +0000    

Click here for diff

  
  

Update comment for pg_constraint.conindid to mention that it’s used for exclusion constraints. Not sure how we managed to update the comment for it in catalogs.sgml but miss this one.

  
commit   : 4df5c6c7195cf9382d249d6371d2c8e02d46a7ae    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 11 Mar 2010 03:36:22 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 11 Mar 2010 03:36:22 +0000    

Click here for diff

  
  

Fix incorrect comment about permissions checking being done in utility.c.

  
commit   : 70aedc0c55b633da814ec12a5705cf5b09f4d6ba    
  
author   : Robert Haas <rhaas@postgresql.org>    
date     : Wed, 10 Mar 2010 19:48:39 +0000    
  
committer: Robert Haas <rhaas@postgresql.org>    
date     : Wed, 10 Mar 2010 19:48:39 +0000    

Click here for diff

  
Noted while reviewing a patch from KaiGai Kohei.  
  

pg_start_backup() can use a share lock to lock ControlFileLock instead of an exclusive lock.

  
commit   : 17d8de0e6102d288a0745cb30499411c2e7ad213    
  
author   : Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Wed, 10 Mar 2010 02:04:48 +0000    
  
committer: Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Wed, 10 Mar 2010 02:04:48 +0000    

Click here for diff

  
The change is almost for code cleanup. Since there seems to be no  
performance benefits from it, backports should not be needed.  
  
Fujii Masao  
  

Preliminary release notes for releases 8.4.3, 8.3.10, 8.2.16, 8.1.20, 8.0.24, 7.4.28.

  
commit   : 8c9a120f6b1e181812a31830416488bac2f8ba92    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 10 Mar 2010 01:58:11 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 10 Mar 2010 01:58:11 +0000    

Click here for diff

  
  

Use SvROK(sv) rather than directly checking SvTYPE(sv) == SVt_RV in plperl. The latter is considered unwarranted chumminess with the implementation, and can lead to crashes with recent Perl versions.

  
commit   : dac7a37dd3c66ba8cf120d997ea1a1c9d6a0d99d    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 9 Mar 2010 22:34:38 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 9 Mar 2010 22:34:38 +0000    

Click here for diff

  
Report and fix by Tim Bunce.  Back-patch to all versions containing the  
questionable coding pattern.  
  

Update time zone data files to tzdata release 2010d: DST law changes in Fiji, Samoa, Chile; corrections to recent changes in Paraguay and Bangladesh.

  
commit   : ff5ab91299ab2d9054d7571b2f7d931590288bd5    
  
author   : Alvaro Herrera <alvherre@alvh.no-ip.org>    
date     : Tue, 9 Mar 2010 14:27:28 +0000    
  
committer: Alvaro Herrera <alvherre@alvh.no-ip.org>    
date     : Tue, 9 Mar 2010 14:27:28 +0000    

Click here for diff

  
  

ecpg now adds a unique counter to its varchar struct definitions to make these definitions unique, too. It used to use the linenumber but in the rare case of two definitions in one line this was not unique.

  
commit   : 600be01e896a981390f6f74cd09de674d754071f    
  
author   : Michael Meskes <meskes@postgresql.org>    
date     : Tue, 9 Mar 2010 11:09:46 +0000    
  
committer: Michael Meskes <meskes@postgresql.org>    
date     : Tue, 9 Mar 2010 11:09:46 +0000    

Click here for diff

  
  

Add checks for valid encoding of query strings passed to SPI by plperl.

  
commit   : 6fcd5010e27348541a16a164988ef6a8a8ad9bcc    
  
author   : Andrew Dunstan <andrew@dunslane.net>    
date     : Tue, 9 Mar 2010 02:48:33 +0000    
  
committer: Andrew Dunstan <andrew@dunslane.net>    
date     : Tue, 9 Mar 2010 02:48:33 +0000    

Click here for diff

  
  

Return proper exit code (3) from psql when ON_ERROR_STOP=on and –single-transaction are both used and the failure happens in commit, e.g. failed deferred trigger. Also properly free BEGIN/COMMIT result structures from –single-transaction.

  
commit   : b989662bf14ba9c6b0e6b2d2171890a935f9bfcc    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Mon, 8 Mar 2010 23:03:00 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Mon, 8 Mar 2010 23:03:00 +0000    

Click here for diff

  
Per report from Dominic Bevacqua  
  

Add missing space in example.

  
commit   : aa8eed317257fd9d37e37aad669a8e8074c8b27e    
  
author   : Magnus Hagander <magnus@hagander.net>    
date     : Mon, 8 Mar 2010 12:38:37 +0000    
  
committer: Magnus Hagander <magnus@hagander.net>    
date     : Mon, 8 Mar 2010 12:38:37 +0000    

Click here for diff

  
Tim Landscheidt  
  

Better test the content of the SQLSTATE string in ecpglib than the pointer.

  
commit   : 6e2cf34ec12f26682a88c14b0d01867ecff8face    
  
author   : Michael Meskes <meskes@postgresql.org>    
date     : Mon, 8 Mar 2010 12:15:24 +0000    
  
committer: Michael Meskes <meskes@postgresql.org>    
date     : Mon, 8 Mar 2010 12:15:24 +0000    

Click here for diff

  
  

Require hostname to be set when using GSSAPI authentication. Without it, the GSSAPI libraries crash.

  
commit   : 2a0dec7888af165f48e5aa94b0262f8c0ac050b6    
  
author   : Magnus Hagander <magnus@hagander.net>    
date     : Mon, 8 Mar 2010 10:01:12 +0000    
  
committer: Magnus Hagander <magnus@hagander.net>    
date     : Mon, 8 Mar 2010 10:01:12 +0000    

Click here for diff

  
Noted by Zdenek Kotala  
  

Disallow gssapi authentication on local connections, since it requires a hostname to function.

  
commit   : 6c6ee75ad352fc586c14ec94eb2cb772bc37d233    
  
author   : Magnus Hagander <magnus@hagander.net>    
date     : Mon, 8 Mar 2010 09:57:26 +0000    
  
committer: Magnus Hagander <magnus@hagander.net>    
date     : Mon, 8 Mar 2010 09:57:26 +0000    

Click here for diff

  
Noted by Zdenek Kotala  
  

Update time zone data files to tzdata release 2010c: DST law changes in Bangladesh, Mexico, Paraguay.

  
commit   : 676b26dd9a2470b3e28294f5ee37fa47c24df13c    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 8 Mar 2010 01:18:09 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 8 Mar 2010 01:18:09 +0000    

Click here for diff

  
  

Revert patch for –psqlrc=FILENAME in psql.

  
commit   : 43d07d63b1970e7f8e1f0cecfd70b2a1a23c72a7    
  
author   : Magnus Hagander <magnus@hagander.net>    
date     : Sun, 7 Mar 2010 17:02:34 +0000    
  
committer: Magnus Hagander <magnus@hagander.net>    
date     : Sun, 7 Mar 2010 17:02:34 +0000    

Click here for diff

  
  

  
commit   : 153012c7d1cb8e9b4aa766e94a5f7b9875ead470    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 6 Mar 2010 23:10:42 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 6 Mar 2010 23:10:42 +0000    

Click here for diff

  
Back-patch to 8.4, where column-level privileges were introduced.  
  
Stephen Frost  
  

Add –psqlrc=FILENAME parameter to psql, to process an explicitly named file instead of ~/.psqlrc on startup.

  
commit   : 66c2cc2ba93ea9015b7ce43a2fb4edc601eaaf94    
  
author   : Magnus Hagander <magnus@hagander.net>    
date     : Sat, 6 Mar 2010 15:28:09 +0000    
  
committer: Magnus Hagander <magnus@hagander.net>    
date     : Sat, 6 Mar 2010 15:28:09 +0000    

Click here for diff

  
  

When reading pg_hba.conf and similar files, do not treat @file as an inclusion unless (1) the @ isn’t quoted and (2) the filename isn’t empty. This guards against unexpectedly treating usernames or other strings in “flat files” as inclusion requests, as seen in a recent trouble report from Ed L. The empty-filename case would be guaranteed to misbehave anyway, because our subsequent path-munging behavior results in trying to read the directory containing the current input file.

  
commit   : b8b34b7b44ee7d932b2a1317232ff15fb72cf1a7    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 6 Mar 2010 00:45:49 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 6 Mar 2010 00:45:49 +0000    

Click here for diff

  
I think this might finally explain the report at  
http://archives.postgresql.org/pgsql-bugs/2004-05/msg00132.php  
of a crash after printing "authentication file token too long, skipping",  
since I was able to duplicate that message (though not a crash) on a  
platform where stdio doesn't refuse to read directories.  We never got  
far in investigating that problem, but now I'm suspicious that the trigger  
condition was an @ in the flat password file.  
  
Back-patch to all active branches since the problem can be demonstrated in all  
branches except HEAD.  The test case, creating a user named "@", doesn't cause  
a problem in HEAD since we got rid of the flat password file.  Nonetheless it  
seems like a good idea to not consider quoted @ as a file inclusion spec,  
so I changed HEAD too.  
  

In case the connection magically disappears libecpg only returns an internal error sqlstate. This change makes it return a correct value..

  
commit   : 8eb81949a555075efefec70af37acf1f739dc420    
  
author   : Michael Meskes <meskes@postgresql.org>    
date     : Fri, 5 Mar 2010 13:57:09 +0000    
  
committer: Michael Meskes <meskes@postgresql.org>    
date     : Fri, 5 Mar 2010 13:57:09 +0000    

Click here for diff

  
  

Fix IsBinaryCoercible to not confuse a cast using in/out functions with binary compatibility.

  
commit   : 3bdede3974569fa18b0d0684c07a6305df2fca06    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Thu, 4 Mar 2010 09:39:53 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Thu, 4 Mar 2010 09:39:53 +0000    

Click here for diff

  
Backpatch to 8.4 where INOUT casts were introduced.  
  

Add C comment about DDL changes possibly causing pg_dump errors.

  
commit   : 0ea0afa44452b617ce1259cff27b2a24247e8b8e    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 3 Mar 2010 23:38:44 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 3 Mar 2010 23:38:44 +0000    

Click here for diff

  
  

Document that “Q” is ignored by to_date and to_timestamp. Add C comment about the behavior.

  
commit   : ea066f87c3e98166639d9f08a15d5b551f62d3ed    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 3 Mar 2010 22:28:42 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 3 Mar 2010 22:28:42 +0000    

Click here for diff

  
Document that quotes in to_date, to_timestamp, to_number skip input  
characters.  
  

Fix a couple of places that would loop forever if attempts to read a stdio file set ferror() but never set feof(). This is known to be the case for recent glibc when trying to read a directory as a file, and might be true for other platforms/cases too. Per report from Ed L. (There is more that we ought to do about his report, but this is one easily identifiable issue.)

  
commit   : 61d75116a72329ba50cb9e89379eaf5ceab02419    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 3 Mar 2010 20:31:09 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 3 Mar 2010 20:31:09 +0000    

Click here for diff

  
  

Fix pg_dump of ACLs of foreign servers. The command to grant/revoke privileges of foreign servers is “GRANT … ON FOREIGN SERVER …“.

  
commit   : eb1c3b5e3b076f919f4c7f4864492f8c323088d2    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Wed, 3 Mar 2010 20:10:48 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Wed, 3 Mar 2010 20:10:48 +0000    

Click here for diff

  
  

Make contrib/xml2 use core xml.c’s error handler, when available (that is, in versions >= 8.3). The core code is more robust and efficient than what was there before, and this also reduces risks involved in swapping different libxml error handler settings.

  
commit   : 5e47403be31fb7501ba6fb6ebda82300a10cf8b2    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 3 Mar 2010 19:10:22 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 3 Mar 2010 19:10:22 +0000    

Click here for diff

  
Before 8.3, there is still some risk of problems if add-on modules such as  
Perl invoke libxml without setting their own error handler.  Given the lack  
of reports I'm not sure there's a risk in practice, so I didn't take the  
step of actually duplicating the core code into older contrib/xml2 branches.  
Instead I just tweaked the existing code to ensure it didn't leave a dangling  
pointer to short-lived memory when throwing an error.  
  

Export xml.c’s libxml-error-handling support so that contrib/xml2 can use it too, instead of duplicating the functionality (badly).

  
commit   : 8bf14182cfeeae2ad5e5feb792701250e1218638    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 3 Mar 2010 17:29:45 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 3 Mar 2010 17:29:45 +0000    

Click here for diff

  
I renamed xml_init to pg_xml_init, because the former seemed just a bit too  
generic to be safe as a global symbol.  I considered likewise renaming  
xml_ereport to pg_xml_ereport, but felt that the reference to ereport probably  
made it sufficiently PG-centric already.  
  

Make iconv work like other optional libraries for MSVC.

  
commit   : 3a8497892c69352e48f5f26e2a2299ee5a7934a5    
  
author   : Andrew Dunstan <andrew@dunslane.net>    
date     : Wed, 3 Mar 2010 03:29:37 +0000    
  
committer: Andrew Dunstan <andrew@dunslane.net>    
date     : Wed, 3 Mar 2010 03:29:37 +0000    

Click here for diff

  
  

Fix SGML markup.

  
commit   : 8b420770b3457d97e608442603f548573afd6bdf    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 3 Mar 2010 03:23:12 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 3 Mar 2010 03:23:12 +0000    

Click here for diff

  
  

Restructure CREATE FUNCTION “NOTES” section to be shorter; move items into proper sections, per suggestion from Tom.

  
commit   : d859b17f0f262c39d9e1041bab75d34e0559e7e5    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 3 Mar 2010 03:14:08 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 3 Mar 2010 03:14:08 +0000    

Click here for diff

  
  

Instead of trying (and failing) to allow <

  
commit   : 77e0d7b3eb0270fa48dc3e9b42b71618033f7ed5    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 3 Mar 2010 01:53:17 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 3 Mar 2010 01:53:17 +0000    

Click here for diff

  
  

Adjust max_standby_delay documentation to be clearer, and mention that two adjacent long-running queries have much less than max_standby_delay before query cancel is possible.

  
commit   : 7c55be792b6a59b3524041e63e976fd0c2dea38c    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 2 Mar 2010 23:38:17 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 2 Mar 2010 23:38:17 +0000    

Click here for diff

  
  

Add missing library and include dir for XSLT in MSVC builds

  
commit   : 05028cc33f1c3ff227cf4e3a8a438847f491be94    
  
author   : Andrew Dunstan <andrew@dunslane.net>    
date     : Tue, 2 Mar 2010 22:02:31 +0000    
  
committer: Andrew Dunstan <andrew@dunslane.net>    
date     : Tue, 2 Mar 2010 22:02:31 +0000    

Click here for diff

  
  

Document the effect of max_standby_delay on increasing the delay of data from master to slave, and discourage its use during slave/master keep-xid-alive connections.

  
commit   : b098dbec0d068a2aa13effb11fe1e07fb1fcf5eb    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 2 Mar 2010 21:18:59 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 2 Mar 2010 21:18:59 +0000    

Click here for diff

  
  

Update keywords list for 9.0

  
commit   : 9393bc62c5af79b37b7734de4ed7a048a9e029ca    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Tue, 2 Mar 2010 20:40:48 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Tue, 2 Mar 2010 20:40:48 +0000    

Click here for diff

  
  

Do not run regression tests for contrib/xml2 on MSVC unless building with XML

  
commit   : 4ab911da74827133bfa7073b55332ef8a5a652ea    
  
author   : Andrew Dunstan <andrew@dunslane.net>    
date     : Tue, 2 Mar 2010 17:06:51 +0000    
  
committer: Andrew Dunstan <andrew@dunslane.net>    
date     : Tue, 2 Mar 2010 17:06:51 +0000    

Click here for diff

  
  

Cause plpgsql to throw an error if “INTO rowtype_var” is followed by a comma. Per bug #5352, this helps to provide a useful error message if the user tries to do something presently unsupported, namely use a rowtype variable as a member of a multiple-item INTO list.

  
commit   : e664969f0f3b7dc557d9df9d30d03b7103f214a3    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 2 Mar 2010 16:14:39 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 2 Mar 2010 16:14:39 +0000    

Click here for diff

  
  

Add XSLT defines for MSVC builds

  
commit   : 5600aaccbd5abed768f70b9cf336cc51a108bafb    
  
author   : Andrew Dunstan <andrew@dunslane.net>    
date     : Tue, 2 Mar 2010 12:29:14 +0000    
  
committer: Andrew Dunstan <andrew@dunslane.net>    
date     : Tue, 2 Mar 2010 12:29:14 +0000    

Click here for diff

  
  

Fix translation of strings in psql \d output (translation in headers worked, but not in cells).

  
commit   : 95c833b41f084980f18b3ca6c72fac1c7376b9d6    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Mon, 1 Mar 2010 21:27:26 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Mon, 1 Mar 2010 21:27:26 +0000    

Click here for diff

  
  

Fix numericlocale psql option when used with a null string and latex and troff formats; a null string must not be formatted as a numeric. The more exotic formats latex and troff also incorrectly formatted all strings as numerics when numericlocale was on.

  
commit   : 93df658a0189cfeda273f6efd2228578bb7933d3    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Mon, 1 Mar 2010 20:55:45 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Mon, 1 Mar 2010 20:55:45 +0000    

Click here for diff

  
Backpatch to 8.1 where numericlocale option was added.  
  
This fixes bug #5355 reported by Andy Lester.  
  

Fix contrib/xml2 so regression test still works when it’s built without libxslt.

  
commit   : d6a6f8c6be4b6d6a9e90e92d91a83225bfe8d29d    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 1 Mar 2010 18:07:59 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 1 Mar 2010 18:07:59 +0000    

Click here for diff

  
This involves modifying the module to have a stable ABI, that is, the  
xslt_process() function still exists even without libxslt.  It throws a  
runtime error if called, but doesn't prevent executing the CREATE FUNCTION  
call.  This is a good thing anyway to simplify cross-version upgrades.  
  

It’s clearly now pointless to do backwards compatible parsing of this, since we released a version without it, so remove the comment that says we might want to do that.

  
commit   : 8373490607c437445163da8b7a44787f997ebf84    
  
author   : Magnus Hagander <magnus@hagander.net>    
date     : Mon, 1 Mar 2010 16:02:01 +0000    
  
committer: Magnus Hagander <magnus@hagander.net>    
date     : Mon, 1 Mar 2010 16:02:01 +0000    

Click here for diff

  
  

Buildfarm still unhappy, so I’ll bet it’s EACCES not EPERM.

  
commit   : 1ecafd622e4781899199f4e244a67b5c583c19a7    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 1 Mar 2010 14:54:00 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 1 Mar 2010 14:54:00 +0000    

Click here for diff

  
  

Remove xmlCleanupParser calls from contrib/xml2.

  
commit   : a102090995858cdd324b1afe81f2f7735ef7f3a1    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 1 Mar 2010 05:16:35 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 1 Mar 2010 05:16:35 +0000    

Click here for diff

  
These are unnecessary and probably dangerous.  I don't see any immediate  
risk situations in the core XML support or contrib/xml2 itself, but there  
could be issues with external uses of libxml2, and in any case it's an  
accident waiting to happen.  
  

add EPERM to the list of return codes to expect from opening directories based on Vista results

  
commit   : 73632828aca2d252b4ea14706da6d2514c2750f1    
  
author   : Greg Stark <stark@mit.edu>    
date     : Mon, 1 Mar 2010 00:04:06 +0000    
  
committer: Greg Stark <stark@mit.edu>    
date     : Mon, 1 Mar 2010 00:04:06 +0000    

Click here for diff

  
  

Fix up memory management problems in contrib/xml2.

  
commit   : 936c4af1c6876e09e914eca91c37949e6885b02e    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 28 Feb 2010 21:31:57 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 28 Feb 2010 21:31:57 +0000    

Click here for diff

  
Get rid of the code that attempted to funnel libxml2's memory allocations  
into palloc.   We already knew from experience with the core xml datatype  
that trying to do this is simply not reliable.  Unlike the core code, I  
did not bother adding a lot of PG_TRY/PG_CATCH logic to try to ensure that  
everything is cleaned up on error exit.  Hence, we might leak some memory  
if one of these functions fails partway through.  Given the deprecated  
status of this contrib module and the fact that errors partway through  
the functions shouldn't be too common, it doesn't seem worth worrying about.  
  
Also fix a separate bug in xpath_table, that it did the wrong things  
if given a result tuple descriptor with less than 2 columns.  While  
such a case isn't very useful in practice, we shouldn't fail or stomp  
memory when it occurs.  
  
Add some simple regression tests based on all the reported crash cases  
that I have on hand.  
  
This should be back-patched, but let's see if the buildfarm likes it first.  
  

Second try at fsyncing directories in CREATE DATABASE. Let’s see what the build farm says of opening directories read-only and ignoring EBADF from fsync of directories

  
commit   : 7d7db18a68b7a16df85e8dc9d345b3ee7f39d460    
  
author   : Greg Stark <stark@mit.edu>    
date     : Sun, 28 Feb 2010 21:05:30 +0000    
  
committer: Greg Stark <stark@mit.edu>    
date     : Sun, 28 Feb 2010 21:05:30 +0000    

Click here for diff

  
  

Assorted code cleanup for contrib/xml2. No change in functionality, just make it a bit less ugly in places.

  
commit   : a12333eed2af3399cd70170c070a6aa9a4550bc5    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 28 Feb 2010 19:51:37 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sun, 28 Feb 2010 19:51:37 +0000    

Click here for diff

  
  

Update complex locale example in the documentation.

  
commit   : bd7246f65e222f57fa1c1bafcdfa87f4eec3f255    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sun, 28 Feb 2010 02:20:40 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sun, 28 Feb 2010 02:20:40 +0000    

Click here for diff

  
  

*** empty log message ***

  
commit   : 0ff1c3e547d043f6d6f83e94ee48418a2bf4391b    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sun, 28 Feb 2010 02:19:47 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sun, 28 Feb 2010 02:19:47 +0000    

Click here for diff

  
  

Make sure ecpg uses the same header files in the same order as the backend.

  
commit   : d6166a5d7ed2caf58790f528bbe271f6830d17c0    
  
author   : Michael Meskes <meskes@postgresql.org>    
date     : Sat, 27 Feb 2010 21:56:16 +0000    
  
committer: Michael Meskes <meskes@postgresql.org>    
date     : Sat, 27 Feb 2010 21:56:16 +0000    

Click here for diff

  
  

Insert a hack into get_float8_nan (both core and ecpg copies) to deal with the fact that NetBSD/mips is currently broken, as per buildfarm member pika.

  
commit   : 4d17a2146ca7f48bca1da4c73a745fb09ec43ed3    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 27 Feb 2010 21:53:21 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 27 Feb 2010 21:53:21 +0000    

Click here for diff

  
Also add regression tests to ensure that get_float8_nan and get_float4_nan  
are exercised even on platforms where they are not needed by  
float8in/float4in.  
  
Zoltán Böszörményi and Tom Lane  
  

Back out unintended change to pg_locale.c.

  
commit   : bf379837dcd7f0f080d61955ed630b023a3b392d    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sat, 27 Feb 2010 20:20:44 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sat, 27 Feb 2010 20:20:44 +0000    

Click here for diff

  
  

Document ATAPI FLUSH CACHE EXT.

  
commit   : 9295eea8391abaa1f5ecaa50cc39c4e8165f74b4    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sat, 27 Feb 2010 20:16:17 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sat, 27 Feb 2010 20:16:17 +0000    

Click here for diff

  
  

Document trace_recovery_messages() parameter as an enum, not string.

  
commit   : c685b942e532e0937d3495967fc0446dcf2a09e6    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sat, 27 Feb 2010 14:46:05 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sat, 27 Feb 2010 14:46:05 +0000    

Click here for diff

  
Fujii Masao  
  

Document max_standby_delay=-1 option, now that it’s allowed again.

  
commit   : 7ab9305cc917181e04ed3f933003ee563872e212    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Sat, 27 Feb 2010 09:29:20 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Sat, 27 Feb 2010 09:29:20 +0000    

Click here for diff

  
  

Entity-ify a few new uses of literal <, >, and &.

  
commit   : 4ec700a8ec2104b887747c26622b819f83557127    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 27 Feb 2010 04:29:44 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 27 Feb 2010 04:29:44 +0000    

Click here for diff

  
  

Undo some more pgindent breakage. Per buildfarm.

  
commit   : 5667a53b78eda5bb9fe6944d8f35ef083b4d78a8    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 27 Feb 2010 03:55:52 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 27 Feb 2010 03:55:52 +0000    

Click here for diff

  
  

Use <> for libpq #include in example programs, per suggestion from Josh Berkus.

  
commit   : f7c93458a9520106fe65bdc550245511cb1e270e    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sat, 27 Feb 2010 03:41:34 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sat, 27 Feb 2010 03:41:34 +0000    

Click here for diff

  
  

Document ATAPI drive flush command, and mention SSD drives.

  
commit   : adfb44458163bf749a2ec04db52ae88051cca498    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sat, 27 Feb 2010 01:39:46 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sat, 27 Feb 2010 01:39:46 +0000    

Click here for diff

  
  

Suggest gmake installcheck-world for pgindent testing.

  
commit   : 4b0f822c77491264ee14a34d6dc3effbeb6d695a    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Fri, 26 Feb 2010 18:00:15 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Fri, 26 Feb 2010 18:00:15 +0000    

Click here for diff

  
  

Revert pgindent changes to ecpg include files that are part of ecpg regession test output, and update pgindent script to avoid them in the future.

  
commit   : 2cc6ff45f8813593e7c8c0757cd13a7b63a41768    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Fri, 26 Feb 2010 17:07:55 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Fri, 26 Feb 2010 17:07:55 +0000    

Click here for diff

  
  

Wording improvements to README.

  
commit   : 98c356c8ad8b37cbf18932800a73e57d2533bba6    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Fri, 26 Feb 2010 15:57:34 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Fri, 26 Feb 2010 15:57:34 +0000    

Click here for diff

  
  

Update pgindent docs to use maintainer-clean.

  
commit   : 55d1402f61d1f7a8c7e5cddd2362055c6afa326b    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Fri, 26 Feb 2010 15:42:36 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Fri, 26 Feb 2010 15:42:36 +0000    

Click here for diff

  
  

Document why pgindent wants a fresh CVS checkout.

  
commit   : e0d4b9c66f742145dfd244ab282f66e502eac74e    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Fri, 26 Feb 2010 13:50:34 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Fri, 26 Feb 2010 13:50:34 +0000    

Click here for diff

  
  

In vacuumdb –help, call analyze “statistics”, not “hints”.

  
commit   : 17b5b9909be74ded7ba54eb684bd311739ca80f2    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Fri, 26 Feb 2010 04:14:36 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Fri, 26 Feb 2010 04:14:36 +0000    

Click here for diff

  
  

Call output file typedefs.list; update README.

  
commit   : 637611585b31f05effd1b0912030f54a74b01a37    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Fri, 26 Feb 2010 02:58:49 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Fri, 26 Feb 2010 02:58:49 +0000    

Click here for diff

  
  

Document pg_restore –jobs as a performance enhancement.

  
commit   : ca8e3a51a05b1265f36f82497b039d7783c3dd98    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Fri, 26 Feb 2010 02:31:52 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Fri, 26 Feb 2010 02:31:52 +0000    

Click here for diff

  
  

Update pgindent instructions.

  
commit   : 4f96ddd1d36f33831a8452a8f6f8f7d6a08f7cde    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Fri, 26 Feb 2010 02:11:52 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Fri, 26 Feb 2010 02:11:52 +0000    

Click here for diff

  
  

pgindent run for 9.0

  
commit   : 65e806cba1f0f154d51caa7478e7192ce58d1056    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Fri, 26 Feb 2010 02:01:40 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Fri, 26 Feb 2010 02:01:40 +0000    

Click here for diff

  
  

Add pgindent typedefs file to CVS.

  
commit   : 16040575a04486d8e0823b4e304f4933144baf90    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Fri, 26 Feb 2010 01:55:35 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Fri, 26 Feb 2010 01:55:35 +0000    

Click here for diff

  
  

Update pgindent instructions to avoid changes to flex output files.

  
commit   : a8307560e0e261b9669a92c2aa0f917b1f01c699    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Fri, 26 Feb 2010 01:40:15 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Fri, 26 Feb 2010 01:40:15 +0000    

Click here for diff

  
  

Remove ‘emphasis’ markup inside literal; not allowed.

  
commit   : 87f609c4feb14d2bbe77b80b0e7369908a24eda3    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Fri, 26 Feb 2010 01:11:46 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Fri, 26 Feb 2010 01:11:46 +0000    

Click here for diff

  
  

Document that after triggers that need to see changed rows should not be marked stable.

  
commit   : d98039d8966dee1ce8a7dfc8687ebdbb4d77b3c6    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 25 Feb 2010 22:24:00 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 25 Feb 2010 22:24:00 +0000    

Click here for diff

  
  

Allow predicate_refuted_by() to deduce that NOT A refutes A.

  
commit   : 99419d36f2214458cc1f495b80be36da95291596    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 25 Feb 2010 20:59:53 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 25 Feb 2010 20:59:53 +0000    

Click here for diff

  
We had originally made the stronger assumption that NOT A refutes any B  
if B implies A, but this fails in three-valued logic, because we need to  
prove B is false not just that it's not true.  However the logic does  
go through if B is equal to A.  
  
Recognizing this limited case is enough to handle examples that arise when  
we have simplified "bool_var = true" or "bool_var = false" to just "bool_var"  
or "NOT bool_var".  If we had not done that simplification then the  
btree-operator proof logic would have been able to prove that the expressions  
were contradictory, but only for identical expressions being compared to the  
constants; so handling identical A and B covers all the same cases.  
  
The motivation for doing this is to avoid unexpected asymmetrical behavior  
when a partitioned table uses a boolean partitioning column, as in today's  
gripe from Dominik Sander.  
  
Back-patch to 8.2, which is as far back as predicate_refuted_by attempts to  
do anything at all with NOTs.  
  

Document clearly the meaning of none/all for log_statements.

  
commit   : 1951c97805d52e56b3fbdb2618fcde56d11a79f4    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 25 Feb 2010 19:20:38 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 25 Feb 2010 19:20:38 +0000    

Click here for diff

  
  

Add C comment that do_to_timestamp() lacks error checking.

  
commit   : 89ce2bfc131ffa5249e162c02ead66669adb3340    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 25 Feb 2010 18:36:14 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 25 Feb 2010 18:36:14 +0000    

Click here for diff

  
  

Clearly document that timestamp alone means timestamp without timezone, per SQL standard, and mention 7.3 behavior at the end.

  
commit   : bfd0cd5568e8fe039cb002bcf97d1d2dd67f6493    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 25 Feb 2010 18:16:53 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 25 Feb 2010 18:16:53 +0000    

Click here for diff

  
  

Add configuration parameter ssl_renegotiation_limit to control how often we do SSL session key renegotiation. Can be set to 0 to disable renegotiation completely, which is required if a broken SSL library is used (broken patches to CVE-2009-3555 a known cause) or when using a client library that can’t do renegotiation.

  
commit   : 413d34be4e1f47ce52b02a6c60858ef6f1285578    
  
author   : Magnus Hagander <magnus@hagander.net>    
date     : Thu, 25 Feb 2010 13:26:16 +0000    
  
committer: Magnus Hagander <magnus@hagander.net>    
date     : Thu, 25 Feb 2010 13:26:16 +0000    

Click here for diff

  
  

Fix typos, per Richard Huxton

  
commit   : 0ccc5153f81ccf71c255cd05186d0bb31a29f779    
  
author   : Magnus Hagander <magnus@hagander.net>    
date     : Thu, 25 Feb 2010 10:02:30 +0000    
  
committer: Magnus Hagander <magnus@hagander.net>    
date     : Thu, 25 Feb 2010 10:02:30 +0000    

Click here for diff

  
  

Clarify that the connection string for primary_conninfo is in the same format as in PQconnectdb(). As pointed out by Thom Brown.

  
commit   : 0a4807dd93895924ae43d9636b2bf0a3354f3b90    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Thu, 25 Feb 2010 09:32:19 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Thu, 25 Feb 2010 09:32:19 +0000    

Click here for diff

  
  

Fix typo.

  
commit   : 6e11a10c4ca2f01143d237e9d110a20d63987291    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Thu, 25 Feb 2010 09:16:42 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Thu, 25 Feb 2010 09:16:42 +0000    

Click here for diff

  
  

Small streaming replication document improvements. Be more explicit that it’s asynchronous.

  
commit   : 7c6c09c0390d8e798605533c7063915b98f7cc0d    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Thu, 25 Feb 2010 08:57:47 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Thu, 25 Feb 2010 08:57:47 +0000    

Click here for diff

  
  

Fix streaming replication starting at the very first WAL segment. Per complaint from Greg Stark.

  
commit   : cd2b7d3c4d1b3daa4f8e07d5702ed9e699adc361    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Thu, 25 Feb 2010 07:31:40 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Thu, 25 Feb 2010 07:31:40 +0000    

Click here for diff

  
  

Improve warning about creating nested named subroutines in plperl. Per discussion.

  
commit   : aed0829c63e6b167082235da0718c906ba248229    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 25 Feb 2010 03:08:07 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 25 Feb 2010 03:08:07 +0000    

Click here for diff

  
  

Make pg_stop_backup’s reporting a bit more verbose in hopes of making error cases less intimidating for novices. Per discussion.

  
commit   : a2239b96e0236b87ef479456db9f719e17f35a22    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 25 Feb 2010 02:17:50 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 25 Feb 2010 02:17:50 +0000    

Click here for diff

  
Greg Smith  
  

Allow zero-dimensional (ie, empty) arrays in contrib/ltree operations.

  
commit   : 29d2f86a312e0c2060d4482649b26e9c33b760b5    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 24 Feb 2010 18:02:24 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 24 Feb 2010 18:02:24 +0000    

Click here for diff

  
The main motivation for changing this is bug #4921, in which it's pointed out  
that it's no longer safe to apply ltree operations to the result of  
ARRAY(SELECT ...) if the sub-select might return no rows.  Before 8.3,  
the ARRAY() construct would return NULL, which might or might not be helpful  
but at least it wouldn't result in an error.  Now it returns an empty array  
which results in a failure for no good reason, since the ltree operations  
are all perfectly capable of dealing with zero-element arrays.  
  
As far as I can find, these ltree functions are the only places where zero  
array dimensionality is rejected unnecessarily.  
  
Back-patch to 8.3 to prevent behavioral regression of queries that worked  
in older releases.  
  

Document that pg_restore -t can use -n for its schema qualification.

  
commit   : 673fb4da02fa574756818bc761c41b7bc0eb4964    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 24 Feb 2010 16:27:40 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 24 Feb 2010 16:27:40 +0000    

Click here for diff

  
  

Revert removal of pre-7.4 documenation behavior mentions.

  
commit   : 99ef5152801789dfe04b76a4feb675e4191b72e5    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 24 Feb 2010 15:54:31 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 24 Feb 2010 15:54:31 +0000    

Click here for diff

  
  

Remove stray semicolon, per report from strk

  
commit   : b5a6a52fba5261ab04b287dc3fa4de2bb9c6fbdc    
  
author   : Alvaro Herrera <alvherre@alvh.no-ip.org>    
date     : Wed, 24 Feb 2010 14:10:24 +0000    
  
committer: Alvaro Herrera <alvherre@alvh.no-ip.org>    
date     : Wed, 24 Feb 2010 14:10:24 +0000    

Click here for diff

  
  

  
commit   : 912eb88c7d2511086cb6f5257b788d8944d7344f    
  
author   : Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Wed, 24 Feb 2010 05:20:49 +0000    
  
committer: Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Wed, 24 Feb 2010 05:20:49 +0000    

Click here for diff

  
  

Remove pre-7.4 documentaiton mentions, now that 8.0 is the oldest supported release.

  
commit   : 7bfd95a4a2d2016e213461401718ba7cd813ed50    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Wed, 24 Feb 2010 03:33:49 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Wed, 24 Feb 2010 03:33:49 +0000    

Click here for diff

  
  

Fix patch for printing backend and pg_dump versions so that it works in a desirable fashion in archive-dump cases, ie you should get the pg_dump version not the pg_restore version.

  
commit   : 6a2e19d96d05130399328d1416b88e6f9943a5ff    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 24 Feb 2010 02:42:55 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 24 Feb 2010 02:42:55 +0000    

Click here for diff

  
  

Un-break pg_dump for the case of zero-column tables.

  
commit   : 354547b0155ca9c2918d24b9dbf48eb04862ee38    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 24 Feb 2010 02:15:58 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 24 Feb 2010 02:15:58 +0000    

Click here for diff

  
This was evidently broken by the CREATE TABLE OF TYPE patch.  It would have  
been noticed if anyone had bothered to try dumping and restoring the  
regression database ...  
  

Use CREATE OR REPLACE LANGUAGE in pg_dump to avoid the need for a couple of significantly uglier kluges that were working around the change in plpgsql’s preinstalled status.

  
commit   : 24ac52c3f1f7f408820dc9eff001e2c6bc0941a1    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 24 Feb 2010 01:57:16 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 24 Feb 2010 01:57:16 +0000    

Click here for diff

  
  

Make pg_regress use CREATE OR REPLACE LANGUAGE, so that –load-language will work whether or not the specified language is preinstalled. This responds to some complaints about having to change test scripts because plpgsql is preinstalled as of 9.0.

  
commit   : b951c03f88129d2814dca5239f57653c8d6284d1    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 24 Feb 2010 01:35:14 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 24 Feb 2010 01:35:14 +0000    

Click here for diff

  
  

Add an OR REPLACE option to CREATE LANGUAGE.

  
commit   : 11b58470581f1c8cfad670c57ac3ffe77d1f0cdd    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 23 Feb 2010 22:51:43 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 23 Feb 2010 22:51:43 +0000    

Click here for diff

  
This operates in the same way as other CREATE OR REPLACE commands, ie,  
it replaces everything but the ownership and ACL lists of an existing  
entry, and requires the caller to have owner privileges for that entry.  
  
While modifying an existing language has some use in development scenarios,  
in typical usage all the "replaced" values come from pg_pltemplate so there  
will be no actual change in the language definition.  The reason for adding  
this is mainly to allow programs to ensure that a language exists without  
triggering an error if it already does exist.  
  
This commit just adds and documents the new option.  A followon patch  
will use it to clean up some unpleasant cases in pg_dump and pg_regress.  
  

Modify freebsd start script to just exit 0 with message.

  
commit   : c4fc082a5ac11c1206ed6707e3644914db36c6c3    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 23 Feb 2010 22:17:25 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 23 Feb 2010 22:17:25 +0000    

Click here for diff

  
  

Update startup scripts for Linux and FreeBSD.

  
commit   : 1f0cf56be2b3289a1d46c503bbaef602720a3fe7    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 23 Feb 2010 22:15:35 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 23 Feb 2010 22:15:35 +0000    

Click here for diff

  
Kevin Grittner  
  

Have pg_dump (-v) verbose mode output the pg_dump and server versions in text output mode, like we do in custom output mode.

  
commit   : 28cdf5f7ab83717ad76773ab1a24e957e91a193d    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 23 Feb 2010 21:48:32 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 23 Feb 2010 21:48:32 +0000    

Click here for diff

  
Jim Cox  
  

Revert recent COPY manual change about encoding; add mention of “server”.

  
commit   : edf344a5e3bde87d8d58ca239842e0301039a9b9    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 23 Feb 2010 21:38:35 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 23 Feb 2010 21:38:35 +0000    

Click here for diff

  
  

Fix configure’s regexp for extracting the Perl version number from perl -v output. Per bug #5339, Perl 5.11 has changed the format of that output enough to break the previous coding.

  
commit   : dc43e2f54064504426f7f8d9219608476bd27415    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 23 Feb 2010 18:35:07 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 23 Feb 2010 18:35:07 +0000    

Click here for diff

  
Alex Hunsaker  
  

Clarify statements about tar archive format.

  
commit   : 1bc8acca252275f11537e871ceb6fcc667982dd1    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 23 Feb 2010 17:28:09 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 23 Feb 2010 17:28:09 +0000    

Click here for diff

  
  

Minor style policing for error messages in pg_dump tar code. Notably, change “dumping data out of order is not supported” to “restoring data out of order is not supported”, because you get that error during pg_restore not pg_dump. Also fix some comments that didn’t look so good after being pgindented as perhaps they did originally.

  
commit   : 8a12aac32b49bb5d71898a19b0756e83a5c032b4    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 23 Feb 2010 16:55:22 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 23 Feb 2010 16:55:22 +0000    

Click here for diff

  
  

Revert recent change of to_char(‘HH12’) handling for intervals; instead improve documentation, and add C comment.

  
commit   : a54803149a7beeea6dc8e624c3da561b7f6f5fc9    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 23 Feb 2010 16:14:26 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 23 Feb 2010 16:14:26 +0000    

Click here for diff

  
  

Secondary patch to fix interval to_char() for “HH” where hours >= 12.

  
commit   : 4f56dc3fb4266565650542f2a8cb6babe4b46d11    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 23 Feb 2010 06:29:01 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 23 Feb 2010 06:29:01 +0000    

Click here for diff

  
  

Some platforms reject fsync() on files opened O_RDONLY.

  
commit   : c3a24e3143e35af141145cdb082a6e66dded922b    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 23 Feb 2010 05:44:55 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 23 Feb 2010 05:44:55 +0000    

Click here for diff

  
  

Make documentation more direct about the handling of COPY files based on the client encoding.

  
commit   : 1180b640759b32d63aa95fe8c4a44bec06c65ccb    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 23 Feb 2010 05:17:33 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 23 Feb 2010 05:17:33 +0000    

Click here for diff

  
  

Document that expression indexes that call functions allow function-level statistics.

  
commit   : 1379fb052fd18e87a5102e793bdb5b8bc2bf5d17    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 23 Feb 2010 02:47:27 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 23 Feb 2010 02:47:27 +0000    

Click here for diff

  
  

Supress convertion of zero hours to ‘12’ for intervals when using to_char with HH, e.g.

  
commit   : 7cdadc62eac79ee9bd05b6a74d3ddfb96924a439    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 23 Feb 2010 01:42:19 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 23 Feb 2010 01:42:19 +0000    

Click here for diff

  
	to_char(interval '0d 0h 12m 44s', 'DD HH24 MI SS');  
  
now returns:  
  
	 00 00 12 44  
  
not:  
  
	 00 12 12 44  
  

Update pg_restore documentation to show new pg_restore custom listing format.

  
commit   : 485b19ec3c60697be5a06da90b75397805146ef3    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Tue, 23 Feb 2010 00:21:19 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Tue, 23 Feb 2010 00:21:19 +0000    

Click here for diff

  
Pavel Golub  
  

Remove long-commented-out paragraph in documentation about function inheritance in create table, per Andrew Dunstan.

  
commit   : 752672ced766e39f00375afca730db13b861d624    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Mon, 22 Feb 2010 23:51:40 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Mon, 22 Feb 2010 23:51:40 +0000    

Click here for diff

  
  

Document that pg_ctl cares about the PGHOST environment variable.

  
commit   : c750cb4bd35d884b2a04bd8776fe0cee9b491760    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Mon, 22 Feb 2010 22:30:10 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Mon, 22 Feb 2010 22:30:10 +0000    

Click here for diff

  
  

Revert configure warning to use “official distribution”.

  
commit   : b4689bfb00a6d256a74a0c275378a0b42a22acfd    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Mon, 22 Feb 2010 21:16:50 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Mon, 22 Feb 2010 21:16:50 +0000    

Click here for diff

  
  

Remove protocol documentation paragraph about environment variable passing being “covered elsewhere”, per Dave Page.

  
commit   : f235c9208d2b411f14e5a50edac7dbdaebb10cb0    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Mon, 22 Feb 2010 18:12:04 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Mon, 22 Feb 2010 18:12:04 +0000    

Click here for diff

  
  

Use the term “bundled distribution” instead of “official distribution” in configure warnings.

  
commit   : 6a0b6421e27a27f35d847024dca33750403859ab    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Mon, 22 Feb 2010 18:02:06 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Mon, 22 Feb 2010 18:02:06 +0000    

Click here for diff

  
  

Briefly document in two places that pg_dump and pg_dumpall cannot be used for continuous archiving.

  
commit   : dd1486ccd485ca6b9580dba0a7e478393a1b8fcb    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Mon, 22 Feb 2010 17:15:10 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Mon, 22 Feb 2010 17:15:10 +0000    

Click here for diff

  
  

Let’s try forcing errno to zero before issuing fsync. The current buildfarm results claiming EBADF seem improbable enough that I’m not convinced fsync is really returning that — could it be failing to set errno at all?

  
commit   : 9dd6c4686bc496912f1b4958139931ef6a6f029b    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 22 Feb 2010 15:29:46 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 22 Feb 2010 15:29:46 +0000    

Click here for diff

  
  

Adjust pg_fsync_writethrough so that it will set errno when failing on a platform that doesn’t support this operation. The former coding would allow an unrelated errno to be reported, which would be quite misleading. Not sure if this has anything to do with the current buildfarm failures, but it’s certainly bogus as-is.

  
commit   : e9a383303ce2f47a2733419e8d23e9e5a20b5ff2    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 22 Feb 2010 15:26:14 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 22 Feb 2010 15:26:14 +0000    

Click here for diff

  
  

Move documentation of all recovery.conf option to a new chapter. They used to be scattered between the “backup and restore” and “streaming replication” chapters.

  
commit   : 3229db2d42969a4cc6434cb612ca03a19e661b43    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Mon, 22 Feb 2010 11:47:30 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Mon, 22 Feb 2010 11:47:30 +0000    

Click here for diff

  
  

Fix multiple copy and paste-o’s. No wonder this code didn’t work.

  
commit   : 9738beb3d0176772da71b693e7f05ec94c2caf0d    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 22 Feb 2010 02:50:10 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 22 Feb 2010 02:50:10 +0000    

Click here for diff

  
  

Oops, don’t forget to rewind the directory before scanning it to fsync files in CREATE DATABASE

  
commit   : b21121cd3d5f2b9045a02a9dd43ff98a102e0def    
  
author   : Greg Stark <stark@mit.edu>    
date     : Mon, 22 Feb 2010 00:11:05 +0000    
  
committer: Greg Stark <stark@mit.edu>    
date     : Mon, 22 Feb 2010 00:11:05 +0000    

Click here for diff

  
  

Adjust sample auto-explain output to reflect query text inclusion.

  
commit   : f90a4c5df5a74ffe7f6b5346bcbae91336e52b6f    
  
author   : Andrew Dunstan <andrew@dunslane.net>    
date     : Sat, 20 Feb 2010 22:24:29 +0000    
  
committer: Andrew Dunstan <andrew@dunslane.net>    
date     : Sat, 20 Feb 2010 22:24:29 +0000    

Click here for diff

  
  

Clean up handling of XactReadOnly and RecoveryInProgress checks.

  
commit   : 05d8a561ff85db1545f5768fe8d8dc9d99ad2ef7    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 20 Feb 2010 21:24:02 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Sat, 20 Feb 2010 21:24:02 +0000    

Click here for diff

  
Add some checks that seem logically necessary, in particular let's make  
real sure that HS slave sessions cannot create temp tables.  (If they did  
they would think that temp tables belonging to the master's session with  
the same BackendId were theirs.  We *must* not allow myTempNamespace to  
become set in a slave session.)  
  
Change setval() and nextval() so that they are only allowed on temp sequences  
in a read-only transaction.  This seems consistent with what we allow for  
table modifications in read-only transactions.  Since an HS slave can't have a  
temp sequence, this also provides a nicer cure for the setval PANIC reported  
by Erik Rijkers.  
  
Make the error messages more uniform, and have them mention the specific  
command being complained of.  This seems worth the trifling amount of extra  
code, since people are likely to see such messages a lot more than before.  
  

Make ‘include_realm’ ordering consistent in the docs, to match recent doc change.

  
commit   : fada4204b97ac473d64286f2a78af2587627bf49    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sat, 20 Feb 2010 21:04:28 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sat, 20 Feb 2010 21:04:28 +0000    

Click here for diff

  
  

Clarify documentation about username mapping when authenticating with GSSAPI or Kerberos.

  
commit   : 786e2f6871628ea373e8976ec07fb69e77ca184d    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sat, 20 Feb 2010 19:21:14 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sat, 20 Feb 2010 19:21:14 +0000    

Click here for diff

  
Ian Turner  
  

Document that many solid-state drives have volatile write-back caches.

  
commit   : de9ec6543111878dcfc4f42fc0e017f5197d1c7d    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Sat, 20 Feb 2010 18:28:37 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Sat, 20 Feb 2010 18:28:37 +0000    

Click here for diff

  
  

Copy editing of Hot Standby docs. Some clarifications, addition of missing items and minor edits.

  
commit   : 7363021df306885f6872d558bae8b5747c92ab3c    
  
author   : Simon Riggs <simon@2ndQuadrant.com>    
date     : Sat, 20 Feb 2010 10:07:27 +0000    
  
committer: Simon Riggs <simon@2ndQuadrant.com>    
date     : Sat, 20 Feb 2010 10:07:27 +0000    

Click here for diff

  
  

Reduce the rescan cost estimate for Materialize nodes to cpu_operator_cost per tuple, instead of the former cpu_tuple_cost. It is sane to charge less than cpu_tuple_cost because Materialize never does any qual-checking or projection, so it’s got less overhead than most plan node types. In particular, we want to have the same charge here as is charged for readout in cost_sort. That avoids the problem recently exhibited by Teodor wherein the planner prefers a useless sort over a materialize step in a context where a lot of rescanning will happen. The rescan costs should be just about the same for both node types, so make their estimates the same.

  
commit   : 3f56ca1d4985bd61af329474a3c654a1eb360c47    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 19 Feb 2010 21:49:10 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Fri, 19 Feb 2010 21:49:10 +0000    

Click here for diff

  
Not back-patching because all of the current logic for rescan cost estimates  
is new in 9.0.  The old handling of rescans is sufficiently not-sane that  
changing this in that structure is a bit pointless, and might indeed cause  
regressions.  
  

Revert version stamping in wrong branch

  
commit   : 2f6cf9192c81c5aeb0074ffeb02e5679da0dfc88    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Fri, 19 Feb 2010 18:42:30 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Fri, 19 Feb 2010 18:42:30 +0000    

Click here for diff

  
  

Version stamp 9.0alpha4

  
commit   : a779afb40cf4ff540cfe6598c1370d70e1dbf0da    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Fri, 19 Feb 2010 16:03:22 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Fri, 19 Feb 2010 16:03:22 +0000    

Click here for diff

  
  

Document –version and –help options for all client applications (they all support it).

  
commit   : f8f0140d73b23b92062465c4977a71a6ee336eea    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Fri, 19 Feb 2010 14:36:45 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Fri, 19 Feb 2010 14:36:45 +0000    

Click here for diff

  
Per report from Josh Kupershmidt  
  

Small corrections to message output targets in pg_ctl

  
commit   : 4c6c6b52d27fa60ddb287efb194ae77ee9385248    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Fri, 19 Feb 2010 14:12:19 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Fri, 19 Feb 2010 14:12:19 +0000    

Click here for diff

  
- The message "server stopped" should be affected by the -s option, just  
  like "server started" already was.  
  
- The message "could not start server" should consistently go to stderr.  
  

Don’t use O_DIRECT when writing WAL files if archiving or streaming is enabled. Bypassing the kernel cache is counter-productive in that case, because the archiver/walsender process will read from the WAL file soon after it’s written, and if it’s not cached the read will cause a physical read, eating I/O bandwidth available on the WAL drive.

  
commit   : ad458cfe81bcefd6d8bd17ff2e42c6599d441bd6    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Fri, 19 Feb 2010 10:51:04 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Fri, 19 Feb 2010 10:51:04 +0000    

Click here for diff

  
Also, walreceiver process does unaligned writes, so disable O_DIRECT  
in walreceiver process for that reason too.  
  

Forbid setval() during recovery. This prevents the PANIC reported by Erik Rijkers. Patch by Andres Freund.

  
commit   : 94f610b16342d7727774f6bb9245341cfa6f895c    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Fri, 19 Feb 2010 06:29:19 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Fri, 19 Feb 2010 06:29:19 +0000    

Click here for diff

  
  

First pass over client applications documentation proofreading.

  
commit   : 2f6b4560afc6ab51b82f88b111041030b3a7329e    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Fri, 19 Feb 2010 03:50:03 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Fri, 19 Feb 2010 03:50:03 +0000    

Click here for diff

  
gabrielle  
  

Remove mention that binary distributions pre-compile the tutorial files.

  
commit   : 4e3a616355a8025c8d9099891fc1352c940088f1    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Fri, 19 Feb 2010 01:15:54 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Fri, 19 Feb 2010 01:15:54 +0000    

Click here for diff

  
  

Fix STOP WAL LOCATION in backup history files no to return the next segment of XLOG_BACKUP_END record even if the the record is placed at a segment boundary. Furthermore the previous implementation could return nonexistent segment file name when the boundary is in segments that has “FE” suffix; We never use segments with “FF” suffix.

  
commit   : 3230fd056afd4e056c2a78d569c90446c73051b8    
  
author   : Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Fri, 19 Feb 2010 01:04:03 +0000    
  
committer: Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Fri, 19 Feb 2010 01:04:03 +0000    

Click here for diff

  
Backpatch to 8.0, where hot backup was introduced.  
  
Reported by Fujii Masao.  
  

Translation updates for 9.0alpha4

  
commit   : a39f02e36963897feed8c0c93fc96f8e3657405c    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Fri, 19 Feb 2010 00:40:05 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Fri, 19 Feb 2010 00:40:05 +0000    

Click here for diff

  
  

Preliminary release notes for 9.0alpha4

  
commit   : 1222296768aa93f9b6eee7000feddb86ab0ecd69    
  
author   : Peter Eisentraut <peter_e@gmx.net>    
date     : Fri, 19 Feb 2010 00:35:18 +0000    
  
committer: Peter Eisentraut <peter_e@gmx.net>    
date     : Fri, 19 Feb 2010 00:35:18 +0000    

Click here for diff

  
  

Hot Standby documentation updates

  
commit   : a70d0391043e56c4adecabd36e29e2dc2dc8f233    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Fri, 19 Feb 2010 00:15:25 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Fri, 19 Feb 2010 00:15:25 +0000    

Click here for diff

  
Greg Smith  
  

Volatile-ize all five places where we expect a PG_TRY block to restore old memory context in plpython. Before only one of them was marked volatile, but per report from Zdenek Kotala, some compilers do the wrong thing here.

  
commit   : a232f30f05848830dad21c6786e0841ddad991fb    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 18 Feb 2010 23:50:06 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 18 Feb 2010 23:50:06 +0000    

Click here for diff

  
  

Provide some rather hokey ways for EXPLAIN to print FieldStore and assignment ArrayRef expressions that are not in the immediate context of an INSERT or UPDATE targetlist. Such cases never arise in stored rules, so ruleutils.c hadn’t tried to handle them. However, they do occur in the targetlists of plans derived from such statements, and now that EXPLAIN VERBOSE tries to print targetlists, we need some way to deal with the case.

  
commit   : 858d1699f2be81e298bce72a217984c6618ca452    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 18 Feb 2010 22:43:31 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 18 Feb 2010 22:43:31 +0000    

Click here for diff

  
I chose to represent an assignment ArrayRef as "array[subscripts] := source",  
which is fairly reasonable and doesn't omit any information.  However,  
FieldStore is problematic because the planner will fold multiple assignments  
to fields of the same composite column into one FieldStore, resulting in a  
structure that is hard to understand at all, let alone display comprehensibly.  
So in that case I punted and just made it print the source expression(s).  
  
Backpatch to 8.4 --- the lack of functionality exists in older releases,  
but doesn't seem to be important for lack of anything that would call it.  
  

Fix ExecEvalArrayRef to pass down the old value of the array element or slice being assigned to, in case the expression to be assigned is a FieldStore that would need to modify that value. The need for this was foreseen some time ago, but not implemented then because we did not have arrays of composites. Now we do, but the point evidently got overlooked in that patch. Net result is that updating a field of an array element doesn’t work right, as illustrated if you try the new regression test on an unpatched backend. Noted while experimenting with EXPLAIN VERBOSE, which has also got some issues in this area.

  
commit   : 11d5ba97f83037b8f69887f6d387f7da7276f991    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 18 Feb 2010 18:41:47 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 18 Feb 2010 18:41:47 +0000    

Click here for diff

  
Backpatch to 8.3, where arrays of composites were introduced.  
  

Fix pq_getbyte_if_available() function. It was confused on what it returns if no data is immediately available. Patch by me with numerous fixes from Fujii Masao and Magnus Hagander.

  
commit   : 3e87ba6ef7ee381c46af6fa3871c366b947d87da    
  
author   : Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Thu, 18 Feb 2010 11:13:46 +0000    
  
committer: Heikki Linnakangas <heikki.linnakangas@iki.fi>    
date     : Thu, 18 Feb 2010 11:13:46 +0000    

Click here for diff

  
  

date_recv should accept infinities.

  
commit   : 1a1ad6320cd9696db643b4db4b38cb8c629b328f    
  
author   : Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Thu, 18 Feb 2010 04:31:16 +0000    
  
committer: Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Thu, 18 Feb 2010 04:31:16 +0000    

Click here for diff

  
Reported by James William Pye.  
  

Add missing close tag.

  
commit   : 9529f4d53263c7a85d8a5c4291fc4bc3f4c394f1    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 18 Feb 2010 04:14:38 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 18 Feb 2010 04:14:38 +0000    

Click here for diff

  
  

Wordsmithing of HS and SR documentation, with some wording improvements from Erik Rijkers too.

  
commit   : 1bee1a37250bb0cd9c062094644887ec336b055b    
  
author   : Bruce Momjian <bruce@momjian.us>    
date     : Thu, 18 Feb 2010 03:16:09 +0000    
  
committer: Bruce Momjian <bruce@momjian.us>    
date     : Thu, 18 Feb 2010 03:16:09 +0000    

Click here for diff

  
  

Force READY portals into FAILED state when a transaction or subtransaction is aborted, if they were created within the failed xact. This prevents ExecutorEnd from being run on them, which is a good idea because they may contain references to tables or other objects that no longer exist. In particular this is hazardous when auto_explain is active, but it’s really rather surprising that nobody has seen an issue with this before. I’m back-patching this to 8.4, since that’s the first version that contains auto_explain or an ExecutorEnd hook, but I wonder whether we shouldn’t back-patch further.

  
commit   : 7981c34279fbddc254cfccb9a2eec4b35e692a12    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 18 Feb 2010 03:06:46 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 18 Feb 2010 03:06:46 +0000    

Click here for diff

  
  

Fix up pg_dump’s treatment of large object ownership and ACLs. We now emit a separate archive entry for each BLOB, and use pg_dump’s standard methods for dealing with its ownership, ACL if any, and comment if any. This means that switches like –no-owner and –no-privileges do what they’re supposed to. Preliminary testing says that performance is still reasonable even with many blobs, though we’ll have to see how that shakes out in the field.

  
commit   : c0d5be5d6a736d2ee8141e920bc3de8e001bf6d9    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 18 Feb 2010 01:29:10 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Thu, 18 Feb 2010 01:29:10 +0000    

Click here for diff

  
KaiGai Kohei, revised by me  
  

Take care to reprocess an uncommitted notify message.

  
commit   : 2b44d74dd4caa0d5cec2aeb0ceec7923b69109d3    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 17 Feb 2010 16:54:06 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 17 Feb 2010 16:54:06 +0000    

Click here for diff

  
Oversight in my changes to cope with possible errors during message  
processing; spotted by Joachim Wieland.  
  

Another typo fix.

  
commit   : 075d43a01a8ccd3068d043c368ac7902e82b856d    
  
author   : Magnus Hagander <magnus@hagander.net>    
date     : Wed, 17 Feb 2010 05:51:40 +0000    
  
committer: Magnus Hagander <magnus@hagander.net>    
date     : Wed, 17 Feb 2010 05:51:40 +0000    

Click here for diff

  
Thom Brown  
  

Use a fatal warning check with what looks like a more portable error message. Error noticed by Tom and buildfarm member kite.

  
commit   : 8823bc2e2b12ecf0a597d9d352995d01ac138108    
  
author   : Andrew Dunstan <andrew@dunslane.net>    
date     : Wed, 17 Feb 2010 05:32:48 +0000    
  
committer: Andrew Dunstan <andrew@dunslane.net>    
date     : Wed, 17 Feb 2010 05:32:48 +0000    

Click here for diff

  
  

Stamp HEAD as 9.0devel, and update various places that were referring to 8.5 (hope I got ‘em all). Per discussion, this release will be 9.0 not 8.5.

  
commit   : 50a90fac40db82680ac7ceacf3348f3f08f5343e    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 17 Feb 2010 04:19:41 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 17 Feb 2010 04:19:41 +0000    

Click here for diff

  
  

Support new syntax and improve handling of parentheses in psql tab-completion.

  
commit   : 37ec19a15ce452ee94f32ebc3d6a9a45868e82fd    
  
author   : Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Wed, 17 Feb 2010 04:09:40 +0000    
  
committer: Itagaki Takahiro <itagaki.takahiro@gmail.com>    
date     : Wed, 17 Feb 2010 04:09:40 +0000    

Click here for diff

  
Newly supported syntax are:  
  - ALTER {TABLE|INDEX|TABLESPACE} {SET|RESET} with options  
  - ALTER TABLE ALTER COLUMN {SET|RESET} with options  
  - ALTER TABLE ALTER COLUMN SET STORAGE  
  - CREATE INDEX CONCURRENTLY  
  - CREATE INDEX ON (without name)  
  - CREATE INDEX ... USING with pg_am.amname instead of hard-corded names  
  - CREATE TRIGGER with events  
  - DROP AGGREGATE function with arguments  
  

When updating ShmemVariableCache from a checkpoint record, be sure to set all the values derived from oldestXid, not just that field. Brain fade in one of my patches associated with flat file removal, exposed by a report from Fujii Masao.

  
commit   : c64339face6e9abd041ab58ade2aceb48a9f4956    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 17 Feb 2010 03:10:33 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 17 Feb 2010 03:10:33 +0000    

Click here for diff

  
With this change, xidVacLimit should always be valid, so remove a couple of  
bits of complexity associated with the previous assumption that sometimes  
it wouldn't get set right away.  
  

Prevent #option dump from crashing on FORI statement with null step. Reported by Pavel.

  
commit   : 711804fddd54ea3c20d32c4b53d05a8c59bcbe4f    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 17 Feb 2010 01:48:45 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 17 Feb 2010 01:48:45 +0000    

Click here for diff

  
  

log_error_verbosity is now LOGGING_WHAT category.

  
commit   : 9cbcfca44a25bb066cbc36abf18d74613984ae19    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 17 Feb 2010 01:39:35 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 17 Feb 2010 01:39:35 +0000    

Click here for diff

  
  

Tweak description of payload parameter.

  
commit   : 750ff8bdf783d0c8946ecd8dc6365c5377cf4f51    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 17 Feb 2010 00:57:06 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 17 Feb 2010 00:57:06 +0000    

Click here for diff

  
  

Make NOTIFY_PAYLOAD_MAX_LENGTH depend explicitly on BLCKSZ and NAMEDATALEN, so this code doesn’t go nuts with smaller than default BLCKSZ or larger than default NAMEDATALEN. The standard value is still exactly 8000.

  
commit   : ee678fe30c3b9088f0ed956eb33c37f15a429932    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 17 Feb 2010 00:52:09 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Wed, 17 Feb 2010 00:52:09 +0000    

Click here for diff

  
  

Replace the pg_listener-based LISTEN/NOTIFY mechanism with an in-memory queue. In addition, add support for a “payload” string to be passed along with each notify event.

  
commit   : d1e027221d0243b7b57eabb0e482923dd7d1c8eb    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 16 Feb 2010 22:34:57 +0000    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Tue, 16 Feb 2010 22:34:57 +0000    

Click here for diff

  
This implementation should be significantly more efficient than the old one,  
and is also more compatible with Hot Standby usage.  There is not yet any  
facility for HS slaves to receive notifications generated on the master,  
although such a thing is possible in future.  
  
Joachim Wieland, reviewed by Jeff Davis; also hacked on by me.  
  

Add query text to auto_explain output.

  
commit   : fc5173ad514a216dc93bc190dbba3751024a257d    
  
author   : Andrew Dunstan <andrew@dunslane.net>    
date     : Tue, 16 Feb 2010 22:19:59 +0000    
  
committer: Andrew Dunstan <andrew@dunslane.net>    
date     : Tue, 16 Feb 2010 22:19:59 +0000    

Click here for diff

  
Still to be done: fix docs and fix regression failures under auto_explain.  
  

Clean up package namespace use and use of Safe in plperl. Prevent use of another buggy