Re: per user/database connections limit again

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: per user/database connections limit again
Дата
Msg-id 941.1123077786@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: per user/database connections limit again  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-patches
Peter Eisentraut <peter_e@gmx.net> writes:
> Am Montag, 1. August 2005 16:08 schrieb Bruce Momjian:
>>> Would this not work in the context of the general user-specific ALTER
>>> USER ... SET something = something?
>>
>> No because it isn't a GUC variable, it is per-user/db value.

> GUC supports per-user/per-db values.

But not in the style that we'd want this to work.  You couldn't just
invent a single "connection_limit" variable, because a per-user setting
would override a per-database setting, which is not the desired
behavior.  You'd have to invent two separate GUC variables, and there
would be nothing except convention enforcing that they be set through
ALTER USER and ALTER DATABASE rather than at other random places.

We could do it that way, but it strikes me as messy and confusing,
and I don't see any actual benefit other than saving a few lines of
(already written) code.  In what way would a GUC-based implementation
be more useful than what's there?

            regards, tom lane

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: per user/database connections limit again
Следующее
От: Petr Jelinek
Дата:
Сообщение: Re: per user/database connections limit again