]> granicus.if.org Git - postgresql/commit
Fix --dry-run mode of pg_rewind
authorMichael Paquier <michael@paquier.xyz>
Fri, 4 Oct 2019 00:14:51 +0000 (09:14 +0900)
committerMichael Paquier <michael@paquier.xyz>
Fri, 4 Oct 2019 00:14:51 +0000 (09:14 +0900)
commit6f3823b03560589157d9dbdab623f603ef393d7c
tree755593a6a5160fb0fbab96abea465e99298b6b2a
parent8e10405c745003c5c16acb2da847db9bed1a169e
Fix --dry-run mode of pg_rewind

Even if --dry-run mode was specified, the control file was getting
updated, preventing follow-up runs of pg_rewind to work properly on the
target data folder.  The origin of the problem came from the refactoring
done by ce6afc6.

Author: Alexey Kondratov
Discussion: https://postgr.es/m/7ca88204-3e0b-2f4c-c8af-acadc4b266e5@postgrespro.ru
Backpatch-through: 12
src/bin/pg_rewind/pg_rewind.c