~/talk

PostgreSQL Replication: 20 Pitfalls and Solutions

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

Covers 20 concrete replication failures and fixes for PostgreSQL binary and logical replication, with examples: lost WAL due to WAL recycling, out‑of‑disk from misused replication slots, stalled archiving, and a recovered two‑phase prepare bug back‑ported to 13/14. Explains when to use archiving plus slots, how to size wal_keep_size and max_replication_slots, when to run pg_rewind vs full base backup, risks of synchronous replication, hot_standby_feedback, and logical streaming (streaming since 14, parallel apply in 16).

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 2:12WAL basics and recycling pitfalls
  3. 4:43Archiving issues and solutions
  4. 6:57Replication slots explained
  5. 9:07Replication slots not replicated
  6. 10:10Parameter dance and Max connections
  7. 11:15Switch overs and split brain
  8. 13:22Timeline switches and PG rewind
  9. 16:55Autovacuum after switch overs
  10. 18:42Transaction loss after failover
  11. 19:25Synchronous replication pitfalls
  12. 21:15Read-only replicas and consistency
  13. 24:02Vacuum conflicts in replication
  14. 27:59Prepared transactions and recovery
  15. 29:25Hot standby not working
  16. 33:39Logical replication basics
  17. 34:43Logical replication conflicts
  18. 36:29DDL troubles in logical replication
  19. 37:53Long running transactions and snapshots
  20. 40:00Max replication slot settings
  21. 43:32Long transactions in apply
  22. 46:50Conclusion and long transactions
~/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.