Fix const qualification in prune_freeze_setup()

Melanie Plageman <melanieplageman@gmail.com>

Commit: 4877391ce894e5b964a69e94e1750cde9df04a07
Author: Melanie Plageman <melanieplageman@gmail.com>
Date: 2025-12-16T16:00:05Z
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 <peter@eisentraut.org>
Reviewed-by: Melanie Plageman <melanieplageman@gmail.com>
Discussion: https://postgr.es/m/fb97d0ae-a0bc-411d-8a87-f84e7e146488%40eisentraut.org

Files

PathChange+/−
src/backend/access/heap/pruneheap.c modified +6 −3

Discussion