Re: patch to allow disable of WAL recycling - Mailing list pgsql-hackers

From Robert Haas
Subject Re: patch to allow disable of WAL recycling
Date
Msg-id CA+TgmoZgXLa4iBKnRzxPbO0Zqc3qcRWHMpiY1t6K51rvQzyZfQ@mail.gmail.com
Whole thread Raw
In response to Re: patch to allow disable of WAL recycling  (Andrew Dunstan <andrew.dunstan@2ndquadrant.com>)
List pgsql-hackers
On Wed, Mar 6, 2019 at 11:37 AM Andrew Dunstan
<andrew.dunstan@2ndquadrant.com> wrote:
> Well, let's put the question another way. Is there any reason to allow
> skipping zero filling if we are recycling? That seems possibly
> dangerous. I can imagine turning off recycling but leaving on
> zero-filling, although I don't have a concrete use case for it ATM.

I think the short answer is that we don't know.  Any filesystem where
just writing the last byte of the file is good enough to guarantee
that all the intervening space is allocated can skip zero-filling.
Any system where creating new WAL files is faster than recycling old
ones can choose to do it that way.  I don't know how you can make a
categorical argument that there can't be a system where one of those
things -- either one -- is true and the other is false.  At least to
me, they seem like basically unrelated issues.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: patch to allow disable of WAL recycling
Next
From: Robert Haas
Date:
Subject: Re: patch to allow disable of WAL recycling