Diagnostic step 1
Restore autovacuum_vacuum_cost_delay to a conservative value (e.g., 20ms), monitor CPU and autovacuum log frequency for 1–2 hours.
Generated Oct 21, 2026, 9:46:27 AM
Restore autovacuum_vacuum_cost_delay to a conservative value (e.g., 20ms), monitor CPU and autovacuum log frequency for 1–2 hours.
Increase autovacuum_vacuum_cost_limit and maintenance_work_mem moderately (e.g., maintenance_work_mem to 256–1024MB depending on available RAM) so vacuums can batch more work per pass.
Lower autovacuum_vacuum_scale_factor for the largest/high-write tables or add table-level autovacuum settings to run less frequently but with larger cost limits.
Identify long-running transactions (pg_stat_activity) and address them. Consider scheduling manual VACUUM (not FULL) on badly bloated partitions during low hours.
After changes, watch pg_stat_progress_vacuum, pg_stat_user_tables relfrozenxid and n_dead_tup to confirm reduced bloat and fewer repeated vacuums.