Issue with logical replication slot during switchover - Mailing list pgsql-hackers
From | Fabrice Chapuis |
---|---|
Subject | Issue with logical replication slot during switchover |
Date | |
Msg-id | CAA5-nLAqGpBFEAr2XNYMj3E+39caQra_SJeB5MCtp7PCyLTiOg@mail.gmail.com Whole thread Raw |
Responses |
Re: Issue with logical replication slot during switchover
|
List | pgsql-hackers |
An issue occurred during the initial switchover using PostgreSQL version 17.5. The setup consists of a cluster with two nodes, managed by Patroni version 4.0.5.
Logical replication is configured on the same instance, and the new feature enabling logical replication slots to be failover-safe in a highly available environment is used. Logical slot management is currently disabled in Patroni.
Following are some screen captured during the swichover
1. Run the switchover with Patroni
patronictl switchover
Current cluster topology
+ Cluster: ClusterX (7529893278186104053) ----+----+-----------+
| Member | Host | Role | State | TL | Lag in MB |
+----------+--------------+---------+-----------+----+-----------+
| node_1 | xxxxxxxxxxxx | Leader | running | 4 | |
| node_2 | xxxxxxxxxxxx | Replica | streaming | 4 | 0 |
+----------+--------------+---------+-----------+----+-----------+
Since the logical slot is in a failover state on both the primary and the standby, an attempt could be made to resynchronize them.
pgsql-hackers by date: