From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Improve handling and coverage of --no-ensure-shutdown in pg_rewi
Date: Mon, 07 Oct 2019 00:09:14 +0000
Message-ID: <E1iHGaQ-0005xx-Jr@gemulon.postgresql.org> (raw)
Improve handling and coverage of --no-ensure-shutdown in pg_rewind
This includes a couple of changes around the new behavior of pg_rewind
which enforces recovery to happen once on a cluster not shut down
cleanly:
- Some comments and documentation improvements.
- Shutdown the cluster to rewind with immediate mode in all the tests,
this allows to check after the forced recovery behavior which is wanted
as new default.
- Use -F for the forced recovery step, so as postgres does not use
fsync. This was useless as a final sync is done once the tool is done.
Author: Michael Paquier
Reviewed-by: Alexey Kondratov
Discussion: https://postgr.es/m/20191004083721.GA1829@paquier.xyz
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/caa078353ecd1f3b3681c0d4fa95ad4bb8c2308a
Modified Files
--------------
doc/src/sgml/ref/pg_rewind.sgml | 10 ++++++----
src/bin/pg_rewind/pg_rewind.c | 19 ++++++++++++-------
src/bin/pg_rewind/t/005_same_timeline.pl | 4 ++++
src/bin/pg_rewind/t/RewindTest.pm | 20 ++++++++++++--------
4 files changed, 34 insertions(+), 19 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: Improve handling and coverage of --no-ensure-shutdown in pg_rewi
In-Reply-To: <E1iHGaQ-0005xx-Jr@gemulon.postgresql.org>
References: <E1iHGaQ-0005xx-Jr@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