diff --git a/src/backend/access/heap/vacuumlazy.c b/src/backend/access/heap/vacuumlazy.c index 03c43efc32..ee5fe8efa6 100644 --- a/src/backend/access/heap/vacuumlazy.c +++ b/src/backend/access/heap/vacuumlazy.c @@ -1093,8 +1093,6 @@ lazy_scan_heap(Relation onerel, VacuumParams *params, LVRelStats *vacrelstats, if (PageIsNew(page)) { - bool still_new; - /* * All-zeroes pages can be left over if either a backend extends * the relation by a single page, but crashes before the newly @@ -1118,10 +1116,9 @@ lazy_scan_heap(Relation onerel, VacuumParams *params, LVRelStats *vacrelstats, * Perform checking of FSM after releasing lock, the fsm is * approximate, after all. */ - still_new = PageIsNew(page); UnlockReleaseBuffer(buf); - if (still_new) + if (PageIsNew(page)) { empty_pages++;