Skip to content

pgactive

Active-Active Replication Extension for PostgreSQL

pgactive · Active-Active Replication Extension for PostgreSQL

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
9560pgactivepgactive2.1.10ETLApache-2.0C
AttributeHas BinaryHas LibraryNeed LoadHas DDLRelocatableTrusted
--sLd--YesYesYesYesnono
SQL 2.1.8.

Packages

TypeRepoVersionPG Major CompatibilityPackage PatternDependencies
EXTPIGSTY2.1.1019 18 17 16 15pgactive-
RPMPIGSTY2.1.1019 18 17 16 15pgactive_$v-
DEBPIGSTY2.1.1019 18 17 16 15postgresql-$v-pgactive-
Linux / PGPG19PG18PG17PG16PG15
el8.x86_64N/APIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10
el8.aarch64N/APIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10
el9.x86_64PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10
el9.aarch64PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10
el10.x86_64PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10
el10.aarch64PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10
d12.x86_64PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10
d12.aarch64PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10
d13.x86_64PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10
d13.aarch64PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10
u22.x86_64PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10
u22.aarch64PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10
u24.x86_64PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10
u24.aarch64PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10
u26.x86_64PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10
u26.aarch64PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10PIGSTY 2.1.10
PackageVersionOSORGSIZEFile URL
pgactive_192.1.10el9.x86_64pigsty639.5 KiBpgactive_19-2.1.10-1PGSTY.el9.x86_64.rpm
pgactive_192.1.10el9.aarch64pigsty627.5 KiBpgactive_19-2.1.10-1PGSTY.el9.aarch64.rpm
pgactive_192.1.10el10.x86_64pigsty646.4 KiBpgactive_19-2.1.10-1PGSTY.el10.x86_64.rpm
pgactive_192.1.10el10.aarch64pigsty636.4 KiBpgactive_19-2.1.10-1PGSTY.el10.aarch64.rpm
postgresql-19-pgactive2.1.10d12.x86_64pigsty597.8 KiBpostgresql-19-pgactive_2.1.10-1PGSTY~bookworm_amd64.deb
postgresql-19-pgactive2.1.10d12.aarch64pigsty572.6 KiBpostgresql-19-pgactive_2.1.10-1PGSTY~bookworm_arm64.deb
postgresql-19-pgactive2.1.10d13.x86_64pigsty599.0 KiBpostgresql-19-pgactive_2.1.10-1PGSTY~trixie_amd64.deb
postgresql-19-pgactive2.1.10d13.aarch64pigsty576.4 KiBpostgresql-19-pgactive_2.1.10-1PGSTY~trixie_arm64.deb
postgresql-19-pgactive2.1.10u22.x86_64pigsty651.8 KiBpostgresql-19-pgactive_2.1.10-1PGSTY~jammy_amd64.deb
postgresql-19-pgactive2.1.10u22.aarch64pigsty641.2 KiBpostgresql-19-pgactive_2.1.10-1PGSTY~jammy_arm64.deb
postgresql-19-pgactive2.1.10u24.x86_64pigsty631.8 KiBpostgresql-19-pgactive_2.1.10-1PGSTY~noble_amd64.deb
postgresql-19-pgactive2.1.10u24.aarch64pigsty625.1 KiBpostgresql-19-pgactive_2.1.10-1PGSTY~noble_arm64.deb
postgresql-19-pgactive2.1.10u26.x86_64pigsty628.2 KiBpostgresql-19-pgactive_2.1.10-1PGSTY~resolute_amd64.deb
postgresql-19-pgactive2.1.10u26.aarch64pigsty619.2 KiBpostgresql-19-pgactive_2.1.10-1PGSTY~resolute_arm64.deb
PackageVersionOSORGSIZEFile URL
pgactive_182.1.10el8.x86_64pigsty646.7 KiBpgactive_18-2.1.10-1PGSTY.el8.x86_64.rpm
pgactive_182.1.10el8.aarch64pigsty624.8 KiBpgactive_18-2.1.10-1PGSTY.el8.aarch64.rpm
pgactive_182.1.10el9.x86_64pigsty636.3 KiBpgactive_18-2.1.10-1PGSTY.el9.x86_64.rpm
pgactive_182.1.10el9.aarch64pigsty624.6 KiBpgactive_18-2.1.10-1PGSTY.el9.aarch64.rpm
pgactive_182.1.10el10.x86_64pigsty643.0 KiBpgactive_18-2.1.10-1PGSTY.el10.x86_64.rpm
pgactive_182.1.10el10.aarch64pigsty632.5 KiBpgactive_18-2.1.10-1PGSTY.el10.aarch64.rpm
postgresql-18-pgactive2.1.10d12.x86_64pigsty595.1 KiBpostgresql-18-pgactive_2.1.10-1PGSTY~bookworm_amd64.deb
postgresql-18-pgactive2.1.10d12.aarch64pigsty569.0 KiBpostgresql-18-pgactive_2.1.10-1PGSTY~bookworm_arm64.deb
postgresql-18-pgactive2.1.10d13.x86_64pigsty596.0 KiBpostgresql-18-pgactive_2.1.10-1PGSTY~trixie_amd64.deb
postgresql-18-pgactive2.1.10d13.aarch64pigsty571.4 KiBpostgresql-18-pgactive_2.1.10-1PGSTY~trixie_arm64.deb
postgresql-18-pgactive2.1.10u22.x86_64pigsty647.3 KiBpostgresql-18-pgactive_2.1.10-1PGSTY~jammy_amd64.deb
postgresql-18-pgactive2.1.10u22.aarch64pigsty635.8 KiBpostgresql-18-pgactive_2.1.10-1PGSTY~jammy_arm64.deb
postgresql-18-pgactive2.1.10u24.x86_64pigsty628.6 KiBpostgresql-18-pgactive_2.1.10-1PGSTY~noble_amd64.deb
postgresql-18-pgactive2.1.10u24.aarch64pigsty621.7 KiBpostgresql-18-pgactive_2.1.10-1PGSTY~noble_arm64.deb
postgresql-18-pgactive2.1.10u26.x86_64pigsty624.6 KiBpostgresql-18-pgactive_2.1.10-1PGSTY~resolute_amd64.deb
postgresql-18-pgactive2.1.10u26.aarch64pigsty616.1 KiBpostgresql-18-pgactive_2.1.10-1PGSTY~resolute_arm64.deb
PackageVersionOSORGSIZEFile URL
pgactive_172.1.10el8.x86_64pigsty637.9 KiBpgactive_17-2.1.10-1PGSTY.el8.x86_64.rpm
pgactive_172.1.10el8.aarch64pigsty617.0 KiBpgactive_17-2.1.10-1PGSTY.el8.aarch64.rpm
pgactive_172.1.10el9.x86_64pigsty628.2 KiBpgactive_17-2.1.10-1PGSTY.el9.x86_64.rpm
pgactive_172.1.10el9.aarch64pigsty616.9 KiBpgactive_17-2.1.10-1PGSTY.el9.aarch64.rpm
pgactive_172.1.10el10.x86_64pigsty633.9 KiBpgactive_17-2.1.10-1PGSTY.el10.x86_64.rpm
pgactive_172.1.10el10.aarch64pigsty624.5 KiBpgactive_17-2.1.10-1PGSTY.el10.aarch64.rpm
postgresql-17-pgactive2.1.10d12.x86_64pigsty587.9 KiBpostgresql-17-pgactive_2.1.10-1PGSTY~bookworm_amd64.deb
postgresql-17-pgactive2.1.10d12.aarch64pigsty561.9 KiBpostgresql-17-pgactive_2.1.10-1PGSTY~bookworm_arm64.deb
postgresql-17-pgactive2.1.10d13.x86_64pigsty589.2 KiBpostgresql-17-pgactive_2.1.10-1PGSTY~trixie_amd64.deb
postgresql-17-pgactive2.1.10d13.aarch64pigsty564.0 KiBpostgresql-17-pgactive_2.1.10-1PGSTY~trixie_arm64.deb
postgresql-17-pgactive2.1.10u22.x86_64pigsty714.6 KiBpostgresql-17-pgactive_2.1.10-1PGSTY~jammy_amd64.deb
postgresql-17-pgactive2.1.10u22.aarch64pigsty704.8 KiBpostgresql-17-pgactive_2.1.10-1PGSTY~jammy_arm64.deb
postgresql-17-pgactive2.1.10u24.x86_64pigsty620.2 KiBpostgresql-17-pgactive_2.1.10-1PGSTY~noble_amd64.deb
postgresql-17-pgactive2.1.10u24.aarch64pigsty614.0 KiBpostgresql-17-pgactive_2.1.10-1PGSTY~noble_arm64.deb
postgresql-17-pgactive2.1.10u26.x86_64pigsty616.6 KiBpostgresql-17-pgactive_2.1.10-1PGSTY~resolute_amd64.deb
postgresql-17-pgactive2.1.10u26.aarch64pigsty608.6 KiBpostgresql-17-pgactive_2.1.10-1PGSTY~resolute_arm64.deb
PackageVersionOSORGSIZEFile URL
pgactive_162.1.10el8.x86_64pigsty632.1 KiBpgactive_16-2.1.10-1PGSTY.el8.x86_64.rpm
pgactive_162.1.10el8.aarch64pigsty611.2 KiBpgactive_16-2.1.10-1PGSTY.el8.aarch64.rpm
pgactive_162.1.10el9.x86_64pigsty623.0 KiBpgactive_16-2.1.10-1PGSTY.el9.x86_64.rpm
pgactive_162.1.10el9.aarch64pigsty611.4 KiBpgactive_16-2.1.10-1PGSTY.el9.aarch64.rpm
pgactive_162.1.10el10.x86_64pigsty629.3 KiBpgactive_16-2.1.10-1PGSTY.el10.x86_64.rpm
pgactive_162.1.10el10.aarch64pigsty619.6 KiBpgactive_16-2.1.10-1PGSTY.el10.aarch64.rpm
postgresql-16-pgactive2.1.10d12.x86_64pigsty583.2 KiBpostgresql-16-pgactive_2.1.10-1PGSTY~bookworm_amd64.deb
postgresql-16-pgactive2.1.10d12.aarch64pigsty557.9 KiBpostgresql-16-pgactive_2.1.10-1PGSTY~bookworm_arm64.deb
postgresql-16-pgactive2.1.10d13.x86_64pigsty585.0 KiBpostgresql-16-pgactive_2.1.10-1PGSTY~trixie_amd64.deb
postgresql-16-pgactive2.1.10d13.aarch64pigsty559.4 KiBpostgresql-16-pgactive_2.1.10-1PGSTY~trixie_arm64.deb
postgresql-16-pgactive2.1.10u22.x86_64pigsty703.1 KiBpostgresql-16-pgactive_2.1.10-1PGSTY~jammy_amd64.deb
postgresql-16-pgactive2.1.10u22.aarch64pigsty693.8 KiBpostgresql-16-pgactive_2.1.10-1PGSTY~jammy_arm64.deb
postgresql-16-pgactive2.1.10u24.x86_64pigsty615.6 KiBpostgresql-16-pgactive_2.1.10-1PGSTY~noble_amd64.deb
postgresql-16-pgactive2.1.10u24.aarch64pigsty608.8 KiBpostgresql-16-pgactive_2.1.10-1PGSTY~noble_arm64.deb
postgresql-16-pgactive2.1.10u26.x86_64pigsty612.7 KiBpostgresql-16-pgactive_2.1.10-1PGSTY~resolute_amd64.deb
postgresql-16-pgactive2.1.10u26.aarch64pigsty603.9 KiBpostgresql-16-pgactive_2.1.10-1PGSTY~resolute_arm64.deb
PackageVersionOSORGSIZEFile URL
pgactive_152.1.10el8.x86_64pigsty623.3 KiBpgactive_15-2.1.10-1PGSTY.el8.x86_64.rpm
pgactive_152.1.10el8.aarch64pigsty601.7 KiBpgactive_15-2.1.10-1PGSTY.el8.aarch64.rpm
pgactive_152.1.10el9.x86_64pigsty617.7 KiBpgactive_15-2.1.10-1PGSTY.el9.x86_64.rpm
pgactive_152.1.10el9.aarch64pigsty607.0 KiBpgactive_15-2.1.10-1PGSTY.el9.aarch64.rpm
pgactive_152.1.10el10.x86_64pigsty623.2 KiBpgactive_15-2.1.10-1PGSTY.el10.x86_64.rpm
pgactive_152.1.10el10.aarch64pigsty613.5 KiBpgactive_15-2.1.10-1PGSTY.el10.aarch64.rpm
postgresql-15-pgactive2.1.10d12.x86_64pigsty577.1 KiBpostgresql-15-pgactive_2.1.10-1PGSTY~bookworm_amd64.deb
postgresql-15-pgactive2.1.10d12.aarch64pigsty550.5 KiBpostgresql-15-pgactive_2.1.10-1PGSTY~bookworm_arm64.deb
postgresql-15-pgactive2.1.10d13.x86_64pigsty578.8 KiBpostgresql-15-pgactive_2.1.10-1PGSTY~trixie_amd64.deb
postgresql-15-pgactive2.1.10d13.aarch64pigsty553.5 KiBpostgresql-15-pgactive_2.1.10-1PGSTY~trixie_arm64.deb
postgresql-15-pgactive2.1.10u22.x86_64pigsty697.9 KiBpostgresql-15-pgactive_2.1.10-1PGSTY~jammy_amd64.deb
postgresql-15-pgactive2.1.10u22.aarch64pigsty689.2 KiBpostgresql-15-pgactive_2.1.10-1PGSTY~jammy_arm64.deb
postgresql-15-pgactive2.1.10u24.x86_64pigsty609.8 KiBpostgresql-15-pgactive_2.1.10-1PGSTY~noble_amd64.deb
postgresql-15-pgactive2.1.10u24.aarch64pigsty604.2 KiBpostgresql-15-pgactive_2.1.10-1PGSTY~noble_arm64.deb
postgresql-15-pgactive2.1.10u26.x86_64pigsty607.3 KiBpostgresql-15-pgactive_2.1.10-1PGSTY~resolute_amd64.deb
postgresql-15-pgactive2.1.10u26.aarch64pigsty599.0 KiBpostgresql-15-pgactive_2.1.10-1PGSTY~resolute_arm64.deb

Source

pig build pkg pgactive;		# build rpm/deb

Install

Make sure PGDG and PIGSTY repo available:

pig repo add pgsql -u   # add both repo and update cache

Install this extension with pig:

pig install pgactive;		# install by package name

pig install pgactive -v 19;   # install for PG 19
pig install pgactive -v 18;   # install for PG 18
pig install pgactive -v 17;   # install for PG 17
pig install pgactive -v 16;   # install for PG 16
pig install pgactive -v 15;   # install for PG 15

Config this extension to shared_preload_libraries:

shared_preload_libraries = 'pgactive';

Create this extension with:

CREATE EXTENSION pgactive;

Usage

Sources:

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.

shared_preload_libraries = 'pgactive'
wal_level = logical
CREATE EXTENSION pgactive;
SELECT pgactive.pgactive_create_group(
  node_name := 'node1-app',
  node_dsn := 'user_mapping=postgres pgactive_foreign_server=node1'
);
SELECT pgactive.pgactive_wait_for_node_ready();

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.

Table reader