Re: idle connection timeout ...

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: idle connection timeout ...
Дата
Msg-id 22568.1035554410@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: idle connection timeout ...  ("Marc G. Fournier" <scrappy@hub.org>)
Список pgsql-hackers
"Marc G. Fournier" <scrappy@hub.org> writes:
> Is there any way of the 'master process' *safely/accurately* knowing,
> through the shared memory link, the # of connections currently open to a
> particular database?  So that a limit could be set on a per db basis, say
> as an additional arg to pg_hba.conf?

It would be better/easier to apply the check later on, when a backend is
adding itself to the PGPROC array.  It'd be easy enough to count the
number of other backends showing the same DB OID in their PGPROC
entries, and reject if too many.
        regards, tom lane





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

Предыдущее
От: Greg Copeland
Дата:
Сообщение: Re: idle connection timeout ...
Следующее
От: Tom Lane
Дата:
Сообщение: Re: idle connection timeout ...