Logical Replication vs. Free Replication Slots

Поиск
Список
Период
Сортировка
От Don Seiler
Тема Logical Replication vs. Free Replication Slots
Дата
Msg-id CAHJZqBAubxad74rQv8LeKe2XTQQTGPjh7ZetKRPPAZWWvUmKrQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Logical Replication vs. Free Replication Slots
Список pgsql-general
Good morning,

I'm trying to set up native logical replication from PG 12.15 (Ubuntu 18.04) to 15.4 (Ubuntu 22.04). I wanted to set up 3 publications to split up the work. I initially created the three publications with a handful of tables each. On the source (PG 12.15) instance, we have bumped max_replication_slots and max_wal_senders to 50, and max_sync_workers_per_subscription to 10.

When I create the subscriptions to start the initial table sync, the third one failed to enable, with this error:

2023-09-29 21:07:45.861 UTC [1853362] ERROR: could not find free replication state slot for replication origin with ID 11 2023-09-29 21:07:45.861 UTC [1853362] HINT: Increase max_replication_slots and try again. 2023-09-29 21:07:45.861 UTC [1853362] LOG: subscription "sub03" has been disabled because of an error

However when I look at the publication side, there are only 20 replication slots created (out of 50 max), 3 of which are the subscriptions and the rest are the tablesyncs workers.

So I'm trying to make sense of why it would tell me to increase max_replication_slots when I don't appear to be anywhere near the max.
--
Don Seiler
www.seiler.us

В списке pgsql-general по дате отправления:

Предыдущее
От: Ron
Дата:
Сообщение: Re: Problems starting slave
Следующее
От: Don Seiler
Дата:
Сообщение: Re: Logical Replication vs. Free Replication Slots