PostgreSQL UPDATEs are INSERTs under MVCC, explaining table bloat
PostgreSQL's UPDATE operation does not modify data in place. Instead, it creates a new row copy and marks the old version as expired. This Multi-Version Concurrency Control mechanism allows for safe concurrent transactions. However, it leads to table bloat as old row versions accumulate. Understanding this is key to managing database performance and storage.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in