postgresql/src/backend/access
Tom Lane 4c11d2c559 Flag index metapages as standard-format in xlog.c calls.
btree, hash, and bloom indexes all set up their metapages in standard
format (that is, with pd_lower and pd_upper correctly delimiting the
unused area); but they mostly didn't inform the xlog routines of this.
When calling log_newpage[_buffer], this is bad because it loses the
opportunity to compress unused data out of the WAL record.  When
calling XLogRegisterBuffer, it's not such a performance problem because
all of these call sites also use REGBUF_WILL_INIT, preventing an FPI
image from being written.  But it's still a good idea to provide the
flag when relevant, because that aids WAL consistency checking.

This completes the project of getting all the in-core index AMs to
handle their metapage WAL operations similarly.

Amit Kapila, reviewed by Michael Paquier

Discussion: https://postgr.es/m/0d273805-0e9e-ec1a-cb84-d4da400b8f85@lab.ntt.co.jp
2017-11-03 16:31:32 -04:00
..
brin Fix thinkos in BRIN summarization 2017-11-03 20:45:36 +01:00
common Replace remaining uses of pq_sendint with pq_sendint{8,16,32}. 2017-10-11 21:00:46 -07:00
gin Set the metapage's pd_lower correctly in brin, gin, and spgist indexes. 2017-11-02 17:22:08 -04:00
gist For wal_consistency_checking, mask page checksum as well as page LSN. 2017-09-22 14:28:22 -04:00
hash Flag index metapages as standard-format in xlog.c calls. 2017-11-03 16:31:32 -04:00
heap Revert bogus fixes of HOT-freezing bug 2017-11-02 15:51:41 +01:00
index Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
nbtree Flag index metapages as standard-format in xlog.c calls. 2017-11-03 16:31:32 -04:00
rmgrdesc Remove dedicated B-tree root-split record types. 2017-08-16 12:24:40 +03:00
spgist Set the metapage's pd_lower correctly in brin, gin, and spgist indexes. 2017-11-02 17:22:08 -04:00
tablesample Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
transam Fix problems with the "role" GUC and parallel query. 2017-10-29 12:58:40 +05:30
Makefile TABLESAMPLE, SQL Standard and extensible 2015-05-15 14:37:10 -04:00