diff options
author | Thomas Munro <tmunro@postgresql.org> | 2019-04-02 14:37:14 +1300 |
---|---|---|
committer | Thomas Munro <tmunro@postgresql.org> | 2019-04-02 14:37:14 +1300 |
commit | 475861b2615dd63ae8431d811749a6f9a15bbfd6 (patch) | |
tree | df88475a55eaa2bf359000628325d7b798f90521 /src/include/access/xlog.h | |
parent | 4b82664156c230b59607704506f5b0a32ef490a2 (diff) | |
download | postgresql-475861b2615dd63ae8431d811749a6f9a15bbfd6.tar.gz postgresql-475861b2615dd63ae8431d811749a6f9a15bbfd6.zip |
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
Diffstat (limited to 'src/include/access/xlog.h')
-rw-r--r-- | src/include/access/xlog.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/access/xlog.h b/src/include/access/xlog.h index eb6c44649dc..2af938bfdcb 100644 --- a/src/include/access/xlog.h +++ b/src/include/access/xlog.h @@ -116,6 +116,8 @@ extern bool EnableHotStandby; extern bool fullPageWrites; extern bool wal_log_hints; extern bool wal_compression; +extern bool wal_init_zero; +extern bool wal_recycle; extern bool *wal_consistency_checking; extern char *wal_consistency_checking_string; extern bool log_checkpoints; |