Remove unused xl_heap_prune member, reason
authorMelanie Plageman <melanieplageman@gmail.com>
Mon, 8 Sep 2025 18:25:10 +0000 (14:25 -0400)
committerMelanie Plageman <melanieplageman@gmail.com>
Mon, 8 Sep 2025 18:25:10 +0000 (14:25 -0400)
commit4b5f206de2bb9152a99a5c218caf2580cc5a0e9e
tree66313f923ea9a9f7d8382e2ff28be34d5467e0db
parent5a170e992a4d402ef0e1b8ce7284cd78879ece73
Remove unused xl_heap_prune member, reason

f83d709760d8 refactored xl_heap_prune and added an unused member,
reason. While PruneReason is used when constructing this WAL record to
set the WAL record definition, it doesn't need to be stored in a
separate field in the record. Remove it.

We won't backport this, since modifying an exposed struct definition to
remove an unused field would do more harm than good.

Author: Melanie Plageman <melanieplageman@gmail.com>
Reported-by: Andres Freund <andres@anarazel.de>
Reviewed-by: Robert Haas <robertmhaas@gmail.com>
Discussion: https://postgr.es/m/tvvtfoxz5ykpsctxjbzxg3nldnzfc7geplrt2z2s54pmgto27y%40hbijsndifu45
src/include/access/heapam_xlog.h