~/talk

Building a Logical Replication System

TalkinFrenchat PG Day France 2019 · on Wednesday, 2019-06-19· [databases]
links:none on file
slides:none on file

A custom logical replication system called Connemara rebuilds each source schema and streams changes into a data lake by combining a consistent pg_dump snapshot (using a replication slot and exported snapshot), a lightweight daemon that consumes a wal2json change stream, and a multi-threaded replayer that reconstructs SQL and applies changes. It runs in production (peaks ~70,000 changes/sec input, ~15,000 changes/sec replay), supports selective DDL/DML propagation and schema remapping, and is intended to be open sourced.

AI-written summary · about

  1. 0:00Introduction
  2. 1:03Why logical replication
  3. 3:09Existing solution challenges
  4. 5:15Building our own
  5. 5:37PostgreSQL logical basics
  6. 7:22Key components setup
  7. 11:53Backup and snapshot
  8. 13:58Schema restoration issues
  9. 16:48Rewriting schema with pgloader
  10. 19:14Initial setup summary
  11. 19:56Streaming replication process
  12. 21:43Handling large transactions
  13. 22:45Replayer details
  14. 24:13DDL propagation
  15. 25:57System monitoring
  16. 27:23Future improvements
  17. 28:27Challenges
  18. 31:18Project learnings
~/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.