~/talk

Sparta’s Dual Kingship and PostgreSQL Active-Active

slides:none on file

PostgreSQL 16 makes origin tracking practical so bidirectional logical replication can run, but identical primary keys and concurrent commits create duplicate key failures unless resolved. Practical fixes shown: add commit timestamps and apply last update wins to discard older rows while storing discarded rows for audit, use a small consensus service (a consensus lock / Gia) to serialize DDL and allocate sequence ranges, mix logical with physical replicas for DR, and expect fast switchovers (~100–200 ms). Extensions BDR, PGH and PG-Active implement many of these ideas.

AI-written summary · about

  1. 0:00Introduction
  2. 2:55How the people remember Sparta
  3. 3:50Why do you need ActiveActive
  4. 6:25Getting it right
  5. 12:00ActiveActive
  6. 13:40Conflicts
  7. 18:18Conflict Resolution
  8. 20:37Data Definition Language
  9. 23:06Sparta and Athens
  10. 27:37Consensus
  11. 30:40Disaster Recovery
  12. 38:02Conclusion
  13. 41:24Test your assumptions
  14. 42:10Questions
~/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.