pgcat
pgcat-pgxs · Enhanced logical replication extension for per-table subscriptions, table mapping, and replica-identity tracking.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 100663 | pgcat | pgcat-pgxs | 1.0 | ETL | Apache-2.0 | C |
PostgreSQL · 11, 12, 13, 14, 15, 16, 17, 18
| Relationships | |
|---|---|
| Requires | plpgsql |
Usage
Sources:
pgcat is the database-side component of the external pgcat logical-replication daemon. The extension creates configuration/progress tables and privileged helper functions in the fixed pgcat schema; the separate daemon reads those tables and applies changes.
The pgcat role must exist before extension creation. A minimal one-way setup uses a replication role and publication on the publisher, then a matching role, extension, target table privileges, and subscription row on the subscriber:
Start and configure the external pgcat process after the database objects are ready.
Version and security
The extension control exposes version 1.0, while the PGXN distribution is labeled 1.0.0. Install the extension on both publisher and subscriber as directed by upstream. Connection passwords are stored as plain text in pgcat.pgcat_subscription; tightly restrict access to the fixed schema, the pgcat role, and daemon configuration. Logical replication also requires suitable wal_level, pg_hba.conf, publication, replica-identity, and target-table preparation.