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 <[email protected]>
Suggested-by: Chao Li <[email protected]>
Discussion: 
https://postgr.es/m/CAEoWx2=jid1nqch4jqn+odaxzsd7mrvdohugjyn2r6tqg_6...@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/bfe5c4bec75091d5c91813ff9c6994a169ceb8ef

Modified Files
--------------
src/backend/access/heap/pruneheap.c | 7 +++++++
1 file changed, 7 insertions(+)

Reply via email to