pg_resetwal: Corrections around -c option

Peter Eisentraut <peter@eisentraut.org>

Commit: e3679bc1c31add8fa29a9dedd10fe6c563efde79
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2023-10-10T06:58:50Z
Releases: 17.0
pg_resetwal: Corrections around -c option

The present pg_resetwal code hardcodes the minimum value for -c as 2,
which is FrozenTransactionId, but it's not clear why that is allowed.
After some research, it was probably a mistake in the original patch.
Change it to FirstNormalTransactionId, which matches other xid-related
options in pg_resetwal.

Reviewed-by: Alvaro Herrera <alvherre@alvh.no-ip.org>
Discussion: https://www.postgresql.org/message-id/flat/d09f0e91-8757-642b-1a92-da9a52f5589a%40eisentraut.org

Files

PathChange+/−
src/bin/pg_resetwal/pg_resetwal.c modified +6 −6

Discussion