Move VM update code from lazy_scan_heap() to lazy_scan_prune().
authorRobert Haas <rhaas@postgresql.org>
Thu, 18 Jan 2024 19:44:57 +0000 (14:44 -0500)
committerRobert Haas <rhaas@postgresql.org>
Thu, 18 Jan 2024 19:44:57 +0000 (14:44 -0500)
commitcb970240f13df2b63f0410f81f452179a2b78d6f
tree6f0e18787a38956edf8ef57464969bd9de649cda
parent0a157a4d441586a0e590e2f8a3839114e01df4b7
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
src/backend/access/heap/vacuumlazy.c