Introduce 'options' argument to heap_page_prune()

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 3d0f730bf19fbc70cca58818c1ad7415e5aa7d62
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2024-04-01T21:56:05Z
Releases: 17.0
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

Files

Discussion