| From: | Melanie Plageman <melanieplageman(at)gmail(dot)com> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Fix const qualification in prune_freeze_setup() |
| Date: | 2025-12-16 16:05:27 |
| Message-ID: | E1vVXYE-0015cC-0r@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(at)eisentraut(dot)org>
Reviewed-by: Melanie Plageman <melanieplageman(at)gmail(dot)com>
Discussion: https://postgr.es/m/fb97d0ae-a0bc-411d-8a87-f84e7e146488%40eisentraut.org
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/4877391ce894e5b964a69e94e1750cde9df04a07
Modified Files
--------------
src/backend/access/heap/pruneheap.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2025-12-16 17:01:54 | pgsql: Test PRI* macros even when we can't test NLS translation. |
| Previous Message | Tomas Vondra | 2025-12-16 15:17:51 | Re: failed NUMA pages inquiry status: Operation not permitted |