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 <[email protected]>
Reviewed-by: Kirill Reshke <[email protected]>
Reviewed-by: Nathan Bossart <[email protected]>
Reviewed-by: Robert Treat <[email protected]>
Reviewed-by: Masahiko Sawada <[email protected]>
Reviewed-by: Sami Imseih <[email protected]>
Reviewed-by: Michael Paquier <[email protected]>
Reviewed-by: Yu Wang <[email protected]>
Discussion:
https://postgr.es/m/caozeurqcoy-obl_ouevfeafqe_md3vb5pxjr_m6l71dcp1j...@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(-)