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: vacuumdb: Move some variables to the vacuumingOptions struct.
Date: Tue, 09 Dec 2025 19:35:03 +0000
Message-ID: <E1vT3UE-003g5o-1o@gemulon.postgresql.org> (raw)

vacuumdb: Move some variables to the vacuumingOptions struct.

Presently, the "echo" and "quiet" variables are carted around to
various functions, which is a bit tedious.  To simplify things,
this commit moves them into the vacuumingOptions struct and removes
the related function parameters.  While at it, remove some
redundant initialization code in vacuumdb's main() function.

This is preparatory work for a follow-up commit that will add a
--dry-run option to vacuumdb.

Reviewed-by: Corey Huinker <corey.huinker@gmail.com>
Reviewed-by: Kirill Reshke <reshkekirill@gmail.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/CADkLM%3DckHkX7Of5SrK7g0LokPUwJ%3Dkk8JU1GXGF5pZ1eBVr0%3DQ%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/cf1450e57799afb683ccbfc482c6f1b5827c81e7

Modified Files
--------------
src/bin/scripts/vacuumdb.c  | 12 +++------
src/bin/scripts/vacuuming.c | 61 ++++++++++++++++++++++-----------------------
src/bin/scripts/vacuuming.h |  4 ++-
3 files changed, 36 insertions(+), 41 deletions(-)



Message-ID: <E1vT3UE-003g5o-1o@gemulon.postgresql.org>
Permalink:  ../E1vT3UE-003g5o-1o@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vT3UE-003g5o-1o@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: vacuumdb: Move some variables to the vacuumingOptions struct.
  In-Reply-To: <E1vT3UE-003g5o-1o@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