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

Robert Haas <rhaas@postgresql.org>

Commit: cb970240f13df2b63f0410f81f452179a2b78d6f
Author: Robert Haas <rhaas@postgresql.org>
Date: 2024-01-18T19:44:57Z
Releases: 17.0
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

Files

PathChange+/−
src/backend/access/heap/vacuumlazy.c modified +115 −111

Discussion