pgactive
pgactive : Active-Active Replication Extension for PostgreSQL
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 9560 | pgactive | pgactive | 2.1.10 |
ETL | Apache-2.0 | C |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --sLd-- | Yes | Yes | Yes | Yes | no | no |
| Relationships | |
|---|---|
| Schemas | pg_catalog |
| See Also | pglogical spock mimeo pgoutput postgres_fdw repmgr pg_failover_slots citus pgautofailover bgw_replstatus |
Packages
| Linux / PG | PG19 | PG18 | PG17 | PG16 | PG15 |
|---|---|---|---|---|---|
| el8.x86_64 | N/A | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 |
| el8.aarch64 | N/A | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 |
| el9.x86_64 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 |
| el9.aarch64 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 |
| el10.x86_64 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 |
| el10.aarch64 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 |
| d12.x86_64 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 |
| d12.aarch64 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 |
| d13.x86_64 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 |
| d13.aarch64 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 |
| u22.x86_64 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 |
| u22.aarch64 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 |
| u24.x86_64 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 |
| u24.aarch64 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 |
| u26.x86_64 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 |
| u26.aarch64 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 | PIGSTY 2.1.10 |
Source
github.com/aws/pgactive
pgactive-2.1.10.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Config this extension to shared_preload_libraries:
Create this extension with:
Usage
Sources:
- Official source
- Official source
- Official source
- Official source
- Official source
- Official source
- Official source
- Official source
pgactive 2.1.10 provides active-active logical replication between databases in a full mesh. Writes commit locally and replicate to peers; applications must handle lag, conflicts and node-local locking rather than assume global serializability.
Configure a group
The release requires PostgreSQL 18.7, 17.12, 16.16, 15.20 or 14.25 and later minors in those branches; it also names upcoming PostgreSQL 19. Preload the library, configure logical WAL and sufficient replication slots/workers, then restart. Installation and management functions require superuser access.
The example assumes an existing node1 foreign server using pgactive_fdw, a protected user mapping and working connections to the database itself and every peer. Configure actual credentials through protected mappings or password files. On a fresh joining database, create the extension and use pgactive.pgactive_join_group with its own node_dsn and the peer’s join_using_dsn, then wait for readiness. The built-in join performs coordinated initialization; an arbitrary independent dump does not substitute for it.
Operations and upgrades
Every peer must be reachable when a node joins. Plan unique keys, sequence allocation, conflict handling and replication-slot retention. DDL replication is disabled by default; enabling it requires consistent policy on senders and receivers. Apply workers default to applying DML as the table owner, while replication connections and worker management remain privileged.
Version 2.1.10 hardens replication-name and tuple handling and fixes conflict-handler ABI and shared-memory lock offsets. A 2.1.10 node may join an older group, but a node on 2.1.9 or earlier cannot join a 2.1.10 node until upgraded. Install matching files and execute the supplied SQL upgrade in each database; coordinate restart/reconnection and join order across the group.