]> granicus.if.org Git - postgresql/commit
Improve handling and coverage of --no-ensure-shutdown in pg_rewind
authorMichael Paquier <michael@paquier.xyz>
Mon, 7 Oct 2019 00:07:22 +0000 (09:07 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 7 Oct 2019 00:07:22 +0000 (09:07 +0900)
commitcaa078353ecd1f3b3681c0d4fa95ad4bb8c2308a
tree2d6d5de9a223506b254ffad68bcf04a49ca1ec10
parent732457b5d2521c6ccd6b3b096d7aba73fca2a38a
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
doc/src/sgml/ref/pg_rewind.sgml
src/bin/pg_rewind/pg_rewind.c
src/bin/pg_rewind/t/005_same_timeline.pl
src/bin/pg_rewind/t/RewindTest.pm