MVCC (Multi-Version Concurrency Control) PostgreSQL में concurrent access को संभालने का तरीका है — पढ़ने के लिए rows को lock करने के बजाय, यह rows के multiple versions को रखता है, इसलिए प्रत्येक transaction डेटा का एक consistent snapshot देखता है। मुख्य लाभ: readers writers को block नहीं करते, और writers readers को block नहीं करते, high concurrency को सक्षम करते हैं।
मूल विचार: multiple row versions
When a row is UPDATED, Postgres doesn't overwrite it — it creates a NEW version and
marks the old one obsolete. Different transactions can see different versions.
→ Each transaction sees a consistent SNAPSHOT of the database as of its start
(depending on isolation level), unaffected by others' uncommitted changes.
