~/talk

Understanding Transaction Isolation for App Developers

Talkat PGConf NYC 2022 · 2022-09-22..09-23· [databases]
links:none on file
slides:none on file

Explains PostgreSQL MVCC so writers never block readers and details three concrete anomalies with numbers: IMAX price $10 plus $5 twice becomes $20 (lost update), seating capacity 100 with 98 sold yields final −2 after two concurrent purchases (serialization anomaly), dashboard counts 10 → 11 and sums $100 → $108 (non repeatable read). Shows that read committed takes a fresh snapshot per SELECT, repeatable read uses exec_update to prevent lost updates and phantoms, and serializable uses predicate locks and check target for conflicts and may abort transactions.

AI-written summary · about

  1. 0:00Introduction
  2. 2:40Agenda
  3. 3:08What is MCC
  4. 9:30Example
  5. 11:55Behavior
  6. 12:33Nonrepeatable Debt
  7. 14:13Serialization
  8. 16:08Review
  9. 16:58Isolation Levels
  10. 24:04Nonrepeatable Red
  11. 25:38Best Practices
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.