diff options
| author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2025-11-19 18:05:42 +0200 |
|---|---|---|
| committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2025-11-19 18:05:42 +0200 |
| commit | d5b4f3a6d4e0c065562d1c0c69e7c4aba2623910 (patch) | |
| tree | 2c1393b47e1c789544b905a0b0c8ad6075e11cbf /src | |
| parent | cbdce71b9984e9bb2d8b3a4a8de466cbb2c32ea7 (diff) | |
Print new OldestXID value in pg_resetwal when it's being changed
Commit 74cf7d46a91d added the --oldest-transaction-id option to
pg_resetwal, but forgot to update the code that prints all the new
values that are being set. Fix that.
Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Discussion: https://www.postgresql.org/message-id/5461bc85-e684-4531-b4d2-d2e57ad18cba@iki.fi
Backpatch-through: 14
Diffstat (limited to 'src')
| -rw-r--r-- | src/bin/pg_resetwal/pg_resetwal.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/pg_resetwal/pg_resetwal.c b/src/bin/pg_resetwal/pg_resetwal.c index a31e7643cf0..8d5d9805279 100644 --- a/src/bin/pg_resetwal/pg_resetwal.c +++ b/src/bin/pg_resetwal/pg_resetwal.c @@ -839,6 +839,10 @@ PrintNewControlValues(void) { printf(_("NextXID: %u\n"), XidFromFullTransactionId(ControlFile.checkPointCopy.nextXid)); + } + + if (set_oldest_xid != 0) + { printf(_("OldestXID: %u\n"), ControlFile.checkPointCopy.oldestXid); printf(_("OldestXID's DB: %u\n"), |
