~/talk

Anatomy of table level locks in Postgresql

Talkat PG Day France 2025 · 2025-06-03..06-04· [databases]
links:none on file
slides:none on file

Explains that PostgreSQL uses MVCC with xmin/xmax row versions so reads and writes usually don’t block but DDL often needs access exclusive locks that block selects and create cascading queues; recommends setting lock_timeout, never mix DDL and DML in one transaction, and break heavy ALTERs into steps (add nullable column, batch-update, then set NOT NULL) or use NOT VALID check constraints then validate. Shows real benefits of CONCURRENTLY and describes an open-source tool pgroll that implements expand/contract migrations, batched backfills, retries and easy rollback.

AI-written summary · about

  1. 0:00Introduction and agenda
  2. 2:59MVCC architecture explained
  3. 13:10DDL locking fundamentals
  4. 23:25Real-world locking strategies
  5. 33:36Introducing PG Roll tool
  6. 40:18Q&A and closing
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.