Internals of MVCC in Postgres: Hidden Costs of Updates vs Inserts
Why do sometimes updates feel slower than inserts in Postgres? The answer lies deep in how Postgres manages data versions behind the scenes.At the core of Postgres’ ability to handle concurrent transactions efficiently is Multiversion Concurrency Control (MVCC).In this article, I’ll explore how MVCC works in Postgres and how it impacts both writes and reads, and the performance differences between inserts and updates.-- pageinspect extension to view underlying data storage, we will use it soon! CREATE EXTENSION IF NOT EXISTS...
Read
