From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Simplify logic to sync target directory at the end of pg_rewind
Date: Tue, 10 Jul 2018 00:03:35 +0000
Message-ID: <E1fcg7z-0005iT-1L@gemulon.postgresql.org> (raw)
Simplify logic to sync target directory at the end of pg_rewind
The previous sync logic relied on looking for and then launching
externally initdb -S, which is a simple wrapper on top of fsync_pgdata.
There is nothing preventing pg_rewind to directly call this routine, so
remove the dependency to initdb and just call it directly.
Author: Michael Paquier
Reviewed-by: Heikki Linnakangas
Discussion: https://postgr.es/m/20180325122607.GB3707@paquier.xyz
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/9a4059d4ff1100e10d2aaadb136a04a407351249
Modified Files
--------------
src/bin/pg_rewind/pg_rewind.c | 44 +++++--------------------------------------
1 file changed, 5 insertions(+), 39 deletions(-)
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: michael@paquier.xyz
Subject: Re: pgsql: Simplify logic to sync target directory at the end of pg_rewind
In-Reply-To: <E1fcg7z-0005iT-1L@gemulon.postgresql.org>
References: <E1fcg7z-0005iT-1L@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