Introduce 'options' argument to heap_page_prune()
Heikki Linnakangas <heikki.linnakangas@iki.fi>
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
| Path | Change | +/− |
|---|---|---|
| src/backend/access/heap/pruneheap.c | modified | +6 −5 |
| src/backend/access/heap/vacuumlazy.c | modified | +6 −3 |
| src/include/access/heapam.h | modified | +4 −1 |
Discussion
- Combine Prune and Freeze records emitted by vacuum 51 messages · 2024-01-24 → 2024-04-03