pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Masahiko Sawada <msawada@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add mode and started_by columns to pg_stat_progress_vacuum view.
Date: Tue, 09 Dec 2025 18:51:51 +0000
Message-ID: <E1vT2oR-003fZf-1Q@gemulon.postgresql.org> (raw)

Add mode and started_by columns to pg_stat_progress_vacuum view.

The new columns, mode and started_by, indicate the vacuum
mode ('normal', 'aggressive', or 'failsafe') and the initiator of the
vacuum ('manual', 'autovacuum', or 'autovacuum_wraparound'),
respectively. This allows users and monitoring tools to better
understand VACUUM behavior.

Bump catalog version.

Author: Shinya Kato <shinya11.kato@gmail.com>
Reviewed-by: Kirill Reshke <reshkekirill@gmail.com>
Reviewed-by: Nathan Bossart <nathandbossart@gmail.com>
Reviewed-by: Robert Treat <rob@xzilla.net>
Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com>
Reviewed-by: Sami Imseih <samimseih@gmail.com>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Reviewed-by: Yu Wang <wangyu_runtime@163.com>
Discussion: https://postgr.es/m/CAOzEurQcOY-OBL_ouEVfEaFqe_md3vB5pXjR_m6L71Dcp1JKCQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0d789520619803cf6629ebf980e116d733b6756f

Modified Files
--------------
doc/src/sgml/maintenance.sgml        |  7 +++-
doc/src/sgml/monitoring.sgml         | 75 ++++++++++++++++++++++++++++++++++++
src/backend/access/heap/vacuumlazy.c | 23 +++++++++--
src/backend/catalog/system_views.sql | 10 ++++-
src/include/catalog/catversion.h     |  2 +-
src/include/commands/progress.h      | 12 ++++++
src/test/regress/expected/rules.out  | 14 ++++++-
7 files changed, 134 insertions(+), 9 deletions(-)



Message-ID: <E1vT2oR-003fZf-1Q@gemulon.postgresql.org>
Permalink:  ../E1vT2oR-003fZf-1Q@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vT2oR-003fZf-1Q@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: msawada@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add mode and started_by columns to pg_stat_progress_vacuum view.
  In-Reply-To: <E1vT2oR-003fZf-1Q@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