The Life of a Tuple in Logical Replication
summary
A single tuple flows from WAL generation through a walsender that runs logical decoding, into the reorder buffer which groups per-transaction changes and may reorder buffer spill to disk when memory limits hit, then into the pgoutput plugin which applies column/row filters and emits pgoutput relation sync and insert/commit messages. A replication slot preserves WAL with replication slot restart_lsn and confirmed_flush_lsn; an apply worker and per-table sync workers apply initial copies, local transactions, and send feedback to advance the slot.
AI-written summary · about
chapters (9)
- 0:00Introduction to logical replication
- 1:53Logical replication setup
- 5:07Wall generation process
- 8:00Incremental changes flow
- 13:18Logical decoding explained
- 17:09Reorder buffer details
- 21:21Output plugin role
- 26:59Apply worker processing
- 31:42Update and delete handling
related talks
29mLogical replication theory and concepts
28mWhere Does My INSERT Go? A Logical Replication Story
54mUnderstanding Logical Decoding and Replication
22mHazards of logical decoding in PostgreSQL
56mLogical Replication of DDLs
59mLogical Replication...LIVE!
26mThe Wonderful World of WAL
53mThe journey towards active replication in PostgreSQL
