Refactor heap_page_prune_and_freeze() parameters into a struct
authorMelanie Plageman <melanieplageman@gmail.com>
Thu, 20 Nov 2025 15:30:43 +0000 (10:30 -0500)
committerMelanie Plageman <melanieplageman@gmail.com>
Thu, 20 Nov 2025 15:32:14 +0000 (10:32 -0500)
commit1937ed70621e203c99e651ce4430dd217743d150
treea62e02bf2d562cb61d151c7c0d6596268cc5817c
parentfa0ffa28778fbf4056a77f7b76361d295a737df6
Refactor heap_page_prune_and_freeze() parameters into a struct

heap_page_prune_and_freeze() had accumulated an unwieldy number of input
parameters and upcoming work to handle VM updates in this function will
add even more.

Introduce a new PruneFreezeParams struct to group the function’s input
parameters, improving readability and maintainability.

Author: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-by: Kirill Reshke <reshkekirill@gmail.com>
Discussion: https://postgr.es/m/yn4zp35kkdsjx6wf47zcfmxgexxt4h2og47pvnw2x5ifyrs3qc%407uw6jyyxuyf7
src/backend/access/heap/pruneheap.c
src/backend/access/heap/vacuumlazy.c
src/include/access/heapam.h
src/tools/pgindent/typedefs.list