pgsql: Remove recheck_relation_needs_vacanalyze().

From: Nathan Bossart <nathan(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove recheck_relation_needs_vacanalyze().
Date: 2026-04-06 19:31:32
Message-ID: E1w9pfX-003HQH-19@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Remove recheck_relation_needs_vacanalyze().

This function is a thin wrapper around relation_needs_vacanalyze()
that handles fetching and freeing the pgstat entry for the table.
Since all callers of relation_needs_vacanalyze() do that anyway, we
can teach that function to fetch/free the pgstat entry and use it
instead.

Suggested-by: Álvaro Herrera <alvherre(at)kurilemu(dot)de>
Author: Sami Imseih <samimseih(at)gmail(dot)com>
Co-authored-by: Nathan Bossart <nathandbossart(at)gmail(dot)com>
Discussion: https://postgr.es/m/CAA5RZ0s4xjMrB-VAnLccC7kY8d0-4806-Lsac-czJsdA1LXtAw%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/775fe51daaef9131c5a00447c0ea9ff36d6a2406

Modified Files
--------------
src/backend/postmaster/autovacuum.c | 74 +++++++------------------------------
1 file changed, 14 insertions(+), 60 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alexander Korotkov 2026-04-06 19:47:42 pgsql: Avoid syscache lookup while building a WAIT FOR tuple descriptor
Previous Message Robert Haas 2026-04-06 19:30:39 pgsql: auto_explain: Add new GUC, auto_explain.log_extension_options.