Diagnostic step 1
Schedule an immediate maintenance window and run VACUUM (VERBOSE, FREEZE) on the most affected partitions; monitor progress and replication lag.
Generated Oct 28, 2026, 9:44:48 AM
Schedule an immediate maintenance window and run VACUUM (VERBOSE, FREEZE) on the most affected partitions; monitor progress and replication lag.
Temporarily increase autovacuum_max_workers and autovacuum_vacuum_cost_limit and lower autovacuum_vacuum_cost_delay to allow faster cleanup; monitor disk IO and client latency.
Increase maintenance_work_mem to speed vacuum operations and reduce I/O sweeps, then restore to conservative value after cleanup if needed.
For long-term avoidance, modify ETL to use partition exchange/truncate for bulk deletes or add more frequent targeted VACUUMs; test on a standby before applying globally.