Posts about vacuum
Articles, guides and engineering notes about vacuum from the Relyt One team.
2 articles

Why is COUNT(*) slow in Postgres? We measured it on 10 million rows
Why SELECT count(*) in PostgreSQL reads the whole table, and what to do instead. Measured on 10 million rows on Postgres 17.11: sequential vs parallel vs index-only scans, how an UPDATE of 1% of rows made an indexed count 40 to 50 times slower until VACUUM ran, count(*) vs count(1), planner estimates, capped counts, and the write cost of trigger-maintained counter tables.

Postgres "idle in transaction": how one forgotten COMMIT blocks VACUUM and migrations, and the timeouts that fix it
What idle in transaction means in pg_stat_activity, which of those sessions actually stop VACUUM (and which don't), how they block row updates and ALTER TABLE, how to find and kill them, and how idle_in_transaction_session_timeout and PostgreSQL 17's new transaction_timeout end them for you. Every example replayed on Postgres 17.11.