~/talk

Logical replication theory and concepts

Talkat POSETTE: An Event for Postgres 2025 · 2025-06-10..06-12· [databases]
slides:none on file

Explains how PostgreSQL converts WAL bytes into row-level operations using a reorder buffer and logical decoder, sends only committed transactions, and applies changes on an active target via a WAL receiver that produces new WAL there. Shows initial sync using a replication slot + COPY snapshot, details how the slot holds LSNs and catalog tuples, and demonstrates error loops (receiver quits on missing table, busy replication slot when slots collide). Warns that retained WAL and xmin pressure can cause disk bloat or txid wraparound; no built-in DDL or bidirectional replication yet.

AI-written summary · about

  1. 0:00Introduction - Logical Replication
  2. 1:18Physical/Streaming Replication
  3. 4:34Logical Replication
  4. 7:25WAL Sender (Logical Change Sender)
  5. 10:00Logical Receiver
  6. 11:03Replication Slot
  7. 21:10When things Go Wrong (Error Loops)
  8. 25:50Conclusion - Use Cases, Limitations & Things to Watch for
~/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.