[COMMITTERS] pgsql: doc: Don't reformat .fo files before processing by fop

2016-11-04 Thread Peter Eisentraut
doc: Don't reformat .fo files before processing by fop This messes up the whitespace in the output PDF document in some places. Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/d49cc588ca589cd378b5862fa5704eaade4a1380 Modified Files -- doc/src/sgml/Makefi

[COMMITTERS] pgsql: doc: Port page header customizations to XSLT

2016-11-04 Thread Peter Eisentraut
doc: Port page header customizations to XSLT Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/6feb69f6cef8b1bd2829700e25e402f22e86f3bd Modified Files -- doc/src/sgml/stylesheet.xsl | 138 1 file changed, 138 inse

[COMMITTERS] pgsql: Provide DLLEXPORT markers for C functions via PG_FUNCTION_INFO_V

2016-11-04 Thread Tom Lane
Provide DLLEXPORT markers for C functions via PG_FUNCTION_INFO_V1 macro. Second try at the change originally made in commit 8518583cd; this time with contrib updates so that manual extern declarations are also marked with PGDLLEXPORT. The release notes should point this out as a significant sourc

[COMMITTERS] pgsql: Delete contrib/xml2's legacy implementation of xml_is_well_forme

2016-11-04 Thread Tom Lane
Delete contrib/xml2's legacy implementation of xml_is_well_formed(). This function is unreferenced in modern usage; it was superseded in 9.1 by a core function of the same name. It has been left in place in the C code only so that pre-9.1 SQL definitions of the contrib/xml2 functions would contin

[COMMITTERS] pgsql: Be more consistent about masking xl_info with ~XLR_INFO_MASK.

2016-11-04 Thread Tom Lane
Be more consistent about masking xl_info with ~XLR_INFO_MASK. Generally, WAL resource managers are only supposed to examine the top 4 bits of a WAL record's xl_info; the rest are reserved for the WAL mechanism itself. A few places were not consistent about doing this with respect to XLOG_CHECKPOI

[COMMITTERS] pgsql: Back-patch portability fixes for contrib/pageinspect/ginfuncs.c.

2016-11-04 Thread Tom Lane
Back-patch portability fixes for contrib/pageinspect/ginfuncs.c. Back-patch commits 84ad68d64 and 367b99bbb. Branch -- REL9_6_STABLE Details --- http://git.postgresql.org/pg/commitdiff/4774f61830290eb4c14bf2770c3167b3dd786120 Modified Files -- contrib/pageinspect/ginfuncs.c

[COMMITTERS] pgsql: Back-patch portability fixes for contrib/pageinspect/ginfuncs.c.

2016-11-04 Thread Tom Lane
Back-patch portability fixes for contrib/pageinspect/ginfuncs.c. Back-patch commits 84ad68d64 and 367b99bbb. Branch -- REL9_5_STABLE Details --- http://git.postgresql.org/pg/commitdiff/56d34ba5fb919dd9ee2e7aeb20e6f00610198067 Modified Files -- contrib/pageinspect/ginfuncs.c

[COMMITTERS] pgsql: Fix gin_leafpage_items().

2016-11-04 Thread Tom Lane
Fix gin_leafpage_items(). On closer inspection, commit 84ad68d64 broke gin_leafpage_items(), because the aligned copy of the page got palloc'd in a short-lived context whereas it needs to be in the SRF's multi_call_memory_ctx. This was not exposed by the regression test, because the regression tes

[COMMITTERS] pgsql: Improve tab completion for CREATE TRIGGER.

2016-11-04 Thread Kevin Grittner
Improve tab completion for CREATE TRIGGER. This includes support for the new REFERENCING clause. Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/927d7bb6b120a2ca09a164898f887eb850b7a329 Modified Files -- src/bin/psql/tab-complete.c | 34 +

[COMMITTERS] pgsql: Implement syntax for transition tables in AFTER triggers.

2016-11-04 Thread Kevin Grittner
Implement syntax for transition tables in AFTER triggers. This is infrastructure for the complete SQL standard feature. No support is included at this point for execution nodes or PLs. The intent is to add that soon. As this patch leaves things, standard syntax can create tuplestores to contain

[COMMITTERS] pgsql: Sync our copy of the timezone library with IANA tzcode master.

2016-11-04 Thread Tom Lane
Sync our copy of the timezone library with IANA tzcode master. This patch absorbs some unreleased fixes for symlink manipulation bugs introduced in tzcode 2016g. Ordinarily I'd wait around for a released version, but in this case it seems like we could do with extra testing, in particular checkin

[COMMITTERS] pgsql: Sync our copy of the timezone library with IANA tzcode master.

2016-11-04 Thread Tom Lane
Sync our copy of the timezone library with IANA tzcode master. This patch absorbs some unreleased fixes for symlink manipulation bugs introduced in tzcode 2016g. Ordinarily I'd wait around for a released version, but in this case it seems like we could do with extra testing, in particular checkin

[COMMITTERS] pgsql: pg_test_fsync: Add NLS

2016-11-04 Thread Peter Eisentraut
pg_test_fsync: Add NLS Reviewed-by: Michael Paquier Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/a39255d766381957622b145838c38dbbea6fc367 Modified Files -- src/bin/pg_test_fsync/nls.mk | 5 +++ src/bin/pg_test_fsync/pg_test_fsync.c | 71

[COMMITTERS] pgsql: pg_archivecleanup: Add NLS

2016-11-04 Thread Peter Eisentraut
pg_archivecleanup: Add NLS Reviewed-by: Michael Paquier Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/632fbe772cff9dadca82a26dacaa39bd50a0cc5c Modified Files -- src/bin/pg_archivecleanup/nls.mk | 4 ++ src/bin/pg_archivecleanup/pg_archive

[COMMITTERS] pgsql: Sync our copy of the timezone library with IANA tzcode master.

2016-11-04 Thread Tom Lane
Sync our copy of the timezone library with IANA tzcode master. This patch absorbs some unreleased fixes for symlink manipulation bugs introduced in tzcode 2016g. Ordinarily I'd wait around for a released version, but in this case it seems like we could do with extra testing, in particular checkin

[COMMITTERS] pgsql: Sync our copy of the timezone library with IANA tzcode master.

2016-11-04 Thread Tom Lane
Sync our copy of the timezone library with IANA tzcode master. This patch absorbs some unreleased fixes for symlink manipulation bugs introduced in tzcode 2016g. Ordinarily I'd wait around for a released version, but in this case it seems like we could do with extra testing, in particular checkin

[COMMITTERS] pgsql: Sync our copy of the timezone library with IANA tzcode master.

2016-11-04 Thread Tom Lane
Sync our copy of the timezone library with IANA tzcode master. This patch absorbs some unreleased fixes for symlink manipulation bugs introduced in tzcode 2016g. Ordinarily I'd wait around for a released version, but in this case it seems like we could do with extra testing, in particular checkin

[COMMITTERS] pgsql: pg_xlogdump: Add NLS

2016-11-04 Thread Peter Eisentraut
pg_xlogdump: Add NLS Reviewed-by: Michael Paquier Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/69d590fffbdcfb50a31a8c78ce87e602002a869f Modified Files -- src/bin/pg_xlogdump/nls.mk| 6 src/bin/pg_xlogdump/pg_xlogdump.c | 75 +

[COMMITTERS] pgsql: pg_test_timing: Add NLS

2016-11-04 Thread Peter Eisentraut
pg_test_timing: Add NLS Also straighten out use of time unit abbreviations a bit. Reviewed-by: Michael Paquier Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/59fa9d2d9da46097dd4da5c5f1f07e22a288fccf Modified Files -- doc/src/sgml/ref/pgtesttiming.sgml

[COMMITTERS] pgsql: pageinspect: Fix unaligned struct access in GIN functions

2016-11-04 Thread Peter Eisentraut
pageinspect: Fix unaligned struct access in GIN functions The raw page data that is passed into the functions will not be aligned at 8-byte boundaries. Casting that to a struct and accessing int64 fields will result in unaligned access. On most platforms, you get away with it, but it will result

[COMMITTERS] pgsql: Add API to check if an existing exclusive lock allows cleanup.

2016-11-04 Thread Robert Haas
Add API to check if an existing exclusive lock allows cleanup. LockBufferForCleanup() acquires a cleanup lock unconditionally, and ConditionalLockBufferForCleanup() acquires a cleanup lock if it is possible to do so without waiting; this patch adds a new API, IsBufferCleanupOK(), which tests wheth

[COMMITTERS] pgsql: postgres_fdw: Fix typo in comment.

2016-11-04 Thread Robert Haas
postgres_fdw: Fix typo in comment. Etsuro Fujita Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/7016e4c4f59c30d22f308dd29e8a5014d6427f69 Modified Files -- contrib/postgres_fdw/postgres_fdw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- Sen