pgsql: Remove extract_autovac_opts().

From: Nathan Bossart <nathan(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove extract_autovac_opts().
Date: 2026-08-17 17:16:53
Message-ID: E1ww0x9-00000000wdy-3oSQ@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Remove extract_autovac_opts().

extract_autovac_opts() returns a palloc'd copy of just the
AutoVacOpts portion of a relation's reloptions, but upcoming work
needs the other StdRdOptions fields, too. Remove it in favor of
calling extractRelOptions() directly. av_relation now caches the
main table's whole StdRdOptions.

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0499c6ccf5ce510ad8c57211ee8c9414e92c71b7

Modified Files
--------------
src/backend/postmaster/autovacuum.c | 85 +++++++++++++------------------------
1 file changed, 29 insertions(+), 56 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Nathan Bossart 2026-08-17 18:17:44 pgsql: Make autovacuum_enabled a ternary reloption.
Previous Message Michael Paquier 2026-08-17 07:17:00 pgsql: Use safer allocation routines in more places of the tree