pgsql: Fix --dry-run mode of pg_rewind - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Fix --dry-run mode of pg_rewind
Date
Msg-id E1iGBHE-0000Zg-1c@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/c2e3b311d9ef85e99b04944e7e6f98e3a336de84

Modified Files
--------------
src/bin/pg_rewind/pg_rewind.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Avoid unnecessary out-of-memory errors during encoding conversio
Next
From: Amit Kapila
Date:
Subject: Re: pgsql: pgbench: add --partitions and --partition-method options.