From 4ab5ed0863ca4fcdc197811d60011971a29b8857 Mon Sep 17 00:00:00 2001 From: Melanie Plageman Date: Sun, 31 Dec 2023 12:49:56 -0500 Subject: [PATCH v5a 4/7] Remove unneeded vacuum_delay_point from heap_vac_scan_get_next_block heap_vac_scan_get_next_block() does relatively little work, so there is no need to call vacuum_delay_point(). A future commit will call heap_vac_scan_get_next_block() from a callback, and we would like to avoid calling vacuum_delay_point() in that callback. --- src/backend/access/heap/vacuumlazy.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/backend/access/heap/vacuumlazy.c b/src/backend/access/heap/vacuumlazy.c index 99d160335e1..65d257aab83 100644 --- a/src/backend/access/heap/vacuumlazy.c +++ b/src/backend/access/heap/vacuumlazy.c @@ -1184,8 +1184,6 @@ heap_vac_scan_get_next_block(LVRelState *vacrel, BlockNumber next_block, */ skipsallvis = true; } - - vacuum_delay_point(); } vacrel->skip.next_unskippable_block = next_unskippable_block; -- 2.40.1