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: Refactor relation_needs_vacanalyze().
Date: Fri, 03 Apr 2026 19:03:38 +0000
Message-ID: <E1w8jnt-002n8k-2I@gemulon.postgresql.org> (raw)

Refactor relation_needs_vacanalyze().

This commit adds an early return to this function, allowing us to
remove a level of indentation on a decent chunk of code.  This is
preparatory work for follow-up commits that will add a new system
view to show tables' autovacuum scores.

Reviewed-by: Sami Imseih <samimseih@gmail.com>
Discussion: https://postgr.es/m/CAA5RZ0s4xjMrB-VAnLccC7kY8d0-4806-Lsac-czJsdA1LXtAw%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8261ee24fe332a5042cd4bc3101b4fd99dee6a46

Modified Files
--------------
src/backend/postmaster/autovacuum.c | 153 ++++++++++++++++++------------------
1 file changed, 76 insertions(+), 77 deletions(-)



Message-ID: <E1w8jnt-002n8k-2I@gemulon.postgresql.org>
Permalink:  ../E1w8jnt-002n8k-2I@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1w8jnt-002n8k-2I@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: Refactor relation_needs_vacanalyze().
  In-Reply-To: <E1w8jnt-002n8k-2I@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