Split heap_page_prune_and_freeze() into helpers
authorMelanie Plageman <[email protected]>
Wed, 26 Nov 2025 15:57:50 +0000 (10:57 -0500)
committerMelanie Plageman <[email protected]>
Wed, 26 Nov 2025 16:00:34 +0000 (11:00 -0500)
commite135e044572e88291343f45ce65b406ac963b0e7
tree16333dc143e2891a2dc68707fdad74811419bb16
parent9446f918ace9c407805ba7d0a73e8370070b12f9
Split heap_page_prune_and_freeze() into helpers

Refactor the setup and planning phases of pruning and freezing into
helpers. This streamlines heap_page_prune_and_freeze() and makes it more
clear when the examination of tuples ends and page modifications begin.

No code change beyond what was required to extract the code into helper
functions.

Author: Melanie Plageman <[email protected]>
Reviewed-by: Andres Freund <[email protected]>
Reviewed-by: Chao Li <[email protected]>
Discussion: https://postgr.es/m/mhf4vkmh3j57zx7vuxp4jagtdzwhu3573pgfpmnjwqa6i6yj5y%40sy4ymcdtdklo
src/backend/access/heap/pruneheap.c