pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Move VM update code from lazy_scan_heap() to lazy_scan_prune().
Date: Thu, 18 Jan 2024 19:45:31 +0000
Message-ID: <E1rQYKR-0022rd-9B@gemulon.postgresql.org> (raw)

Move VM update code from lazy_scan_heap() to lazy_scan_prune().

Most of the output parameters of lazy_scan_prune() were being
used to update the VM in lazy_scan_heap(). Moving that code into
lazy_scan_prune() simplifies lazy_scan_heap() and requires less
communication between the two.

This change permits some further code simplification, but that
is left for a separate commit.

Melanie Plageman, reviewed by me.

Discussion: http://postgr.es/m/CAAKRu_aM=OL85AOr-80wBsCr=vLVzhnaavqkVPRkFBtD0zsuLQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/cb970240f13df2b63f0410f81f452179a2b78d6f

Modified Files
--------------
src/backend/access/heap/vacuumlazy.c | 226 ++++++++++++++++++-----------------
1 file changed, 115 insertions(+), 111 deletions(-)



Message-ID: <E1rQYKR-0022rd-9B@gemulon.postgresql.org>
Permalink:  ../E1rQYKR-0022rd-9B@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1rQYKR-0022rd-9B@gemulon.postgresql.org

 · 

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-committers@postgresql.org
  Cc: rhaas@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Move VM update code from lazy_scan_heap() to lazy_scan_prune().
  In-Reply-To: <E1rQYKR-0022rd-9B@gemulon.postgresql.org>

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

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