http://sql.ru/forum/actualthread.aspx?tid=685680 some notes on how to optimize autovacuum on Postgres