Report index vacuum progress.
Masahiko Sawada <msawada@postgresql.org>
Report index vacuum progress. This commit adds two columns: indexes_total and indexes_processed, to pg_stat_progress_vacuum system view to show the index vacuum progress. These numbers are reported in the "vacuuming indexes" and "cleaning up indexes" phases. This uses the new parallel message type for progress reporting added by be06506e7. Bump catversion because this changes the definition of pg_stat_progress_vacuum. Author: Sami Imseih Reviewed by: Masahiko Sawada, Michael Paquier, Nathan Bossart, Andres Freund Discussion: https://www.postgresql.org/message-id/flat/5478DFCD-2333-401A-B2F0-0D186AB09228@amazon.com
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/monitoring.sgml | modified | +23 −0 |
| src/backend/access/heap/vacuumlazy.c | modified | +61 −9 |
| src/backend/catalog/system_views.sql | modified | +2 −1 |
| src/backend/commands/vacuumparallel.c | modified | +8 −1 |
| src/include/catalog/catversion.h | modified | +1 −1 |
| src/include/commands/progress.h | modified | +2 −0 |
| src/test/regress/expected/rules.out | modified | +3 −1 |
Documentation touched
Discussion
- Add index scan progress to pg_stat_progress_vacuum 138 messages · 2021-12-01 → 2023-07-11