Re: Excessive number of replication slots for 12->14 logical replication

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Excessive number of replication slots for 12->14 logical replication
Дата
Msg-id 20220715221407.b4vopjkzflv4xi47@awork3.anarazel.de
обсуждение исходный текст
Ответ на Re: Excessive number of replication slots for 12->14 logical replication  (Kyotaro Horiguchi <horikyota.ntt@gmail.com>)
Ответы Re: Excessive number of replication slots for 12->14 logical replication  (Amit Kapila <amit.kapila16@gmail.com>)
Список pgsql-bugs
Hi,

On 2022-07-15 13:55:32 +0900, Kyotaro Horiguchi wrote:
> Yeah, the limitation by max_sync_workers_per_subscription is performed
> on subscriber, but replication slot drops happen not on the
> subscriber, but at the termination of corresponding walsender process
> on publisher. So, there's a lag between the finish of subscription
> worker and the corresponding slot's drop.  Thus, a new sync worker can
> be created while the walsenders corresponding to some already finished
> sync workers is still going to finish.

Why are we relying on the slots being dropped at the end of connection? That
doesn't seem like a good idea to me. Can't we just do that explicitly? We
still need the on-connection-close cleanup to deal with network failures etc,
but that doesn't mean we can do something else in the happy path.

Greetings,

Andres Freund



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #17434: CREATE/DROP DATABASE can be executed in the same transaction with other commands
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Makefile.global will override configure parameters if "pgsql" and "postgres" appear anywhere in the source path name