Skip to content

Commit eb9baef

Browse files
Update another obsolete reference in vacuumlazy.c.
Addresses an oversight in commit 7ab96cf.
1 parent beb4e9b commit eb9baef

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/backend/access/heap/vacuumlazy.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3610,6 +3610,11 @@ vac_cmp_itemptr(const void *left, const void *right)
36103610
* transactions. Also return the visibility_cutoff_xid which is the highest
36113611
* xmin amongst the visible tuples. Set *all_frozen to true if every tuple
36123612
* on this page is frozen.
3613+
*
3614+
* This is a stripped down version of lazy_scan_prune(). If you change
3615+
* anything here, make sure that everything stays in sync. Note that an
3616+
* assertion calls us to verify that everybody still agrees. Be sure to avoid
3617+
* introducing new side-effects here.
36133618
*/
36143619
static bool
36153620
heap_page_is_all_visible(LVRelState *vacrel, Buffer buf,
@@ -3625,10 +3630,6 @@ heap_page_is_all_visible(LVRelState *vacrel, Buffer buf,
36253630
*visibility_cutoff_xid = InvalidTransactionId;
36263631
*all_frozen = true;
36273632

3628-
/*
3629-
* This is a stripped down version of the line pointer scan in
3630-
* lazy_scan_heap(). So if you change anything here, also check that code.
3631-
*/
36323633
maxoff = PageGetMaxOffsetNumber(page);
36333634
for (offnum = FirstOffsetNumber;
36343635
offnum <= maxoff && all_visible;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy