MediumConceptDBA extras
What is table bloat in PostgreSQL and how do you handle it?
What a good answer covers
Dead tuples from updates and deletes occupy space until vacuumed. Tune autovacuum, avoid long transactions and use pg_repack or a rewrite for heavy bloat.
PreviousFind and fix a slow query with an index and verify with EXPLAINNext What is a partial index?