Skip to content

Commit ba6af6a

Browse files
vacuumlazy.c: MultiXactIds are MXIDs, not XMIDs.
Oversights in commits 0b018fa and f3c15cb.
1 parent 8ab0ebb commit ba6af6a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/access/heap/vacuumlazy.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ heap_vacuum_rel(Relation rel, VacuumParams *params,
512512
vacrel->FreezeLimit = FreezeLimit;
513513
/* MultiXactCutoff controls MXID freezing (always <= OldestMxact) */
514514
vacrel->MultiXactCutoff = MultiXactCutoff;
515-
/* Initialize state used to track oldest extant XID/XMID */
515+
/* Initialize state used to track oldest extant XID/MXID */
516516
vacrel->NewRelfrozenXid = OldestXmin;
517517
vacrel->NewRelminMxid = OldestMxact;
518518
vacrel->skippedallvis = false;
@@ -1295,7 +1295,7 @@ lazy_scan_heap(LVRelState *vacrel)
12951295
* Note: our opinion of which blocks can be skipped can go stale immediately.
12961296
* It's okay if caller "misses" a page whose all-visible or all-frozen marking
12971297
* was concurrently cleared, though. All that matters is that caller scan all
1298-
* pages whose tuples might contain XIDs < OldestXmin, or XMIDs < OldestMxact.
1298+
* pages whose tuples might contain XIDs < OldestXmin, or MXIDs < OldestMxact.
12991299
* (Actually, non-aggressive VACUUMs can choose to skip all-visible pages with
13001300
* older XIDs/MXIDs. The vacrel->skippedallvis flag will be set here when the
13011301
* choice to skip such a range is actually made, making everything safe.)
@@ -2012,7 +2012,7 @@ lazy_scan_noprune(LVRelState *vacrel,
20122012
* relfrozenxid to a value >= FreezeLimit (and be able to
20132013
* advance rel's relminmxid to a value >= MultiXactCutoff).
20142014
* The ongoing aggressive VACUUM won't be able to do that
2015-
* unless it can freeze an XID (or XMID) from this tuple now.
2015+
* unless it can freeze an XID (or MXID) from this tuple now.
20162016
*
20172017
* The only safe option is to have caller perform processing
20182018
* of this page using lazy_scan_prune. Caller might have to

0 commit comments

Comments
 (0)