[COMMITTERS] pgsql: Define Assert() et al to ((void)0) to avoid pedantic warnings.

2014-12-19 Thread Andres Freund
Define Assert() et al to ((void)0) to avoid pedantic warnings. gcc's -Wempty-body warns about the current usage when compiling postgres without --enable-cassert. Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/9959abb0122ca2b0e4817e20954e3083c90becdc Modified Files

[COMMITTERS] pgsql: Prevent potentially hazardous compiler/cpu reordering during lwl

2014-12-19 Thread Andres Freund
Prevent potentially hazardous compiler/cpu reordering during lwlock release. In LWLockRelease() (and in 9.4+ LWLockUpdateVar()) we release enqueued waiters using PGSemaphoreUnlock(). As there are other sources of such unlocks backends only wake up if MyProc->lwWaiting is set to false; which is onl

[COMMITTERS] pgsql: Prevent potentially hazardous compiler/cpu reordering during lwl

2014-12-19 Thread Andres Freund
Prevent potentially hazardous compiler/cpu reordering during lwlock release. In LWLockRelease() (and in 9.4+ LWLockUpdateVar()) we release enqueued waiters using PGSemaphoreUnlock(). As there are other sources of such unlocks backends only wake up if MyProc->lwWaiting is set to false; which is onl

[COMMITTERS] pgsql: Prevent potentially hazardous compiler/cpu reordering during lwl

2014-12-19 Thread Andres Freund
Prevent potentially hazardous compiler/cpu reordering during lwlock release. In LWLockRelease() (and in 9.4+ LWLockUpdateVar()) we release enqueued waiters using PGSemaphoreUnlock(). As there are other sources of such unlocks backends only wake up if MyProc->lwWaiting is set to false; which is onl

[COMMITTERS] pgsql: Prevent potentially hazardous compiler/cpu reordering during lwl

2014-12-19 Thread Andres Freund
Prevent potentially hazardous compiler/cpu reordering during lwlock release. In LWLockRelease() (and in 9.4+ LWLockUpdateVar()) we release enqueued waiters using PGSemaphoreUnlock(). As there are other sources of such unlocks backends only wake up if MyProc->lwWaiting is set to false; which is onl

[COMMITTERS] pgsql: Prevent potentially hazardous compiler/cpu reordering during lwl

2014-12-19 Thread Andres Freund
Prevent potentially hazardous compiler/cpu reordering during lwlock release. In LWLockRelease() (and in 9.4+ LWLockUpdateVar()) we release enqueued waiters using PGSemaphoreUnlock(). As there are other sources of such unlocks backends only wake up if MyProc->lwWaiting is set to false; which is onl

[COMMITTERS] pgsql: Prevent potentially hazardous compiler/cpu reordering during lwl

2014-12-19 Thread Andres Freund
Prevent potentially hazardous compiler/cpu reordering during lwlock release. In LWLockRelease() (and in 9.4+ LWLockUpdateVar()) we release enqueued waiters using PGSemaphoreUnlock(). As there are other sources of such unlocks backends only wake up if MyProc->lwWaiting is set to false; which is onl

[COMMITTERS] pgsql: Fix timestamp in end-of-recovery WAL records.

2014-12-19 Thread Heikki Linnakangas
Fix timestamp in end-of-recovery WAL records. We used time(null) to set a TimestampTz field, which gave bogus results. Noticed while looking at pg_xlogdump output. Backpatch to 9.3 and above, where the fast promotion was introduced. Branch -- REL9_4_STABLE Details --- http://git.postgre

[COMMITTERS] pgsql: Fix timestamp in end-of-recovery WAL records.

2014-12-19 Thread Heikki Linnakangas
Fix timestamp in end-of-recovery WAL records. We used time(null) to set a TimestampTz field, which gave bogus results. Noticed while looking at pg_xlogdump output. Backpatch to 9.3 and above, where the fast promotion was introduced. Branch -- REL9_3_STABLE Details --- http://git.postgre

[COMMITTERS] pgsql: Fix timestamp in end-of-recovery WAL records.

2014-12-19 Thread Heikki Linnakangas
Fix timestamp in end-of-recovery WAL records. We used time(null) to set a TimestampTz field, which gave bogus results. Noticed while looking at pg_xlogdump output. Backpatch to 9.3 and above, where the fast promotion was introduced. Branch -- master Details --- http://git.postgresql.org

[COMMITTERS] pgsql: pg_event_trigger_dropped_objects: add behavior flags

2014-12-19 Thread Alvaro Herrera
pg_event_trigger_dropped_objects: add behavior flags Add "normal" and "original" flags as output columns to the pg_event_trigger_dropped_objects() function. With this it's possible to distinguish which objects, among those listed, need to be explicitely referenced when trying to replicate a delet

[COMMITTERS] pgsql: doc: Adjust wording of ALTER TABLESPACE restriction

2014-12-19 Thread Bruce Momjian
doc: Adjust wording of ALTER TABLESPACE restriction Report by Noah Misch Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/cfb64fde7bb93fb44ebcb1f1924faec5b5705af7 Modified Files -- doc/src/sgml/ref/alter_database.sgml |2 +- 1 file changed, 1 insertio

[COMMITTERS] Re: pgsql: doc: restrictions on alter database moving default tablespace

2014-12-19 Thread Bruce Momjian
On Fri, Dec 19, 2014 at 02:09:10AM -0500, Noah Misch wrote: > On Mon, Dec 15, 2014 at 09:27:38PM -0700, David G Johnston wrote: > > Noah Misch-2 wrote > > > Here are a couple of alternatives for the documentation text: > > > > > > The new default tablespace must not already contain any of the >