Hi,
Here is a small patch to propagate track_cost_delay_timing to parallel
autovacuum workers. 1ff3180ca01 propagates the cost-based delay
parameters via PVSharedCostParams but left this one out, so a worker keeps
the value it inherited at parallel start, and workers will not report
sleep time if the GUC is turned on mid-flight.
This only impacts delay reporting, but should be backpatched to 19 which
introduced parallel autovacuum.
CC Sawada-san and Zsolt since there is a related discussion in [1], though
that one is about throttling.
[1] https://www.postgresql.org/message-id/flat/CAN4CZFOZtEPwGQ6oa9LvHvN522zEp8h_dW9hHExSh7pVXofoKQ%40mail.gmail.com
--
Sami Imseih
Amazon Web Services (AWS)