Introduce 'options' argument to heap_page_prune()
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 1 Apr 2024 21:56:05 +0000 (00:56 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 1 Apr 2024 21:56:05 +0000 (00:56 +0300)
commit3d0f730bf19fbc70cca58818c1ad7415e5aa7d62
treeabdfaa169dcb09e48f50ca59805213a67500265f
parent959b38d770ba1f8f35edab27ef3ccf8b1d99f5dd
Introduce 'options' argument to heap_page_prune()

Currently there is only one option, HEAP_PAGE_PRUNE_MARK_UNUSED_NOW
which replaces the old boolean argument, but upcoming patches will
introduce at least one more. Having a lot of boolean arguments makes
it hard to see at the call sites what the arguments mean, so prefer a
bitmask of options with human-readable names.

Author: Melanie Plageman <melanieplageman@gmail.com>
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Discussion: https://www.postgresql.org/message-id/20240401172219.fngjosaqdgqqvg4e@liskov
src/backend/access/heap/pruneheap.c
src/backend/access/heap/vacuumlazy.c
src/include/access/heapam.h