pg_failover_slots
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
pg_failover_slots | 1.2.1 | ETL | PostgreSQL | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 9540 | pg_failover_slots | No | Yes | Yes | No | No | Yes | - |
Load via shared_preload_libraries on both primary and standby nodes.
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 1.2.1 | 1817161514 | pg_failover_slots | - |
| RPM | PIGSTY | 1.2.1 | 1817161514 | pg_failover_slots_$v | - |
| DEB | PIGSTY | 1.2.1 | 1817161514 | postgresql-$v-pg-failover-slots | - |
Build
You can build the RPM / DEB packages for pg_failover_slots using pig build:
Install
You can install pg_failover_slots directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Preload:
Usage
pg_failover_slots keeps logical replication slots usable across failover by synchronizing slot definitions and positions from a primary to a standby.
Enable it on both nodes
Required standby settings from the README:
Main configuration
The README documents synchronize_slot_names filters by exact slot name, LIKE pattern, or plugin name.
Check standby readiness before failover
On the standby, logical slots are ready only when they exist and show active = false. The README says active = true means a slot is still being initialized.
Notes
- PostgreSQL 11+ is required upstream.
v1.2.1is a bug-fix release; no new user-facing SQL or GUC surface was added there.v1.2.0added PostgreSQL 18 support and clarifieddrop_extra_slotsbehavior.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)