~/talk

Explaining the PG concurrency control mechanisms using rollercoasters

Talkat PostgreSQL Conference Europe 2023 · 2023-12-12..12-15· [databases]
slides:none on file

Visual, timestamp-based walkthrough of PostgreSQL MVCC using rollercoaster metaphors that maps inserts, updates (as insert+delete) and deletes onto page-level rows with xmin/xmax visibility rules and transaction ID wheel behavior; shows how vacuum and freezing let the system advance without wraparound, how long-running transactions block cleanup, and how locking works (reader vs writer, deadlocks) with practical pitfalls like select for update, and contrasts read committed vs repeatable read and when serializable will abort and force retries.

AI-written summary · about

  1. 0:00Introduction to database concurrency
  2. 3:44What is a transaction
  3. 5:28How transactions work in practice
  4. 10:51Transaction snapshots explained
  5. 17:48Transaction ID wheel and freezing
  6. 21:04How to use transactions properly
  7. 24:54Locking mechanisms in PostgreSQL
  8. 32:20Deadlocks and their resolution
  9. 32:42Isolation levels overview
  10. 35:16Key learnings and summary
  11. 37:44Q&A session
~/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.