Use a WaitLatch for vacuum/autovacuum sleeping
Stephen Frost <sfrost@snowman.net>
Use a WaitLatch for vacuum/autovacuum sleeping Instead of using pg_usleep() in vacuum_delay_point(), use a WaitLatch. This has the advantage that we will realize if the postmaster has been killed since the last time we decided to sleep while vacuuming. Reviewed-by: Thomas Munro Discussion: https://postgr.es/m/CAFh8B=kcdk8k-Y21RfXPu5dX=bgPqJ8TC3p_qxR_ygdBS=JN5w@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/vacuum.c | modified | +5 −3 |
Discussion
- Autovacuum worker doesn't immediately exit on postmaster death 22 messages · 2020-10-28 → 2021-03-30