Re: Closing inactive connections OR user connections
| От | Oliver Elphick |
|---|---|
| Тема | Re: Closing inactive connections OR user connections |
| Дата | |
| Msg-id | 1037829742.24840.34.camel@linda обсуждение исходный текст |
| Ответ на | Re: Closing inactive connections OR user connections limits (Neil Conway <neilc@samurai.com>) |
| Ответы |
Re: Closing inactive connections OR user connections limits
|
| Список | pgsql-general |
On Wed, 2002-11-20 at 18:36, Neil Conway wrote:
> Heh, no where at the moment, as there wasn't isn't any documentation
> on this new feature :-) Attached is a patch that adds some (also sent
> to -patches).
...
> + <term><varname>SUPERUSER_RESERVED_CONNECTIONS</varname>
...
> + Determines the number of <quote>connection slots</quote> that
> + are reserved for connections by the <productname>PostgreSQL</>
> + superuser. The maximum number of concurrent connections that
> + can be made from any user account is
^^^^^^^^^^^^^^^^
all user accounts together
> + <varname>max_connections</> minus
> + <varname>superuser_reserved_connections</varname>; beyond that
> + point, any additional connections from non-superuser accounts
> + are refused.
> + </para>
> +
> + <para>
> + The default value is 2. This must be at least as large as the
> + value of <varname>max_connections</varname>. This parameter
At least as large? Surely not? You are saying:
SUPERUSER_RESERVED_CONNECTIONS >= MAX_CONNECTIONS
and
max_user_connections =
MAX_CONNECTIONS - SUPERUSER_RESERVED_CONNECTIONS
Therefore max_user_connections <= 0
--
Oliver Elphick Oliver.Elphick@lfix.co.uk
Isle of Wight, UK
http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"If my people, which are called by my name, shall
humble themselves, and pray, and seek my face, and
turn from their wicked ways; then will I hear from
heaven, and will forgive their sin, and will heal
their land." II Chronicles 7:14
В списке pgsql-general по дате отправления: