What is MVCC, and why does PostgreSQL need VACUUM?

Why doesn't a regular read query in PostgreSQL block row updates? What remains in a table after UPDATE and DELETE? How does VACUUM remove old row versions, and why can a single long-running transaction cause an entire table to bloat?

ExplainTransactions and locksSeniorBackendData Engineer