~/talk

Implementing Strict Serializability with pg_xact

slides:none on file

Shows a practical way to get Strict Serializability from Postgres by using pg_xact metadata functions to record server-assigned transaction IDs and snapshots, synthesizing those snapshots so each app transaction is visible in a total order, and ordering change feeds by WAL commit timestamps (requires commit timestamp enabled). The implementation runs at large Azure/Postgres scale and replaces a slow custom-MVCC approach, but has tradeoffs: xid counter restoration needs a loop to advance IDs and frequent garbage collection (vacuum) is required to avoid xid overflow.

AI-written summary · about

  1. 0:00Introduction
  2. 2:58Consistency 101
  3. 9:59Strict Serializability
  4. 11:43Who needs Strict Serializability
  5. 15:08Naive Approach
  6. 17:22pg_xact approach
  7. 23:09What's the catch?
  8. 26:15Thanks
~/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.