mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +03:00
Report wait event for cost-based vacuum delay.
Author: Justin Pryzby Discussion: https://postgr.es/m/20200321040750.GD13662@telsasoft.com
This commit is contained in:
@ -2019,7 +2019,9 @@ vacuum_delay_point(void)
|
||||
if (msec > VacuumCostDelay * 4)
|
||||
msec = VacuumCostDelay * 4;
|
||||
|
||||
pgstat_report_wait_start(WAIT_EVENT_VACUUM_DELAY);
|
||||
pg_usleep((long) (msec * 1000));
|
||||
pgstat_report_wait_end();
|
||||
|
||||
VacuumCostBalance = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user