Re: Connection slots reserved for replication

Поиск
Список
Период
Сортировка
От Oleksii Kliukin
Тема Re: Connection slots reserved for replication
Дата
Msg-id DE372F7B-8703-4B24-9BB6-CCF9B9F611CC@hintbits.com
обсуждение исходный текст
Ответ на Re: Connection slots reserved for replication  (Alexander Kukushkin <cyberdemn@gmail.com>)
Ответы Re: Connection slots reserved for replication  (Petr Jelinek <petr.jelinek@2ndquadrant.com>)
Список pgsql-hackers
> On 30. Nov 2018, at 13:58, Alexander Kukushkin <cyberdemn@gmail.com> wrote:
>
> attaching the new version of the patch.
> Now it simply reserves max_wal_senders slots in the ProcGlobal, what
> guarantees that only walsender process could use them.

With this patch It looks like InitProcess will trigger the generic error about 'too many clients' before the more
specificerror message in InitWalSenderSlot when exceeding the number of max_wal_senders. 

Does excluding WAL senders from the max_connections limit and including max_wal_senders in MaxBackends also imply that
weneed to add max_wal_senders to the list at xlog.c: CheckRequiredParameterValues, requiring its value on the replica
tobe not lower than the one on the primary?  

Cheers,
Oleksii

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

Предыдущее
От: Julien Demoor
Дата:
Сообщение: Re: NOTIFY and pg_notify performance when deduplicating notifications
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: don't mark indexes invalid unnecessarily