MVCC (Multi-Version Concurrency Control) એ PostgreSQL કીસંશોધન એક્સેસ સંભાળવાનો માર્ગ છે — વાંચનો માટે પંક્તિઓને લોક કરવાને બદલે, તે પંક્તિઓના બહુવિધ સંસ્કરણો રાખે છે, તેથી દરેક લેનદેન ડેટાના સુસંગત સ્નેપશોટ જુએ છે. મુખ્ય લાભ: વાચકો લેખકોને અવરોધિત કરતા નથી, અને લેખકો વાચકોને અવરોધિત કરતા નથી, ઉચ્ચ સમવર્તીતા સક્ષમ કરે છે.
મુખ્ય વિચાર: બહુવિધ પંક્તિ સંસ્કરણો
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.
