summaryrefslogtreecommitdiff
path: root/src/bin/pg_upgrade/pg_upgrade.h
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2021-07-26 22:38:14 -0400
committerBruce Momjian <bruce@momjian.us>2021-07-26 22:38:14 -0400
commit0a5e708e2bd87adb0779d7c8758e5743cc1c0adf (patch)
treedaa4b3447aa38d93a87ea6d70f0b0238296c5633 /src/bin/pg_upgrade/pg_upgrade.h
parent882d15144bbb21856676ff046faee1e9a580e3e4 (diff)
pg_resetxlog: add option to set oldest xid & use by pg_upgrade
Add pg_resetxlog -u option to set the oldest xid in pg_control. Previously -x set this value be -2 billion less than the -x value. However, this causes the server to immediately scan all relation's relfrozenxid so it can advance pg_control's oldest xid to be inside the autovacuum_freeze_max_age range, which is inefficient and might disrupt diagnostic recovery. pg_upgrade will use this option to better create the new cluster to match the old cluster. Reported-by: Jason Harvey, Floris Van Nee Discussion: https://postgr.es/m/20190615183759.GB239428@rfd.leadboat.com, 87da83168c644fd9aae38f546cc70295@opammb0562.comp.optiver.com Author: Bertrand Drouvot Backpatch-through: 9.6
Diffstat (limited to 'src/bin/pg_upgrade/pg_upgrade.h')
-rw-r--r--src/bin/pg_upgrade/pg_upgrade.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/pg_upgrade/pg_upgrade.h b/src/bin/pg_upgrade/pg_upgrade.h
index dbdf4d4a551..f08b90bfbd8 100644
--- a/src/bin/pg_upgrade/pg_upgrade.h
+++ b/src/bin/pg_upgrade/pg_upgrade.h
@@ -207,6 +207,7 @@ typedef struct
uint32 chkpnt_nxtmulti;
uint32 chkpnt_nxtmxoff;
uint32 chkpnt_oldstMulti;
+ uint32 chkpnt_oldstxid;
uint32 align;
uint32 blocksz;
uint32 largesz;