> On 6 Apr 2023, at 23:06, Melanie Plageman <melanieplage...@gmail.com> wrote:
> Autovacuum workers, at the end of VacuumUpdateCosts(), check if cost > limit or cost delay have been changed. If they have, they assert that > they don't already hold the AutovacuumLock, take it in shared mode, and > do the logging. Another idea would be to copy the values to local temp variables while holding the lock, and release the lock before calling elog() to avoid holding the lock over potential IO. -- Daniel Gustafsson