~/talk

How to use logical decoding to build a custom replication system

Talkat PGDay.IT 2019 · on Friday, 2019-05-17· [databases]
links:none on file
slides:none on file

A custom system named Connemara streams logical WAL using replication slots and the libpq replication protocol, decodes records with wal2json, and tracks progress with replication origin. Bootstrapping uses a base backup with an exported snapshot; one C daemon per source/target pair writes JSON payloads to a spool table and a single replayer applies changes into per-source schemas. It works in staging and is near production; main pain points are schema renames (AST rewrite with pg_last), heavy JSON overhead, and tricky DDL/sequence edge cases.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 3:39Problem with existing solutions
  3. 6:53PostgreSQL logical replication basics
  4. 12:19Architecture overview
  5. 14:28Base backup challenges
  6. 17:25Schema restoration issues
  7. 20:11Replication streaming demo
  8. 21:35Replay process details
  9. 22:38Monitoring and future plans
  10. 26:29Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.