Configuring PG Failover Slots
You must add the extension to shared_preload_libraries
on both the primary instance as well as any standby that's used for high availability (failover or switchover) purposes.
Prerequisite settings
The following settings are required:
hot_standby_feedback
must beon
.primary_slot_name
must be non-empty.
These settings are necessary to connect to the primary so it can send the xmin
and catalog_xmin
separately over hot_standby_feedback
.
Configuration options
You can configure the behavior of PG Failover Slots using the following configuration options in postgresql.conf
. The configuration options have the prefix pg_failover_slots.
, for example, pg_failover_slots.synchronize_slot_names
.
synchronize_slot_names
Option that allows you to set the logical slots to synchronize to this physical standby.
Select slots to synchronize by using a slot filter. These slot filters can match a specifically named slot, slots with names matching an SQL LIKE expression, or the name of a plugin that a slot is using. Define slot filters as a key:value
pair, where the key can be one of:
name