Skip to content

Commit 7c49407

Browse files
committed
Print new OldestXID value in pg_resetwal when it's being changed
Commit 74cf7d4 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
1 parent 9f5a58a commit 7c49407

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bin/pg_resetwal/pg_resetwal.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,10 @@ PrintNewControlValues(void)
821821
{
822822
printf(_("NextXID: %u\n"),
823823
XidFromFullTransactionId(ControlFile.checkPointCopy.nextXid));
824+
}
825+
826+
if (set_oldest_xid != 0)
827+
{
824828
printf(_("OldestXID: %u\n"),
825829
ControlFile.checkPointCopy.oldestXid);
826830
printf(_("OldestXID's DB: %u\n"),

0 commit comments

Comments
 (0)