]> granicus.if.org Git - postgresql/commit
Fix issues in pg_rewind with --no-ensure-shutdown/--write-recovery-conf
authorMichael Paquier <michael@paquier.xyz>
Fri, 4 Oct 2019 07:18:29 +0000 (16:18 +0900)
committerMichael Paquier <michael@paquier.xyz>
Fri, 4 Oct 2019 07:18:29 +0000 (16:18 +0900)
commit6837632b758e0470a2692d9f8303e8aebd6fbd8f
tree062418052c868825e8307c7446024caec5953d0f
parent6f3823b03560589157d9dbdab623f603ef393d7c
Fix issues in pg_rewind with --no-ensure-shutdown/--write-recovery-conf

This fixes two issues with recent features added in pg_rewind:
- --dry-run should do nothing on the target directory, but 927474c
forgot to consider that for --write-recovery-conf.
- --no-ensure-shutdown was not actually working.  There is no test
coverage for this option yet, but a subsequent patch will add that.

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