postgresql/src/backend/access
Andres Freund fc49e24fa6 Make WAL segment size configurable at initdb time.
For performance reasons a larger segment size than the default 16MB
can be useful. A larger segment size has two main benefits: Firstly,
in setups using archiving, it makes it easier to write scripts that
can keep up with higher amounts of WAL, secondly, the WAL has to be
written and synced to disk less frequently.

But at the same time large segment size are disadvantageous for
smaller databases. So far the segment size had to be configured at
compile time, often making it unrealistic to choose one fitting to a
particularly load. Therefore change it to a initdb time setting.

This includes a breaking changes to the xlogreader.h API, which now
requires the current segment size to be configured.  For that and
similar reasons a number of binaries had to be taught how to recognize
the current segment size.

Author: Beena Emerson, editorialized by Andres Freund
Reviewed-By: Andres Freund, David Steele, Kuntal Ghosh, Michael
    Paquier, Peter Eisentraut, Robert Hass, Tushar Ahuja
Discussion: https://postgr.es/m/CAOG9ApEAcQ--1ieKbhFzXSQPw_YLmepaa4hNdnY5+ZULpt81Mw@mail.gmail.com
2017-09-19 22:03:48 -07:00
..
brin Change tupledesc->attrs[n] to TupleDescAttr(tupledesc, n). 2017-08-20 11:19:07 -07:00
common Add support for coordinating record typmods among parallel workers. 2017-09-14 19:59:21 -07:00
gin Change tupledesc->attrs[n] to TupleDescAttr(tupledesc, n). 2017-08-20 11:19:07 -07:00
gist Remove no-op GiST support functions in the core GiST opclasses. 2017-09-19 23:32:59 -04:00
hash Introduce 64-bit hash functions with a 64-bit seed. 2017-08-31 22:21:21 -04:00
heap Improve performance of get_actual_variable_range with recently-dead tuples. 2017-09-07 19:41:51 -04:00
index Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
nbtree Minor code-cleanliness improvements for btree. 2017-09-18 16:36:28 -04:00
rmgrdesc Remove dedicated B-tree root-split record types. 2017-08-16 12:24:40 +03:00
spgist Change tupledesc->attrs[n] to TupleDescAttr(tupledesc, n). 2017-08-20 11:19:07 -07:00
tablesample Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
transam Make WAL segment size configurable at initdb time. 2017-09-19 22:03:48 -07:00
Makefile TABLESAMPLE, SQL Standard and extensible 2015-05-15 14:37:10 -04:00