~/talk

High-concurrency distributed snapshots

links:none on file
slides:none on file

Current MVCC snapshots rely on a shared-memory proc array and get_snapshot_data that becomes an N² scalability bottleneck as CPUs and concurrent transactions grow; subtransaction tracking is limited to 64 entries and forces expensive top-level lookups, and mixing synchronous_commit modes creates different commit orders on primary and standby and even lost commits on failover. Proposal: assign a monotonic commit sequence number (CSN) (counter, LSN, or hybrid wall-clock) recorded in an SLRU or ring buffer, batch-convert old CSNs to pg_xact bits, and use CSN-based snapshot checks — patches exist aiming for integration around Postgres 18.

AI-written summary · about

  1. 0:00Introduction
  2. 1:00Database concurrency concepts
  3. 11:11Current snapshot implementation
  4. 24:17Proposal for CSN snapshots
  5. 43:22Optimization and future work
~/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.