pg_failover_slots
PG Failover Slots extension
pg_failover_slots : PG Failover Slots extension
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 9540 | pg_failover_slots | pg_failover_slots | 1.2.1 |
ETL | PostgreSQL | C |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --sL--r | No | Yes | Yes | No | yes | no |
| Relationships | |
|---|---|
| See Also | repmgr bgw_replstatus pgautofailover pgpool_adm pglogical pgactive pglogical_ticker |
Load via shared_preload_libraries on both primary and standby nodes.
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | PGDG | 1.2.1 |
18 17 16 15 14 | pg_failover_slots |
- |
| RPM | PGDG | 1.2.1 |
18 17 16 15 14 | pg_failover_slots_$v |
- |
| DEB | PGDG | 1.2.1 |
18 17 16 15 14 | postgresql-$v-pg-failover-slots |
- |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 |
| el8.aarch64 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 |
| el9.x86_64 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 |
| el9.aarch64 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 |
| el10.x86_64 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 |
| el10.aarch64 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 |
| d12.x86_64 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 |
| d12.aarch64 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 |
| d13.x86_64 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 |
| d13.aarch64 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 |
| u22.x86_64 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 |
| u22.aarch64 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 |
| u24.x86_64 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 |
| u24.aarch64 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 |
| u26.x86_64 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 |
| u26.aarch64 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 | PGDG 1.2.1 |
Source
github.com/EnterpriseDB/pg_failover_slots
pg_failover_slots-1.2.1.tar.gz
Install
Make sure PGDG repo available:
Install this extension with pig:
Config this extension to shared_preload_libraries:
This extension does not need CREATE EXTENSION DDL command
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.