~/talk

Understanding Logical Decoding and Replication

Talkat PostgresOpen 2014 · 2014-09-17..09-19· [databases]
slides:none on file

Explains that PostgreSQL 9.4 adds logical replication slots and a plugin API that reads WAL, decodes changes, and exposes them over the replication protocol or SQL functions; shows a working decoder that emits decoder-generated SQL and a background worker that applies changes to a second master; warns that it produces one change per tuple (bulk COPY of 1M rows yields 1M changes), requires max_replication_slots and exported snapshots handling, and demonstrates an async multimaster prototype that actually works.

AI-written summary · about

  1. 0:00Introduction
  2. 3:15Where is Logical Decoding
  3. 4:06What is Logical Decoding
  4. 5:38Replication Slots
  5. 7:55Physical Slots
  6. 9:00Reputation Slots
  7. 10:42Logical Replication Slots
  8. 12:35Export Snapshots
  9. 17:28Output Decoding
  10. 19:53Replica Identity
  11. 24:01Replication
  12. 27:57Synchronous Commit
  13. 29:30Basic Understanding
  14. 34:07Hacking
  15. 40:10SQL Interface
  16. 41:31Replication Protocol
  17. 44:34Online Upgrade
  18. 50:49Receiving Changes
~/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.