Loading topic
UPDATE or DELETE, and how you c7 min readpsql. It also assumes you know what a transaction is and what an index does. The previous chapters covered how MVCC keeps old row versions and how UPDATE and DELETE leave dead tuples behind. This chapter covers what happens to a table when those 7 min readpsql. It also assumes you have read the earlier chapters on MVCC row versions, dead tuples, and what table bloat costs. Here you will learn to measure bloat. The next chapters cover what to do about it.5 min readVACUUM changes inside a table, what it leaves alone, and how to read its output.6 min readVACUUM removes them, and how to read pg_stat_user_tables. It covers how autovacuum decides when to act, what it does, and how to check that it is working.5 min readpsql, transactions, and the difference between READ COMMITTED and REPEATABLE READ.6 min readALTER TABLE and ALTER SYSTEM. The defaults suit small and medium tables. On large tables with he6 min readpg_stat_activity.6 min readpg_stat_user_tables and pgstattuple. It also assumes you know that plain VACUUM only marks space reusable inside the table file, and that VACUUM FULL rewrites the table under an ACCESS EXCLUSIVE lock. You should b6 min readpg_stat_user_tables and running queries in psql. Here you will learn about two side jobs VACUUM does along the way: tracking which pages need no att6 min readpg_stat_user_tables output. Here the focus moves from the table to its indexes. Indexes bloat too, and VACUUM treats them differently.6 min read