From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Introduce 'options' argument to heap_page_prune()
Date: Mon, 01 Apr 2024 21:56:56 +0000
Message-ID: <E1rrPeB-0002LN-V1@gemulon.postgresql.org> (raw)
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
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/3d0f730bf19fbc70cca58818c1ad7415e5aa7d62
Modified Files
--------------
src/backend/access/heap/pruneheap.c | 11 ++++++-----
src/backend/access/heap/vacuumlazy.c | 9 ++++++---
src/include/access/heapam.h | 5 ++++-
3 files changed, 16 insertions(+), 9 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: heikki.linnakangas@iki.fi, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Introduce 'options' argument to heap_page_prune()
In-Reply-To: <E1rrPeB-0002LN-V1@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox