Skip to content

Commit 2454910

Browse files
Paul Guomy-ship-it
authored andcommitted
Add argument --next-gxid in pg_resetwal to support next-gxid reset.
Reviewed-by: Gang Xiong <[email protected]>
1 parent 55659cf commit 2454910

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/bin/pg_resetwal/pg_resetwal.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,9 @@ main(int argc, char *argv[])
564564
FullTransactionIdFromEpochAndXid(EpochFromFullTransactionId(ControlFile.checkPointCopy.nextXid),
565565
set_xid);
566566

567+
if (set_gxid != 0)
568+
ControlFile.checkPointCopy.nextGxid = set_gxid;
569+
567570
if (set_oldest_commit_ts_xid != 0)
568571
ControlFile.checkPointCopy.oldestCommitTsXid = set_oldest_commit_ts_xid;
569572
if (set_newest_commit_ts_xid != 0)

0 commit comments

Comments
 (0)