~/talk

A journey into postgresql logical replication

Talkat PostgreSQL Conference Europe 2023 · 2023-12-12..12-15· [databases]
links:none on file
slides:none on file

Built an in-house CDC pipeline using Postgres logical replication and a Golang logical replication client, the team finds that two wrong assumptions cause production data loss: LSNs are not globally incremental under concurrency, and acknowledging only data-changing events (not transaction end) lets restarts replay or skip needed changes. A custom WAL parser and discussions with Postgres devs lead to the rule commit only on transaction end; that fixes loss but forces transaction batching and splitting to avoid messaging-size and duplication issues.

AI-written summary · about

  1. 0:00Motivation for custom CDC
  2. 2:22Building the Golang client
  3. 5:13Understanding LSN offsets
  4. 8:56Concurrency and replication
  5. 13:09Common replication pitfalls
  6. 18:16Correcting replication errors
  7. 22:28Refined replication approach
  8. 26:13Handling capacity constraints
  9. 29:59Q&A and concluding remarks
~/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.