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: Simplify autovacuum's TOAST-to-main-relation reloptions map.
Date: Thu, 20 Aug 2026 20:56:59 +0000
Message-ID: <E1wx9oo-00000001PMa-3kiD@gemulon.postgresql.org> (raw)

Simplify autovacuum's TOAST-to-main-relation reloptions map.

The ar_relid and ar_hasrelopts members of the av_relation struct
can be removed.  ar_relid isn't used by anything, and we only need
ar_hasrelopts because we add an entry to the map even when the main
table has no reloptions set.  If we instead only add entries for
tables with reloptions set, we can take the presence of an entry to
mean the main table has some.

Reviewed-by: Michael Paquier <michael@paquier.xyz>
Reviewed-by: Sami Imseih <samimseih@gmail.com>
Tested-by: Greg Burd <greg@burd.me>
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/81920f24a47e9580af8e25a72f6b5b660b69fee1

Modified Files
--------------
src/backend/postmaster/autovacuum.c | 32 +++++++++-----------------------
1 file changed, 9 insertions(+), 23 deletions(-)



Message-ID: <E1wx9oo-00000001PMa-3kiD@gemulon.postgresql.org>
Permalink:  ../E1wx9oo-00000001PMa-3kiD@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1wx9oo-00000001PMa-3kiD@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: Simplify autovacuum's TOAST-to-main-relation reloptions map.
  In-Reply-To: <E1wx9oo-00000001PMa-3kiD@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