Loading topic
psql, and a general understanding of transactions, commits, and isolation levels.2 min readpsql. You should know how to run SELECT, UPDATE, and DELETE statements.2 min readpsql. This chapter explains the storage problem that PostgreSQL's multiversion concurrency control (MVCC) creates and why routine cleanup matters.2 min readpsql. This chapter focuses on measuring PostgreSQL table bloat. It does not cover the cleanup commands in detail.2 min readpsql or another PostgreSQL client. You should know that a transaction groups database changes and that an index helps PostgreSQL find table rows.2 min readpsql. Autovacuum is PostgreSQL’s background maintenance system. It starts VACUUM and ANALYZE automatically when tables need them.2 min readpsql or another PostgreSQL client.2 min readpsql. You should also understand that PostgreSQL uses multiversion concurrency control (MVCC): an UPDATE creates a new row version and leaves the old version behind until it is safe to remove.2 min readpsql. This chapter focuses on when VACUUM FULL is appropriate and what its table rewrite means for a live system.2 min readpsql. This chapter focuses on rewriting a bloated table while keeping normal application traffic available.2 min readpsql and run SQL statements.2 min readVACUUM. It focuses on reducing future bloat rather than repairing a table that is already bloated.3 min readpsql. This chapter combines those ideas into a repeatable maintenance routine. The goal is not to remove every unused byte. The goal is to keep query performance, disk usage, and maintenance work within acceptable limits.2 min read