PostgreSQL Replication (2)
PostgreSQL Replication (2)
Christophe Pettus
PostgreSQL Experts
PerconaLive, April 25, 2018
Christophe Pettus
CEO, PostgreSQL Experts, Inc.
christophe.pettus@pgexperts.com
thebuild.com
twitter @xof
Questions Welcome!
"It's more of a comment…"
"It's more of a comment…"
Replication Options.
• WAL shipping.
• Streaming replication.
• Trigger-based replication.
• Now we have:
• Slony (C)
• Londiste (Python)
• Bucardo (Perl)
• All those triggers firing all the time and the log tables required
have a performance impact.
• https://github.com/confluentinc/bottledwater-pg
Logical replication into Kafka!
• https://www.2ndquadrant.com/en/resources/pglogical/
The High-Level View.
• Each takes the stream of decoded changes, applies them
at the SQL level.
christophe.pettus@pgexperts.com
thebuild.com
twitter @xof
pgexperts.com