pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathan@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Make autovacuum_enabled a ternary reloption.
Date: Mon, 17 Aug 2026 18:17:44 +0000
Message-ID: <E1ww1u3-00000000wzu-2OG1@gemulon.postgresql.org> (raw)

Make autovacuum_enabled a ternary reloption.

This commit reimplements autovacuum_enabled as a ternary, using the
support added in commit 4d6a66f675 and following the example of
vacuum_truncate.  This changes only the internal representation: an
unset value still behaves as enabled, and the option accepts the
same input as before.

This is preparatory work for a follow-up commit that will make use
of the new "unset" state.

Reviewed-by: Michael Paquier <michael@paquier.xyz>
Reviewed-by: Greg Burd <greg@burd.me>
Reviewed-by: Sami Imseih <samimseih@gmail.com>
Tested-by: solai v <solai.cdac@gmail.com>
Discussion: https://postgr.es/m/aFRxC1W_kZU9OjJ9%40nathan

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3d8f71a370f0ad93762f140f6e69c2abe05b229a

Modified Files
--------------
src/backend/access/common/reloptions.c | 19 +++++++++----------
src/backend/catalog/index.c            |  3 ++-
src/backend/postmaster/autovacuum.c    |  2 +-
src/include/utils/rel.h                |  2 +-
4 files changed, 13 insertions(+), 13 deletions(-)



Message-ID: <E1ww1u3-00000000wzu-2OG1@gemulon.postgresql.org>
Permalink:  ../E1ww1u3-00000000wzu-2OG1@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ww1u3-00000000wzu-2OG1@gemulon.postgresql.org

 · 

reply

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: nathan@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Make autovacuum_enabled a ternary reloption.
  In-Reply-To: <E1ww1u3-00000000wzu-2OG1@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