]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Add explanatory comment to prune_freeze_setup()
authorMelanie Plageman <melanieplageman@gmail.com>
Tue, 16 Dec 2025 15:30:14 +0000 (10:30 -0500)
committerMelanie Plageman <melanieplageman@gmail.com>
Tue, 16 Dec 2025 16:04:07 +0000 (11:04 -0500)
commitbfe5c4bec75091d5c91813ff9c6994a169ceb8ef
treeb1ea1fad55c617e6f3de2d902fa9f8d0a3de9b9c
parent4877391ce894e5b964a69e94e1750cde9df04a07
Add explanatory comment to prune_freeze_setup()

heap_page_prune_and_freeze() fills in PruneState->deadoffsets, the array
of OffsetNumbers of dead tuples. It is returned to the caller in the
PruneFreezeResult. To avoid having two copies of the array, the
PruneState saves only a pointer to the array. This was a bit unusual and
confusing, so add a clarifying comment.

Author: Melanie Plageman <melanieplageman@gmail.com>
Suggested-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/CAEoWx2=jiD1nqch4JQN+odAxZSD7mRvdoHUGJYN2r6tQG_66yQ@mail.gmail.com
src/backend/access/heap/pruneheap.c