agora inbox for pgsql-hackers@postgresql.org  
help / color / mirror / Atom feed
From: Melanie Plageman <melanieplageman@gmail.com>
Subject: [PATCH v5a 4/7] Remove unneeded vacuum_delay_point from heap_vac_scan_get_next_block
Date: Sun, 31 Dec 2023 12:49:56 -0500

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


--lb5e4aqx4b6ik5lq
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment;
	filename="v5a-0005-Streaming-Read-API.patch"



view thread (5+ messages)  latest in thread

Message-ID: <no-message-id-888188@localhost>
Permalink:  ../../no-message-id-888188@localhost/
Also on:    postgresql.org/message-id/no-message-id-888188@localhost

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: melanieplageman@gmail.com
  Subject: Re: [PATCH v5a 4/7] Remove unneeded vacuum_delay_point from heap_vac_scan_get_next_block
  In-Reply-To: <no-message-id-888188@localhost>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox