Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. PostgreSQL
  3. pglogical

pglogical

NOASSERTIONCREL2_4_7

A logical replication extension for PostgreSQL that enables high-performance, cross-version data replication and upgrades.

Visit WebsiteGitHubGitHub
1.2k stars176 forks0 contributors

What is pglogical?

pglogical is a logical replication extension for PostgreSQL that enables efficient, row-level data synchronization between database instances. It solves the problem of high-performance replication across different PostgreSQL versions while supporting selective data replication and conflict resolution.

Target Audience

Database administrators and developers managing PostgreSQL deployments who need reliable replication for high availability, data distribution, or version upgrades.

Value Proposition

Developers choose pglogical for its superior performance over traditional replication tools, cross-version compatibility, and flexibility in replicating specific data subsets without requiring full instance duplication.

Overview

Logical Replication extension for PostgreSQL 17, 16, 15, 14, 13, 12, 11, 10, 9.6, 9.5, 9.4 (Postgres), providing much faster replication than Slony, Bucardo or Londiste, as well as cross-version upgrades.

Use Cases

Best For

  • Replicating specific tables or schemas between PostgreSQL databases
  • Performing cross-version PostgreSQL upgrades with minimal downtime
  • Setting up high-availability PostgreSQL clusters with logical replication
  • Distributing data across geographically dispersed database instances
  • Synchronizing data for reporting or analytics databases
  • Migrating from older replication tools like Slony or Bucardo

Not Ideal For

  • Environments using non-PostgreSQL databases or requiring heterogeneous DBMS replication
  • Simple high-availability setups where PostgreSQL's built-in streaming replication suffices
  • Teams with minimal PostgreSQL DBA expertise who need plug-and-play replication solutions
  • Projects requiring real-time replication with zero configuration overhead or automatic failover

Pros & Cons

Pros

High Performance Replication

Benchmarks indicate significantly faster replication than alternatives like Slony or Bucardo, as highlighted in the features, making it ideal for data-intensive applications.

Cross-Version Compatibility

Supports replication between PostgreSQL versions 9.4 to 17, enabling seamless version upgrades without downtime, which is a key value proposition for migrations.

Selective Data Control

Allows replication of specific tables, schemas, or databases rather than entire instances, providing flexibility for complex data flows as described in the selective replication feature.

Built-in Conflict Resolution

Includes mechanisms to handle data conflicts during replication, ensuring reliability in distributed setups, though it requires configuration.

Cons

PostgreSQL-Only Restriction

Exclusively works with PostgreSQL databases, limiting use in mixed-database environments or migrations to other systems.

Complex Setup and Management

Requires extension installation and detailed configuration of replication sets, which can be more involved than using PostgreSQL's native replication tools.

Maintenance and Monitoring Overhead

Ongoing management, such as handling conflicts and monitoring performance, may demand specialized DBA skills and additional tooling.

Open Source Alternative To

pglogical is an open-source alternative to the following products:

S
Slony

Slony is an open-source replication system for PostgreSQL databases, providing asynchronous master-slave replication to support high availability, load balancing, and data distribution.

L
Londiste

Londiste is a replication system for PostgreSQL that provides master-slave replication with trigger-based change capture, part of the Skytools suite from Skype.

B
Bucardo

Bucardo is an open-source asynchronous PostgreSQL replication system that provides multi-master replication and conflict resolution capabilities.

Frequently Asked Questions

Quick Stats

Stars1,222
Forks176
Contributors0
Open Issues176
Last commit12 days ago
CreatedSince 2016

Tags

#logical-replication#data-synchronization#high-availability#replication#publish-subscribe#database-replication#database-migration#subscription#cdc#postgresql#postgres-extension#data-transformation#etl

Built With

P
PostgreSQL

Links & Resources

Website

Included in

PostgreSQL11.8k
Auto-fetched 1 day ago

Related Projects

CitusCitus

Distributed PostgreSQL as an extension

Stars12,557
Forks779
Last commit3 days ago
ZomboDBZomboDB

Making Postgres and Elasticsearch work together like it's 2023

Stars4,730
Forks214
Last commit1 year ago
AGEAGE

Graph database optimized for fast analysis and real-time data processing. It is provided as an extension to PostgreSQL.

Stars4,595
Forks503
Last commit2 days ago
pg_cronpg_cron

Run periodic jobs in PostgreSQL

Stars3,808
Forks253
Last commit1 month ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub