~/talk

Where Does My INSERT Go? A Logical Replication Story

Talkat POSETTE: An Event for Postgres 2026 · 2026-06-16..06-18· [databases]
slides:none on file

Follows one INSERT from executor to subscriber, showing WAL construction, why wal_level=logical adds column and relation metadata, and how ReorderBuffer groups interleaved WAL by XID and LSN to emit ordered changes. Covers WAL sender, logical decoding, replication slots that retain required WAL, output plugins (pgoutput, wal2json/test_decoding) and the apply worker that replays changes and updates confirm_flush_lsn. Notes large transactions can spill reorder buffer to disk and full-page-image writes for crash safety.

AI-written summary · about

  1. 0:00Music & introduction
  2. 0:41Roadmap: end-to-end replication flow
  3. 1:53From SQL insert to heap tuple
  4. 4:00Writing data into shared buffers
  5. 5:23WAL creation and durability explained
  6. 7:06Inside a WAL record and crash safety
  7. 9:02Logical vs physical replication differences
  8. 11:27WAL sender and logical decoding layer
  9. 14:07Reordering transactions with reorderbuffer
  10. 20:14The commit triggers decoding and plugins
  11. 24:18Applying changes on the subscriber
  12. 25:11End-to-end journey recap
~/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.