Re: [HACKERS] Streaming replication document improvements

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] Streaming replication document improvements
Дата
Msg-id 7978.1271807616@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] Streaming replication document improvements  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: [HACKERS] Streaming replication document improvements  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-docs
Robert Haas <robertmhaas@gmail.com> writes:
> Current logic says we hit the connection limit if:

>         if (!am_superuser &&
>                 ReservedBackends > 0 &&
>                 !HaveNFreeProcs(ReservedBackends))

> Couldn't we just change this to:

>         if ((!am_superuser || am_walsender) &&
>                 ReservedBackends > 0 &&
>                 !HaveNFreeProcs(ReservedBackends))

As of the patch I just committed, that code is not reached anymore by a
walsender process.  However, it shouldn't be hard to put a similar test
into the walsender code path.

            regards, tom lane

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

Предыдущее
От: Jim Nasby
Дата:
Сообщение: Inconsistency in docs for OVERLAPS
Следующее
От: Fujii Masao
Дата:
Сообщение: Re: [HACKERS] Streaming replication document improvements