[COMMITTERS] pgsql: Allow index AMs to cache data across aminsert calls within a SQL

2017-02-09 Thread Tom Lane
Allow index AMs to cache data across aminsert calls within a SQL command. It's always been possible for index AMs to cache data across successive amgettuple calls within a single SQL command: the IndexScanDesc.opaque field is meant for precisely that. However, no comparable facility exists for am

[COMMITTERS] pgsql: pageinspect: Fix hash_bitmap_info not to read the underlying pag

2017-02-09 Thread Robert Haas
pageinspect: Fix hash_bitmap_info not to read the underlying page. It did that to verify that the page was an overflow page rather than anything else, but that means that checking the status of all the overflow bits requires reading the entire index. So don't do that. The new code validates that

[COMMITTERS] pgsql: Fix race condition in ConditionVariablePrepareToSleep.

2017-02-09 Thread Robert Haas
Fix race condition in ConditionVariablePrepareToSleep. Thomas Munro Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/3f3d60d3bbd10f6cc118d24aadc60e96b9854576 Modified Files -- src/backend/storage/lmgr/condition_variable.c | 9 ++--- 1 file changed, 6 i

[COMMITTERS] pgsql: simplehash: Additional tweaks to make specifying an allocator wo

2017-02-09 Thread Robert Haas
simplehash: Additional tweaks to make specifying an allocator work. Even if we don't emit definitions for SH_ALLOCATE and SH_FREE, we still need prototypes. The user can't define them before including simplehash.h because SH_TYPE isn't available yet. For the allocator to be able to access privat

[COMMITTERS] pgsql: Remove all references to "xlog" from SQL-callable functions in p

2017-02-09 Thread Robert Haas
Remove all references to "xlog" from SQL-callable functions in pg_proc. Commit f82ec32ac30ae7e3ec7c84067192535b2ff8ec0e renamed the pg_xlog directory to pg_wal. To make things consistent, and because "xlog" is terrible terminology for either "transaction log" or "write-ahead log" rename all SQL-c

[COMMITTERS] pgsql: Blind try to fix portability issue in commit 8f93bd851 et al.

2017-02-09 Thread Tom Lane
Blind try to fix portability issue in commit 8f93bd851 et al. The S/390 members of the buildfarm are showing failures indicating that they're having trouble with the rint() calls I added yesterday. There's no good reason for that, and I wonder if it is a compiler bug similar to the one we worked a

[COMMITTERS] pgsql: Blind try to fix portability issue in commit 8f93bd851 et al.

2017-02-09 Thread Tom Lane
Blind try to fix portability issue in commit 8f93bd851 et al. The S/390 members of the buildfarm are showing failures indicating that they're having trouble with the rint() calls I added yesterday. There's no good reason for that, and I wonder if it is a compiler bug similar to the one we worked a

[COMMITTERS] pgsql: Blind try to fix portability issue in commit 8f93bd851 et al.

2017-02-09 Thread Tom Lane
Blind try to fix portability issue in commit 8f93bd851 et al. The S/390 members of the buildfarm are showing failures indicating that they're having trouble with the rint() calls I added yesterday. There's no good reason for that, and I wonder if it is a compiler bug similar to the one we worked a

[COMMITTERS] pgsql: Blind try to fix portability issue in commit 8f93bd851 et al.

2017-02-09 Thread Tom Lane
Blind try to fix portability issue in commit 8f93bd851 et al. The S/390 members of the buildfarm are showing failures indicating that they're having trouble with the rint() calls I added yesterday. There's no good reason for that, and I wonder if it is a compiler bug similar to the one we worked a

[COMMITTERS] pgsql: Rename user-facing tools with "xlog" in the name to say "wal".

2017-02-09 Thread Robert Haas
Rename user-facing tools with "xlog" in the name to say "wal". This means pg_receivexlog because pg_receivewal, pg_resetxlog becomes pg_resetwal, and pg_xlogdump becomes pg_waldump. Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/85c11324cabaddcfaf3347df78555b30d27c5

[COMMITTERS] pgsql: Rename dtrace probes for ongoing xlog -> wal conversion.

2017-02-09 Thread Robert Haas
Rename dtrace probes for ongoing xlog -> wal conversion. xlog-switch becomes wal-switch, and xlog-insert becomes wal-insert. Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/3f01fd4ca0b4c81333b1f0dadb09c73aa589ab6e Modified Files -- doc/src/sgml/monitorin

[COMMITTERS] pgsql: Rename command line options for ongoing xlog -> wal conversion.

2017-02-09 Thread Robert Haas
Rename command line options for ongoing xlog -> wal conversion. initdb and pg_basebackup now have a --waldir option rather --xlogdir, and pg_basebackup now has --wal-method rather than --xlog-method. Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/62e8b387514ce965c8b