pglogical
PostgreSQL Logical Replication
pglogical : PostgreSQL Logical Replication
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 9500 | pglogical | pglogical | 2.4.8 |
ETL | PostgreSQL | C |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --sLd-- | No | Yes | Yes | Yes | no | no |
| Relationships | |
|---|---|
| Schemas | pglogical |
| Need By | pgl_ddl_deploy pglogical_ticker |
| See Also | spock pgactive mimeo pgl_ddl_deploy logical_ddl pgoutput pglogical_ticker pg_failover_slots postgres_fdw db_migrator pgclone lolor |
| Siblings | pglogical_origin |
PGDG RPM and DEB/catalog versions are aligned at 2.4.8; Pigsty source remains on 2.4.6.
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | PGDG | 2.4.8 |
18 17 16 15 14 | pglogical |
- |
| RPM | PGDG | 2.4.8 |
18 17 16 15 14 | pglogical_$v |
- |
| DEB | PGDG | 2.4.8 |
18 17 16 15 14 | postgresql-$v-pglogical |
- |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 |
| el8.aarch64 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 |
| el9.x86_64 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 |
| el9.aarch64 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 |
| el10.x86_64 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 |
| el10.aarch64 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 |
| d12.x86_64 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 |
| d12.aarch64 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 |
| d13.x86_64 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 |
| d13.aarch64 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 |
| u22.x86_64 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 |
| u22.aarch64 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 |
| u24.x86_64 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 |
| u24.aarch64 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 |
| u26.x86_64 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 |
| u26.aarch64 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 | PGDG 2.4.8 |
Source
github.com/2ndQuadrant/pglogical
pglogical-2.4.6.tar.gz
Install
Make sure PGDG repo available:
Install this extension with pig:
Config this extension to shared_preload_libraries:
Create this extension with:
Usage
A logical replication system for PostgreSQL using a publish/subscribe model. Requires no triggers or external programs.
Enabling
Add to postgresql.conf:
Provider (Publisher) Setup
Subscriber Setup
Replication Set Management
Row and Column Filtering
Subscription Management
Key Features
- Selective replication (per-table, row filtering, column filtering)
- Replication between different PostgreSQL major versions
- Delayed replication
- No need for superuser on subscriber