pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add wal_recycle and wal_init_zero GUCs.
Date: Tue, 02 Apr 2019 01:47:11 +0000
Message-ID: <E1hB8W7-0005OZ-Lt@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/475861b2615dd63ae8431d811749a6f9a15bbfd6

Modified Files
--------------
doc/src/sgml/config.sgml                      | 35 ++++++++++
src/backend/access/transam/xlog.c             | 97 ++++++++++++++++++---------
src/backend/utils/misc/guc.c                  | 20 ++++++
src/backend/utils/misc/postgresql.conf.sample |  2 +
src/include/access/xlog.h                     |  2 +
5 files changed, 123 insertions(+), 33 deletions(-)



Message-ID: <E1hB8W7-0005OZ-Lt@gemulon.postgresql.org>
Permalink:  ../E1hB8W7-0005OZ-Lt@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hB8W7-0005OZ-Lt@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tmunro@postgresql.org
  Subject: Re: pgsql: Add wal_recycle and wal_init_zero GUCs.
  In-Reply-To: <E1hB8W7-0005OZ-Lt@gemulon.postgresql.org>
  References: <E1hB8W7-0005OZ-Lt@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox