PostgreSQL MVCC, Byte by Byte

You run SELECT * FROM orders in one psql session and see 50 million rows. A colleague in another session runs the same query at the same moment and sees 49,999,999. Neither of you is wrong, and neither is seeing stale data. You are both reading the same 8KB heap pages, the same bytes on disk. This is the promise of PostgreSQL&#x27;s MVCC (Multi-Version Concurrency Control), and it&#x27;s the…