We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0209726 commit efbdcbdCopy full SHA for efbdcbd
src/backend/storage/ipc/procarray.c
@@ -1798,9 +1798,10 @@ GetSnapshotData(Snapshot snapshot)
1798
globalxmin = xmin;
1799
1800
/* Update global variables too */
1801
- RecentGlobalXmin = globalxmin - vacuum_defer_cleanup_age;
1802
- if (!TransactionIdIsNormal(RecentGlobalXmin))
+ if (globalxmin <= FirstNormalTransactionId + vacuum_defer_cleanup_age)
1803
RecentGlobalXmin = FirstNormalTransactionId;
+ else
1804
+ RecentGlobalXmin = globalxmin - vacuum_defer_cleanup_age;
1805
1806
/* Check whether there's a replication slot requiring an older xmin. */
1807
if (TransactionIdIsValid(replication_slot_xmin) &&
0 commit comments