Choosing a logical replication system: Slony vs Bucardo
summary
Slony implements a serialized, trigger-driven event log and enforces replica immutability with deny-write triggers on replicas, plus useful features like cascaded subscriptions and scripted, serialized DDL and formal failover. Bucardo runs a single daemon, records only keys not full tuples so it uses primary-key-only delta logging and allows writable targets; Bucardo 5 adds true multimaster so (multimaster in Bucardo 5 (beta)) is real. A migration from Slony/Postgres 8.2 to a Postgres 9 streaming cluster using Bucardo finishes with minutes of downtime and works.
AI-written summary · about
chapters (41)
- 0:00Introduction
- 0:27Overview
- 0:49Start up
- 1:07Replication in general
- 1:28Physical vs logical replication
- 2:58Physical replication benefits
- 4:37Logical replication
- 6:03Limitations of logical replication
- 7:04Masterslave replication
- 8:56Node paths
- 11:08Subscriptions
- 11:35Cascaded subscriptions
- 12:33Slony triggers
- 15:05Bucardo
- 15:59Bucardo strengths
- 17:04Bucardo limitations
- 19:23Bucardo v
- 19:55Bucardo use cases
- 21:46Bucardo terminology
- 22:46Bucardo architecture
- 25:01Bucardo multimaster
- 26:32Bucardo masterslave
- 27:29Custom selects
- 28:11Comparisons
- 29:30Differences in logging
- 32:39DDL changes
- 33:31Stop replication
- 35:31Failover
- 36:36Monitoring
- 37:09What Logical Replication System
- 37:46Example Bucardo Migration
- 38:36Creating a new cluster
- 39:09Setting up a local install
- 40:44Case study 2 Data Center Migration
- 41:21Case study 3 Data Center Migration
- 42:36Slony Information
- 43:02Multimaster replication
- 43:22How Bucardo avoids conflicts
- 44:37Running the conflict resolution code
- 45:09Bucardo 5 round robin approach
- 45:48Preventing further changes
related talks
50mEvolution Of PostgreSQL Replication and High Availability (upto ~ 99.999%)
31mPast, Present, and Future: Logical Decoding and Replication in PostgreSQL
49mPostgreSQL Replication - The Most Exciting Technology on Earth
26mIntroducing YugabyteDB for PostgreSQL Users
22mSecuring Postgres with streaming replication
50mSparta’s Dual Kingship and PostgreSQL Active-Active
42mlesser known Superpower of Postgres Logical Replication
50mReplication based Multi-Master solutions and design patterns
