~/talk

Concurrency in Postgres

Talkat PostgresOpen 2013 · 2013-09-16..09-18· [databases]
slides:none on file

Explains exactly which SQL isolation levels map to which visibility rules and guarantees and shows the specific locks acquired on tables indexes rows transactions and query predicates so it is clear what conflicts can arise. Demonstrates a recursive SQL query that locates backends that block others without themselves being blocked outlines common race scenarios and fixes explains how Postgres 9.3 reduces foreign key locking pain and gives correct UPSERT patterns that are atomic.

AI-written summary · about

  1. 0:00Start
  2. 4:42Locking (table-level locks)
  3. 5:38Locking (cont'd)
  4. 10:20Read committed (default)
  5. 11:51Repeatable read (cond)
  6. 13:27What's a write skew anomaly?
  7. 18:50Back to isolation levels: Serializable
  8. 22:47Business rule enforcing triggers
  9. 26:50What's a deadlock?
  10. 31:06More granular foreign key locks
  11. 41:09What's a WCTE
  12. 50:28Upsert thorny implementation details
~/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.