Add simple VACUUM progress reporting.
Robert Haas <rhaas@postgresql.org>
Add simple VACUUM progress reporting. There's a lot more that could be done here yet - in particular, this reports only very coarse-grained information about the index vacuuming phase - but even as it stands, the new pg_stat_progress_vacuum can tell you quite a bit about what a long-running vacuum is actually doing. Amit Langote and Robert Haas, based on earlier work by Vinayak Pokale and Rahila Syed.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/monitoring.sgml | modified | +207 −0 |
| src/backend/catalog/system_views.sql | modified | +18 −0 |
| src/backend/commands/vacuumlazy.c | modified | +78 −0 |
| src/backend/postmaster/pgstat.c | modified | +29 −0 |
| src/include/catalog/catversion.h | modified | +1 −1 |
| src/include/commands/progress.h | added | +37 −0 |
| src/include/pgstat.h | modified | +2 −0 |
| src/test/regress/expected/rules.out | modified | +22 −0 |