pg_resetwal: Corrections around -c option
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 10 Oct 2023 06:58:50 +0000 (08:58 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 10 Oct 2023 06:58:50 +0000 (08:58 +0200)
commite3679bc1c31add8fa29a9dedd10fe6c563efde79
tree2710f5fd4e38bcaa6c951be37078bbdde60eaf7c
parent1d91d24d9a831be0bb90ec71934f735c52456c57
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
src/bin/pg_resetwal/pg_resetwal.c