reorder pg_rewind control file sync - Mailing list pgsql-hackers

From Fabien COELHO
Subject reorder pg_rewind control file sync
Date
Msg-id alpine.DEB.2.21.1903230606350.18811@lancre
Whole thread Raw
Responses Re: reorder pg_rewind control file sync
List pgsql-hackers
Bonjour Michaël,

On Sat, 23 Mar 2019, Michael Paquier wrote:
> On Fri, Mar 22, 2019 at 03:18:26PM +0100, Fabien COELHO wrote:
>> Attached is a quick patch about "pg_rewind", so that the control file 
>> is updated after everything else is committed to disk.
>
> Could you start a new thread about that please?  This one has already 
> been used for too many things.

Here it is.

The attached patch reorders the cluster fsyncing and control file changes 
in "pg_rewind" so that the later is done after all data are committed to 
disk, so as to reflect the actual cluster status, similarly to what is 
done by "pg_checksums", per discussion in the thread about offline 
enabling of checksums:

https://www.postgresql.org/message-id/20181221201616.GD4974@nighthawk.caipicrew.dd-dns.de

-- 
Fabien.
Attachment

pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Transaction commits VS Transaction commits (with parallel) VSquery mean time
Next
From: Fabien COELHO
Date:
Subject: Re: Removing \cset from pgbench