Fix const qualification in prune_freeze_setup()
authorMelanie Plageman <[email protected]>
Tue, 16 Dec 2025 15:29:16 +0000 (10:29 -0500)
committerMelanie Plageman <[email protected]>
Tue, 16 Dec 2025 16:00:05 +0000 (11:00 -0500)
commit4877391ce894e5b964a69e94e1750cde9df04a07
tree28c0914f012d6ae2b049ccaa9c75077b11816fd0
parentb39013b7b1b116b5d9be51f0919b472b58b3a28d
Fix const qualification in prune_freeze_setup()

The const qualification of the presult argument to prune_freeze_setup()
is later cast away, so it was not correct. Remove it and add a comment
explaining that presult should not be modified.

Author: Peter Eisentraut <[email protected]>
Reviewed-by: Melanie Plageman <[email protected]>
Discussion: https://postgr.es/m/fb97d0ae-a0bc-411d-8a87-f84e7e146488%40eisentraut.org
src/backend/access/heap/pruneheap.c