mirror of
https://github.com/postgres/postgres.git
synced 2025-07-11 10:01:57 +03:00
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.
This commit is contained in:
@ -978,6 +978,8 @@ extern const char *pgstat_get_crashed_backend_activity(int pid, char *buffer,
|
||||
extern void pgstat_progress_start_command(ProgressCommandType cmdtype,
|
||||
Oid relid);
|
||||
extern void pgstat_progress_update_param(int index, int64 val);
|
||||
extern void pgstat_progress_update_multi_param(int nparam, const int *index,
|
||||
const int64 *val);
|
||||
extern void pgstat_progress_end_command(void);
|
||||
|
||||
extern PgStat_TableStatus *find_tabstat_entry(Oid rel_id);
|
||||
|
Reference in New Issue
Block a user