diff options
author | Peter Geoghegan <pg@bowt.ie> | 2021-11-11 13:13:08 -0800 |
---|---|---|
committer | Peter Geoghegan <pg@bowt.ie> | 2021-11-11 13:13:08 -0800 |
commit | eb9baef8e92adf81c6adbe44f1d67878d850bff7 (patch) | |
tree | 1fc9e8c2b09b332fa7d75d0bc7bb099c5b87b4fc /src | |
parent | beb4e9ba1652a04f66ff20261444d06f678c0b2d (diff) | |
download | postgresql-eb9baef8e92adf81c6adbe44f1d67878d850bff7.tar.gz postgresql-eb9baef8e92adf81c6adbe44f1d67878d850bff7.zip |
Update another obsolete reference in vacuumlazy.c.
Addresses an oversight in commit 7ab96cf6.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/access/heap/vacuumlazy.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/backend/access/heap/vacuumlazy.c b/src/backend/access/heap/vacuumlazy.c index 558cc88a08a..1dd162ab916 100644 --- a/src/backend/access/heap/vacuumlazy.c +++ b/src/backend/access/heap/vacuumlazy.c @@ -3610,6 +3610,11 @@ vac_cmp_itemptr(const void *left, const void *right) * transactions. Also return the visibility_cutoff_xid which is the highest * xmin amongst the visible tuples. Set *all_frozen to true if every tuple * on this page is frozen. + * + * This is a stripped down version of lazy_scan_prune(). If you change + * anything here, make sure that everything stays in sync. Note that an + * assertion calls us to verify that everybody still agrees. Be sure to avoid + * introducing new side-effects here. */ static bool heap_page_is_all_visible(LVRelState *vacrel, Buffer buf, @@ -3625,10 +3630,6 @@ heap_page_is_all_visible(LVRelState *vacrel, Buffer buf, *visibility_cutoff_xid = InvalidTransactionId; *all_frozen = true; - /* - * This is a stripped down version of the line pointer scan in - * lazy_scan_heap(). So if you change anything here, also check that code. - */ maxoff = PageGetMaxOffsetNumber(page); for (offnum = FirstOffsetNumber; offnum <= maxoff && all_visible; |