]> granicus.if.org Git - postgresql/commit
Add wal_recycle and wal_init_zero GUCs.
authorThomas Munro <tmunro@postgresql.org>
Tue, 2 Apr 2019 01:37:14 +0000 (14:37 +1300)
committerThomas Munro <tmunro@postgresql.org>
Tue, 2 Apr 2019 01:37:14 +0000 (14:37 +1300)
commit475861b2615dd63ae8431d811749a6f9a15bbfd6
treedf88475a55eaa2bf359000628325d7b798f90521
parent4b82664156c230b59607704506f5b0a32ef490a2
Add wal_recycle and wal_init_zero GUCs.

On at least ZFS, it can be beneficial to create new WAL files every
time and not to bother zero-filling them.  Since it's not clear which
other filesystems might benefit from one or both of those things,
add individual GUCs to control those two behaviors independently and
make only very general statements in the docs.

Author: Jerry Jelinek, with some adjustments by Thomas Munro
Reviewed-by: Alvaro Herrera, Andres Freund, Tomas Vondra, Robert Haas and others
Discussion: https://postgr.es/m/CACPQ5Fo00QR7LNAcd1ZjgoBi4y97%2BK760YABs0vQHH5dLdkkMA%40mail.gmail.com
doc/src/sgml/config.sgml
src/backend/access/transam/xlog.c
src/backend/utils/misc/guc.c
src/backend/utils/misc/postgresql.conf.sample
src/include/access/xlog.h