mirror of
https://github.com/postgres/postgres.git
synced 2025-11-24 00:23:06 +03:00
Print new OldestXID value in pg_resetwal when it's being changed
Commit 74cf7d46a9 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
This commit is contained in:
@@ -857,6 +857,10 @@ PrintNewControlValues(void)
|
|||||||
{
|
{
|
||||||
printf(_("NextXID: %u\n"),
|
printf(_("NextXID: %u\n"),
|
||||||
XidFromFullTransactionId(ControlFile.checkPointCopy.nextXid));
|
XidFromFullTransactionId(ControlFile.checkPointCopy.nextXid));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (set_oldest_xid != 0)
|
||||||
|
{
|
||||||
printf(_("OldestXID: %u\n"),
|
printf(_("OldestXID: %u\n"),
|
||||||
ControlFile.checkPointCopy.oldestXid);
|
ControlFile.checkPointCopy.oldestXid);
|
||||||
printf(_("OldestXID's DB: %u\n"),
|
printf(_("OldestXID's DB: %u\n"),
|
||||||
|
|||||||
Reference in New Issue
Block a user