| From: | Michael Paquier <michael(at)paquier(dot)xyz> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Improve handling and coverage of --no-ensure-shutdown in pg_rewi |
| Date: | 2019-10-07 00:09:14 |
| Message-ID: | E1iHGaQ-0005xx-Jr@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael Paquier | 2019-10-07 06:59:16 | Re: pgsql: Remove pqsignal() from libpq's official exports list. |
| Previous Message | Tom Lane | 2019-10-06 18:14:58 | pgsql: Doc: improve docs about pg_statistic_ext_data. |