MVCC (Multi-Version Concurrency Control) என்பது PostgreSQL வில் concurrent access களை கையாளும் விதம் — rows களுக்கு reads க்கு locks போடுவதற்கு பதிலாக, rows களின் multiple versions களை வைத்திருக்கிறது, ஆகையால் ஒவ்வொரு transaction ம் data வின் consistent snapshot ஐ பார்க்கிறது. முக்கிய benefit: readers writers களை block செய்யாது, writers readers களை block செய்யாது, high concurrency ஐ enable செய்கிறது.
மையமான concept: 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.
