pgsql: Move VM update code from lazy_scan_heap() to lazy_scan_prune(). - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: Move VM update code from lazy_scan_heap() to lazy_scan_prune().
Date
Msg-id E1rQYKR-0022rd-9B@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Robert Haas
Date:
Subject: pgsql: Clarify language in incremental backup glossary entry.
Next
From: Robert Haas
Date:
Subject: pgsql: Remove LVPagePruneState.