PostgreSQL replication
Lviv, #pivorak, 22/04/16
PG vs. MySQL
● Indexes on Expressions
● Partial Indexes
● Combining Multiple
Indexes
● Index Types
● 50+ Data Types
● Pattern Matching
with RegExps
● Savepoints
● Different Auth
Providers
Terms
● Write Ahead Log (WAL)
● Streaming Replication (SR)
● Physical Log Streaming Replication (LLSR)
● Logical Log Streaming Replication (LLSR)
● Bi-Directional Replication (BDR)
Physical Log Streaming Replication
WAL
Master
Slave
Solutions
Program License Maturity Replication Method Sync Connection Pooling Load Balancing Query Partitioning
PgCluster BSD Stalled Master-Master Synchronous No Yes No
pgpool-I BSD Stable Statement-Based
Middleware
Synchronous Yes Yes No
Pgpool-II BSD Recent release Statement-Based
Middleware
Synchronous Yes Yes Yes
slony BSD Stable Master-Slave Asynchronous No No No
Bucardo BSD Stable Master-Master, Master-
Slave
Asynchronous No No No
Londiste BSD Stable Master-Slave Asynchronous No No No
Mammoth BSD Stalled Master-Slave Asynchronous No No No
rubyrep MIT Stalled Master-Master, Master-
Slave
Asynchronous No No No
BDR (Bi-Directional
Replication)
PostgreSQL (BSD) Stable Master-Master
(no triggers needed)
Asynchronous No No No
pg_shard LGPL Recent release Statement-based
Middleware (as an
extension)
Synchronous No Yes Yes
pglogical PostgreSQL Recent Release Master-Slave Asynchronous No No No
https://wiki.postgresql.org/wiki/Replication,_Clustering,_and_Connection_Pooling
Let’s practice
Browse to
vova.github.io/pivorak.md

More Related Content

PDF
sysprog2 Part2
PPTX
Scalability (NoSQL Inspired Topic)
ODP
Graph databases in computational bioloby: case of neo4j and TitanDB
PDF
Lab 01 03_16
PDF
KubeCon EU 2019 - P2P Docker Image Distribution in Hybrid Cloud Environment w...
PDF
From rest api to graph ql a 10 year journey
PDF
How to specify `frozen_string_literal: true`
sysprog2 Part2
Scalability (NoSQL Inspired Topic)
Graph databases in computational bioloby: case of neo4j and TitanDB
Lab 01 03_16
KubeCon EU 2019 - P2P Docker Image Distribution in Hybrid Cloud Environment w...
From rest api to graph ql a 10 year journey
How to specify `frozen_string_literal: true`

What's hot (19)

PDF
Automata Invasion
PDF
EVCache: Lowering Costs for a Low Latency Cache with RocksDB
PDF
Text tagging with finite state transducers
PDF
Kraken mesoscon 2018
PDF
Atmosphere 2014: Centralized log management based on Logstash and Kibana - ca...
PDF
Couchbase live 2016
PDF
Cassandra Explained
PDF
PostgreSQL and Compressed Documents (pgconf.ru 2018)
PDF
gRPC: Beyond REST
PDF
Is It Faster to Go with Redpanda Transactions than Without Them?!
DOCX
Bsdtw17: mariusz zaborski: case studies of sandboxing base system with capsicum
ODP
Logging for OpenStack - Elasticsearch, Fluentd, Logstash, Kibana
PDF
erlang 101
PDF
HBaseCon2017 gohbase: Pure Go HBase Client
PPT
Toolchain Independent Distributed Compilation
PDF
Cloud storage: the right way OSS EU 2018
PDF
Ceph Day Chicago: Using Ceph for Large Hadron Collider Data
PDF
Baker: Scaling OVN with Kubernetes API Server
PPTX
OVN Controller Incremental Processing
Automata Invasion
EVCache: Lowering Costs for a Low Latency Cache with RocksDB
Text tagging with finite state transducers
Kraken mesoscon 2018
Atmosphere 2014: Centralized log management based on Logstash and Kibana - ca...
Couchbase live 2016
Cassandra Explained
PostgreSQL and Compressed Documents (pgconf.ru 2018)
gRPC: Beyond REST
Is It Faster to Go with Redpanda Transactions than Without Them?!
Bsdtw17: mariusz zaborski: case studies of sandboxing base system with capsicum
Logging for OpenStack - Elasticsearch, Fluentd, Logstash, Kibana
erlang 101
HBaseCon2017 gohbase: Pure Go HBase Client
Toolchain Independent Distributed Compilation
Cloud storage: the right way OSS EU 2018
Ceph Day Chicago: Using Ceph for Large Hadron Collider Data
Baker: Scaling OVN with Kubernetes API Server
OVN Controller Incremental Processing
Ad

Viewers also liked (20)

PDF
Steve Singer - Managing PostgreSQL with Puppet @ Postgres Open
PPTX
MySQL Multi Master Replication
ODP
Logical replication with pglogical
PDF
On The Building Of A PostgreSQL Cluster
PDF
Linux tuning to improve PostgreSQL performance
PDF
The Security-Enhanced PostgreSQL - "system wide" consistency in access control
PDF
Technical Introduction to PostgreSQL and PPAS
PDF
Kevin Kempter PostgreSQL Backup and Recovery Methods @ Postgres Open
PDF
PostgresOpen 2013 A Comparison of PostgreSQL Encryption Options
PDF
Streaming Replication (Keynote @ PostgreSQL Conference 2009 Japan)
PDF
Streaming huge databases using logical decoding
PDF
Enterprise PostgreSQL - EDB's answer to conventional Databases
PDF
Ryan Jarvinen Open Shift Talk @ Postgres Open 2013
PDF
Keith Fiske - When PostgreSQL Can't, You Can @ Postgres Open
PDF
Gurjeet Singh - How Postgres is Different From (Better Tha) Your RDBMS @ Post...
PDF
Kevin Kempter - PostgreSQL Backup and Recovery Methods @ Postgres Open
PPTX
David Keeney - SQL Database Server Requests from the Browser @ Postgres Open
PDF
Bruce Momjian - Inside PostgreSQL Shared Memory @ Postgres Open
PDF
Henrietta Dombrovskaya - A New Approach to Resolve Object-Relational Impedanc...
PDF
Selena Deckelmann - Sane Schema Management with Alembic and SQLAlchemy @ Pos...
Steve Singer - Managing PostgreSQL with Puppet @ Postgres Open
MySQL Multi Master Replication
Logical replication with pglogical
On The Building Of A PostgreSQL Cluster
Linux tuning to improve PostgreSQL performance
The Security-Enhanced PostgreSQL - "system wide" consistency in access control
Technical Introduction to PostgreSQL and PPAS
Kevin Kempter PostgreSQL Backup and Recovery Methods @ Postgres Open
PostgresOpen 2013 A Comparison of PostgreSQL Encryption Options
Streaming Replication (Keynote @ PostgreSQL Conference 2009 Japan)
Streaming huge databases using logical decoding
Enterprise PostgreSQL - EDB's answer to conventional Databases
Ryan Jarvinen Open Shift Talk @ Postgres Open 2013
Keith Fiske - When PostgreSQL Can't, You Can @ Postgres Open
Gurjeet Singh - How Postgres is Different From (Better Tha) Your RDBMS @ Post...
Kevin Kempter - PostgreSQL Backup and Recovery Methods @ Postgres Open
David Keeney - SQL Database Server Requests from the Browser @ Postgres Open
Bruce Momjian - Inside PostgreSQL Shared Memory @ Postgres Open
Henrietta Dombrovskaya - A New Approach to Resolve Object-Relational Impedanc...
Selena Deckelmann - Sane Schema Management with Alembic and SQLAlchemy @ Pos...
Ad

Similar to PostgreSQL replication from setup to advanced features. (20)

PPTX
No sql solutions - 공개용
PDF
RISCV_Memory_Patterns_VF2024_final_copy.pdf
PDF
Ceph Performance: Projects Leading Up to Jewel
PDF
Ceph Performance: Projects Leading up to Jewel
PPTX
Built-in-Physical-and-Logical-Replication-in-Postgresql-Firat-Gulec.pptx
PDF
State transfer With Galera
PDF
Apache Spark e AWS Glue
PDF
JPoint'15 Mom, I so wish Hibernate for my NoSQL database...
PPTX
Silicon Valley Code Camp: 2011 Introduction to MongoDB
PPTX
Built in physical and logical replication in postgresql-Firat Gulec
PDF
Community Update at OpenStack Summit Boston
PDF
Byte code engineering 21st May Saturday 2016
PDF
Scalany mongodb aug10
PDF
92 grand prix_2013
PPTX
Deep dive into the Rds PostgreSQL Universe Austin 2017
PDF
Mongo presentation conf
PPTX
Spark Concepts - Spark SQL, Graphx, Streaming
PPSX
MongoDB & PHP by Alex Litvinok
PPSX
MongoDB & PHP
PDF
Ingesting Over Four Million Rows Per Second With QuestDB Timeseries Database ...
No sql solutions - 공개용
RISCV_Memory_Patterns_VF2024_final_copy.pdf
Ceph Performance: Projects Leading Up to Jewel
Ceph Performance: Projects Leading up to Jewel
Built-in-Physical-and-Logical-Replication-in-Postgresql-Firat-Gulec.pptx
State transfer With Galera
Apache Spark e AWS Glue
JPoint'15 Mom, I so wish Hibernate for my NoSQL database...
Silicon Valley Code Camp: 2011 Introduction to MongoDB
Built in physical and logical replication in postgresql-Firat Gulec
Community Update at OpenStack Summit Boston
Byte code engineering 21st May Saturday 2016
Scalany mongodb aug10
92 grand prix_2013
Deep dive into the Rds PostgreSQL Universe Austin 2017
Mongo presentation conf
Spark Concepts - Spark SQL, Graphx, Streaming
MongoDB & PHP by Alex Litvinok
MongoDB & PHP
Ingesting Over Four Million Rows Per Second With QuestDB Timeseries Database ...

More from Pivorak MeetUp (20)

PDF
Lisp(Lots of Irritating Superfluous Parentheses)
PDF
Some strange stories about mocks.
PDF
Business-friendly library for inter-service communication
PDF
How i was a team leader once
PDF
Rails MVC by Sergiy Koshovyi
PDF
Introduction to Rails by Evgeniy Hinyuk
PPTX
Ruby OOP (in Ukrainian)
PDF
Testing in Ruby
PDF
Ruby Summer Course by #pivorak & OnApp - OOP Basics in Ruby
PDF
The Saga Pattern: 2 years later by Robert Pankowecki
PDF
Data and Bounded Contexts by Volodymyr Byno
PDF
Successful Remote Development by Alex Rozumii
PDF
Origins of Elixir programming language
PDF
Functional Immutable CSS
PDF
Multi language FBP with Flowex by Anton Mishchuk
PDF
Detective story of one clever user - Lightning Talk By Sergiy Kukunin
PDF
CryptoParty: Introduction by Olexii Markovets
PDF
How to make first million by 30 (or not, but tryin') - by Marek Piasecki
PDF
GIS on Rails by Oleksandr Kychun
PDF
Unikernels - Keep It Simple to the Bare Metal
Lisp(Lots of Irritating Superfluous Parentheses)
Some strange stories about mocks.
Business-friendly library for inter-service communication
How i was a team leader once
Rails MVC by Sergiy Koshovyi
Introduction to Rails by Evgeniy Hinyuk
Ruby OOP (in Ukrainian)
Testing in Ruby
Ruby Summer Course by #pivorak & OnApp - OOP Basics in Ruby
The Saga Pattern: 2 years later by Robert Pankowecki
Data and Bounded Contexts by Volodymyr Byno
Successful Remote Development by Alex Rozumii
Origins of Elixir programming language
Functional Immutable CSS
Multi language FBP with Flowex by Anton Mishchuk
Detective story of one clever user - Lightning Talk By Sergiy Kukunin
CryptoParty: Introduction by Olexii Markovets
How to make first million by 30 (or not, but tryin') - by Marek Piasecki
GIS on Rails by Oleksandr Kychun
Unikernels - Keep It Simple to the Bare Metal

Recently uploaded (20)

PDF
Guide to Food Delivery App Development.pdf
PPTX
Full-Stack Developer Courses That Actually Land You Jobs
PPTX
Airline CRS | Airline CRS Systems | CRS System
PDF
AI-Powered Threat Modeling: The Future of Cybersecurity by Arun Kumar Elengov...
PPTX
Computer Software - Technology and Livelihood Education
PDF
AI Guide for Business Growth - Arna Softech
PPTX
Introduction to Windows Operating System
DOCX
Modern SharePoint Intranet Templates That Boost Employee Engagement in 2025.docx
PDF
Introduction to Ragic - #1 No Code Tool For Digitalizing Your Business Proces...
PPTX
Trending Python Topics for Data Visualization in 2025
PPTX
CNN LeNet5 Architecture: Neural Networks
PDF
Multiverse AI Review 2025: Access All TOP AI Model-Versions!
PPTX
Matchmaking for JVMs: How to Pick the Perfect GC Partner
PDF
BoxLang Dynamic AWS Lambda - Japan Edition
PDF
DNT Brochure 2025 – ISV Solutions @ D365
PPTX
4Seller: The All-in-One Multi-Channel E-Commerce Management Platform for Glob...
PPTX
WiFi Honeypot Detecscfddssdffsedfseztor.pptx
PDF
How Tridens DevSecOps Ensures Compliance, Security, and Agility
PDF
EaseUS PDF Editor Pro 6.2.0.2 Crack with License Key 2025
PDF
Practical Indispensable Project Management Tips for Delivering Successful Exp...
Guide to Food Delivery App Development.pdf
Full-Stack Developer Courses That Actually Land You Jobs
Airline CRS | Airline CRS Systems | CRS System
AI-Powered Threat Modeling: The Future of Cybersecurity by Arun Kumar Elengov...
Computer Software - Technology and Livelihood Education
AI Guide for Business Growth - Arna Softech
Introduction to Windows Operating System
Modern SharePoint Intranet Templates That Boost Employee Engagement in 2025.docx
Introduction to Ragic - #1 No Code Tool For Digitalizing Your Business Proces...
Trending Python Topics for Data Visualization in 2025
CNN LeNet5 Architecture: Neural Networks
Multiverse AI Review 2025: Access All TOP AI Model-Versions!
Matchmaking for JVMs: How to Pick the Perfect GC Partner
BoxLang Dynamic AWS Lambda - Japan Edition
DNT Brochure 2025 – ISV Solutions @ D365
4Seller: The All-in-One Multi-Channel E-Commerce Management Platform for Glob...
WiFi Honeypot Detecscfddssdffsedfseztor.pptx
How Tridens DevSecOps Ensures Compliance, Security, and Agility
EaseUS PDF Editor Pro 6.2.0.2 Crack with License Key 2025
Practical Indispensable Project Management Tips for Delivering Successful Exp...

PostgreSQL replication from setup to advanced features.

  • 2. PG vs. MySQL ● Indexes on Expressions ● Partial Indexes ● Combining Multiple Indexes ● Index Types ● 50+ Data Types ● Pattern Matching with RegExps ● Savepoints ● Different Auth Providers
  • 3. Terms ● Write Ahead Log (WAL) ● Streaming Replication (SR) ● Physical Log Streaming Replication (LLSR) ● Logical Log Streaming Replication (LLSR) ● Bi-Directional Replication (BDR)
  • 4. Physical Log Streaming Replication WAL Master Slave
  • 5. Solutions Program License Maturity Replication Method Sync Connection Pooling Load Balancing Query Partitioning PgCluster BSD Stalled Master-Master Synchronous No Yes No pgpool-I BSD Stable Statement-Based Middleware Synchronous Yes Yes No Pgpool-II BSD Recent release Statement-Based Middleware Synchronous Yes Yes Yes slony BSD Stable Master-Slave Asynchronous No No No Bucardo BSD Stable Master-Master, Master- Slave Asynchronous No No No Londiste BSD Stable Master-Slave Asynchronous No No No Mammoth BSD Stalled Master-Slave Asynchronous No No No rubyrep MIT Stalled Master-Master, Master- Slave Asynchronous No No No BDR (Bi-Directional Replication) PostgreSQL (BSD) Stable Master-Master (no triggers needed) Asynchronous No No No pg_shard LGPL Recent release Statement-based Middleware (as an extension) Synchronous No Yes Yes pglogical PostgreSQL Recent Release Master-Slave Asynchronous No No No https://wiki.postgresql.org/wiki/Replication,_Clustering,_and_Connection_Pooling