SlideShare a Scribd company logo
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

What's hot (19)

PDF
Automata Invasion
lucenerevolution
 
PDF
EVCache: Lowering Costs for a Low Latency Cache with RocksDB
Scott Mansfield
 
PDF
Text tagging with finite state transducers
lucenerevolution
 
PDF
Kraken mesoscon 2018
joeyzhang1989928
 
PDF
Atmosphere 2014: Centralized log management based on Logstash and Kibana - ca...
PROIDEA
 
PDF
Couchbase live 2016
Pierre Mavro
 
PDF
Cassandra Explained
Eric Evans
 
PDF
PostgreSQL and Compressed Documents (pgconf.ru 2018)
Aleksander Alekseev
 
PDF
gRPC: Beyond REST
Domingo Suarez Torres
 
PDF
Is It Faster to Go with Redpanda Transactions than Without Them?!
ScyllaDB
 
DOCX
Bsdtw17: mariusz zaborski: case studies of sandboxing base system with capsicum
Scott Tsai
 
ODP
Logging for OpenStack - Elasticsearch, Fluentd, Logstash, Kibana
Md Safiyat Reza
 
PDF
erlang 101
Gokhan Boranalp
 
PDF
HBaseCon2017 gohbase: Pure Go HBase Client
HBaseCon
 
PPT
Toolchain Independent Distributed Compilation
Dietmar Hauser
 
PDF
Cloud storage: the right way OSS EU 2018
Orit Wasserman
 
PDF
Ceph Day Chicago: Using Ceph for Large Hadron Collider Data
Ceph Community
 
PDF
Baker: Scaling OVN with Kubernetes API Server
Han Zhou
 
PPTX
OVN Controller Incremental Processing
Han Zhou
 
Automata Invasion
lucenerevolution
 
EVCache: Lowering Costs for a Low Latency Cache with RocksDB
Scott Mansfield
 
Text tagging with finite state transducers
lucenerevolution
 
Kraken mesoscon 2018
joeyzhang1989928
 
Atmosphere 2014: Centralized log management based on Logstash and Kibana - ca...
PROIDEA
 
Couchbase live 2016
Pierre Mavro
 
Cassandra Explained
Eric Evans
 
PostgreSQL and Compressed Documents (pgconf.ru 2018)
Aleksander Alekseev
 
gRPC: Beyond REST
Domingo Suarez Torres
 
Is It Faster to Go with Redpanda Transactions than Without Them?!
ScyllaDB
 
Bsdtw17: mariusz zaborski: case studies of sandboxing base system with capsicum
Scott Tsai
 
Logging for OpenStack - Elasticsearch, Fluentd, Logstash, Kibana
Md Safiyat Reza
 
erlang 101
Gokhan Boranalp
 
HBaseCon2017 gohbase: Pure Go HBase Client
HBaseCon
 
Toolchain Independent Distributed Compilation
Dietmar Hauser
 
Cloud storage: the right way OSS EU 2018
Orit Wasserman
 
Ceph Day Chicago: Using Ceph for Large Hadron Collider Data
Ceph Community
 
Baker: Scaling OVN with Kubernetes API Server
Han Zhou
 
OVN Controller Incremental Processing
Han Zhou
 

Viewers also liked (20)

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

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

PPTX
Built in physical and logical replication in postgresql-Firat Gulec
FIRAT GULEC
 
PDF
Online Upgrade Using Logical Replication.
EDB
 
PDF
Наш ответ Uber’у
IT Event
 
PPTX
MySQL Replication Overview -- PHPTek 2016
Dave Stokes
 
PDF
Types of replication, pooling and ha
Dimitar Ianakiev
 
PDF
Postgres Vienna DB Meetup 2014
Michael Renner
 
PPTX
Built-in-Physical-and-Logical-Replication-in-Postgresql-Firat-Gulec.pptx
nadirpervez2
 
PDF
Evolution of MySQL Parallel Replication
Mydbops
 
PDF
2012 scale replication
sqlhjalp
 
PPT
MySQL 5.1 Replication
Ligaya Turmelle
 
PDF
2012 ohiolinuxfest replication
sqlhjalp
 
PDF
Demystifying postgres logical replication percona live sc
Emanuel Calvo
 
PDF
The Full MySQL and MariaDB Parallel Replication Tutorial
Jean-François Gagné
 
PDF
MySQL Replication Update -- Zendcon 2016
Dave Stokes
 
PDF
MySQL Replication Basics -Ohio Linux Fest 2016
Dave Stokes
 
PDF
PostgreSQL : Introduction
Open Source School
 
ODP
MySQL 101 PHPTek 2017
Dave Stokes
 
PDF
PostgreSQL versus MySQL - What Are The Real Differences
All Things Open
 
PDF
MySQL Parallel Replication: inventory, use-case and limitations
Jean-François Gagné
 
PPTX
ConFoo MySQL Replication Evolution : From Simple to Group Replication
Dave Stokes
 
Built in physical and logical replication in postgresql-Firat Gulec
FIRAT GULEC
 
Online Upgrade Using Logical Replication.
EDB
 
Наш ответ Uber’у
IT Event
 
MySQL Replication Overview -- PHPTek 2016
Dave Stokes
 
Types of replication, pooling and ha
Dimitar Ianakiev
 
Postgres Vienna DB Meetup 2014
Michael Renner
 
Built-in-Physical-and-Logical-Replication-in-Postgresql-Firat-Gulec.pptx
nadirpervez2
 
Evolution of MySQL Parallel Replication
Mydbops
 
2012 scale replication
sqlhjalp
 
MySQL 5.1 Replication
Ligaya Turmelle
 
2012 ohiolinuxfest replication
sqlhjalp
 
Demystifying postgres logical replication percona live sc
Emanuel Calvo
 
The Full MySQL and MariaDB Parallel Replication Tutorial
Jean-François Gagné
 
MySQL Replication Update -- Zendcon 2016
Dave Stokes
 
MySQL Replication Basics -Ohio Linux Fest 2016
Dave Stokes
 
PostgreSQL : Introduction
Open Source School
 
MySQL 101 PHPTek 2017
Dave Stokes
 
PostgreSQL versus MySQL - What Are The Real Differences
All Things Open
 
MySQL Parallel Replication: inventory, use-case and limitations
Jean-François Gagné
 
ConFoo MySQL Replication Evolution : From Simple to Group Replication
Dave Stokes
 
Ad

More from Pivorak MeetUp (20)

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

Recently uploaded (20)

PDF
SciPy 2025 - Packaging a Scientific Python Project
Henry Schreiner
 
PDF
Beyond Binaries: Understanding Diversity and Allyship in a Global Workplace -...
Imma Valls Bernaus
 
PDF
GetOnCRM Speeds Up Agentforce 3 Deployment for Enterprise AI Wins.pdf
GetOnCRM Solutions
 
PPTX
Migrating Millions of Users with Debezium, Apache Kafka, and an Acyclic Synch...
MD Sayem Ahmed
 
PDF
Understanding the Need for Systemic Change in Open Source Through Intersectio...
Imma Valls Bernaus
 
PDF
The 5 Reasons for IT Maintenance - Arna Softech
Arna Softech
 
PPTX
Equipment Management Software BIS Safety UK.pptx
BIS Safety Software
 
PPTX
Hardware(Central Processing Unit ) CU and ALU
RizwanaKalsoom2
 
PPTX
Agentic Automation Journey Series Day 2 – Prompt Engineering for UiPath Agents
klpathrudu
 
PPTX
Coefficient of Variance in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PPTX
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
PDF
Open Chain Q2 Steering Committee Meeting - 2025-06-25
Shane Coughlan
 
PDF
Mobile CMMS Solutions Empowering the Frontline Workforce
CryotosCMMSSoftware
 
PPTX
Human Resources Information System (HRIS)
Amity University, Patna
 
PPTX
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
PDF
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pdf
Varsha Nayak
 
PDF
HiHelloHR – Simplify HR Operations for Modern Workplaces
HiHelloHR
 
PPTX
Tally_Basic_Operations_Presentation.pptx
AditiBansal54083
 
PDF
Efficient, Automated Claims Processing Software for Insurers
Insurance Tech Services
 
PPTX
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
SciPy 2025 - Packaging a Scientific Python Project
Henry Schreiner
 
Beyond Binaries: Understanding Diversity and Allyship in a Global Workplace -...
Imma Valls Bernaus
 
GetOnCRM Speeds Up Agentforce 3 Deployment for Enterprise AI Wins.pdf
GetOnCRM Solutions
 
Migrating Millions of Users with Debezium, Apache Kafka, and an Acyclic Synch...
MD Sayem Ahmed
 
Understanding the Need for Systemic Change in Open Source Through Intersectio...
Imma Valls Bernaus
 
The 5 Reasons for IT Maintenance - Arna Softech
Arna Softech
 
Equipment Management Software BIS Safety UK.pptx
BIS Safety Software
 
Hardware(Central Processing Unit ) CU and ALU
RizwanaKalsoom2
 
Agentic Automation Journey Series Day 2 – Prompt Engineering for UiPath Agents
klpathrudu
 
Coefficient of Variance in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
Open Chain Q2 Steering Committee Meeting - 2025-06-25
Shane Coughlan
 
Mobile CMMS Solutions Empowering the Frontline Workforce
CryotosCMMSSoftware
 
Human Resources Information System (HRIS)
Amity University, Patna
 
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pdf
Varsha Nayak
 
HiHelloHR – Simplify HR Operations for Modern Workplaces
HiHelloHR
 
Tally_Basic_Operations_Presentation.pptx
AditiBansal54083
 
Efficient, Automated Claims Processing Software for Insurers
Insurance Tech Services
 
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 

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