Recently a vacuum
process triggered by auto vacuum daemon
(PostgreSQL13) on one of our table took long 1.5hr to complete. During this period there was high WAL
rate up to 7MB/sec and high Disk I/O. This table size around 75GB(200M rows) , and the auto vacuum count from stats table is just 2 only for last 2 year. What are some auto-vacuum
tuning possibilities for huge tables? My considerations are,
- Should I disable auto vacuum for huge table and perform manually?
- Can decreasing threshold and hence more frequent vacuum solve long running vacuum?
Any other solutions?