Re: Bugs in superuser_reserved_connections and max_wal_senders vs max_connections

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Bugs in superuser_reserved_connections and max_wal_senders vs max_connections
Дата
Msg-id 955.1344521840@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Bugs in superuser_reserved_connections and max_wal_senders vs max_connections  (Magnus Hagander <magnus@hagander.net>)
Ответы Re: Bugs in superuser_reserved_connections and max_wal_senders vs max_connections
Список pgsql-hackers
Magnus Hagander <magnus@hagander.net> writes:
> The check in PostmasterMain():
>     if (ReservedBackends >= MaxBackends)
>     {
>         write_stderr("%s: superuser_reserved_connections must be less than
> max_connections\n", progname);
>         ExitPostmaster(1);
>     }

> should probably check against MaxConnections instead of MaxBackends, I think?

Yeah, this code probably dates from before there was a difference.

In general, I'd bet that this is not the only place where the wrong one
of those variables is being consulted.
        regards, tom lane


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