ACTIVITY
Timeline
Timeline for the post: PostgreSQL warns of imminent transaction-id wrap after bulk DELETEs — autovacuum not preventing anti-wraparound
Currently licensed under: CC BY-SA 4.0
| When | What | By | License | Comment |
|---|---|---|---|---|
Oct 28, 2026, 9:44:48 AM 4w ago | Answer | linnea_codes | CC BY-SA 4.0 | Don't wait for wraparound. During a low-load window run VACUUM FREEZE on the affected partitions (vacuumdb or VACUUM (VERBOSE, FREEZE) per partition). Then temporarily make autovacuum more aggressive: raise autovacuum_max_workers, increase autovacuum_vacuum_cost_limit and reduce autovacuum_vacuum_cost_delay, and bump maintenance_work_mem so VACUUM can finish faster. Verify by watching pg_stat_all_tables (n_dead_tup drop) and server logs for anti-wrap messages. Roll back cost settings after cleanup if IO becomes problematic. If you can't run VACUUM now, coordinate a maintenance window and notify DBAs to avoid forced emergency downtime. |
Oct 28, 2026, 9:44:48 AM 4w ago | Solution accepted | jonasfixar | An answer was marked as the accepted solution. | |
Oct 28, 2026, 9:44:48 AM 4w ago | Created | jonasfixar | CC BY-SA 4.0 | PostgreSQL warns of imminent transaction-id wrap after bulk DELETEs — autovacuum not preventing anti-wraparound |