postgresql/src
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
..
backend Make WAL segment size configurable at initdb time. 2017-09-19 22:03:48 -07:00
bin Make WAL segment size configurable at initdb time. 2017-09-19 22:03:48 -07:00
common Update copyright in recently added files 2017-07-26 18:17:18 -04:00
fe_utils In psql, use PSQL_PAGER in preference to PAGER, if it's set. 2017-09-05 12:02:13 -04:00
include Make WAL segment size configurable at initdb time. 2017-09-19 22:03:48 -07:00
interfaces Fixed ECPG to correctly handle out-of-scope cursor declarations with pointers 2017-09-12 04:53:36 +02:00
makefiles Always use -fPIC, not -fpic, when building shared libraries with gcc. 2017-06-01 13:32:55 -04:00
pl Prefer argument name over "$n" for the refname of a plpgsql argument. 2017-09-11 16:24:43 -04:00
port Stamp HEAD as 11devel. 2017-08-14 18:08:30 -04:00
template Remove "sco" and "unixware" ports. 2016-10-11 11:26:04 -04:00
test Accept that server might not be able to send error in crash recovery test. 2017-09-19 21:37:24 -07:00
timezone Fix bool/int type confusion 2017-09-14 11:45:11 -04:00
tools Make WAL segment size configurable at initdb time. 2017-09-19 22:03:48 -07:00
tutorial Distinguish selectivity of < from <= and > from >=. 2017-09-13 11:12:39 -04:00
.gitignore
DEVELOPERS
Makefile Remove redundant coverage target 2017-02-17 08:56:57 -05:00
Makefile.global.in Support retaining data dirs on successful TAP tests 2017-09-05 12:24:06 -04:00
Makefile.shlib Remove support for bcc and msvc standalone libpq builds 2017-04-11 15:22:21 +02:00
nls-global.mk