2 standby). I am trying to migrate a database (has 12 schemas) in this cluster to another PostgreSQL v16 Patroni Cluster (1 primary 2 standby) with Logical Replication.
Normally I expect it will create a single Replication Slot for a single Subscription. But it created 7 Replication Slots like "pg_19638_sync_16971_7400692342453180867" and it is trying to create more replication slot but it cant because max_replication_slot=10.
The Replication Slot that I want to create is in active=true state. But the Replication Slots that it created with these default names are in active=false state.
(v13 Server)
CREATE PUBLICATION pubA FOR ALL TABLES;
(v16 Server)
CREATE SUBSCRIPTION subA CONNECTION 'dbname=dbA host=10.11.11.111 user=userA port=5432' PUBLICATION pubA;
(userA's password in .pgpass file)
What is the reason for this?
Several questions: Are you using pglogical? Which Patroni version? And what Jaime said.
Обсуждают сегодня