Thread: PG Failover Slots 1.1.0 Released

PG Failover Slots 1.1.0 Released

From
EDB via PostgreSQL Announce
Date:
 

PG Failover Slots 1.1.0 Released

PG Failover Slots 1.1.0 Released

EDB is pleased to announce the release of PG Failover Slots (pg_failover_slots) 1.1.0. This release includes support for the upcoming PostgreSQL 17, bug fixes, and additional configuration options. You can find PG Failover Slots on GitHub, where you will also find the latest Release notes. PG Failover Slots is open-source software under the PostgreSQL license.

Designed for users with logical replication publications on Postgres databases that are part of a streaming replication architecture, PG Failover Slots avoids the need for logical replication subscribers to reseed their logical replication tables when the logical replication publisher is part of a physical streaming replication architecture, and a new standby gets promoted to primary.

Since the replication slot used by logical replication is only maintained on the primary node, downstream subscribers will not receive any new changes from the newly promoted primary until the slot is created. Picking up logical replication changes from the newly promoted standby is unsafe because the information that includes which data a subscriber has confirmed receiving and which log data still needs to be retained for the subscriber will have been lost, resulting in an unknown gap in data.

PG Failover Slots makes logical replication slots usable across a physical failover via the following features:

  • Copies any missing replication slots from the primary to the standby
  • Removes any slots from the standby that aren't found on the primary
  • Periodically synchronizes the position of slots on the standby based on the primary
  • Ensures that selected standbys receive data before any of the logical slot walsenders can send data to consumers