]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Make heap_page_is_all_visible independent of LVRelState
authorMelanie Plageman <melanieplageman@gmail.com>
Tue, 14 Oct 2025 21:43:41 +0000 (17:43 -0400)
committerMelanie Plageman <melanieplageman@gmail.com>
Tue, 14 Oct 2025 21:43:41 +0000 (17:43 -0400)
commit3e4705484e0c64c7e90d5cc697a9aaf474287d0d
tree48d866362c6e67f2fb59c1f971a91e64270cfa30
parent43b05b38ea4d03a0ee9a09f08a9559bc0ca6d7ad
Make heap_page_is_all_visible independent of LVRelState

This function only requires a few fields from LVRelState, so pass them
in individually.

This change allows calling heap_page_is_all_visible() from code such as
pruneheap.c, which does not have access to an LVRelState.

Author: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-by: Kirill Reshke <reshkekirill@gmail.com>
Reviewed-by: Robert Haas <robertmhaas@gmail.com>
Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/2wk7jo4m4qwh5sn33pfgerdjfujebbccsmmlownybddbh6nawl%40mdyyqpqzxjek
src/backend/access/heap/vacuumlazy.c