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 Medi Montaseri <medi.montaseri@intransa.com>
Re: Closing inactive connections OR user connections limits "scott.marlowe" <scott.marlowe@ihs.com>
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).

...
> +       SUPERUSER_RESERVED_CONNECTIONS
...
> +         Determines the number of connection slots that
> +         are reserved for connections by the PostgreSQL</>
> +         superuser. The maximum number of concurrent connections that
> +         can be made from any user account is
                             ^^^^^^^^^^^^^^^^
                             all user accounts together

> +         max_connections</> minus
> +         superuser_reserved_connections; beyond that
> +         point, any additional connections from non-superuser accounts
> +         are refused.
> +        
> + 
> +        
> +         The default value is 2. This must be at least as large as the
> +         value of max_connections. 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 по дате отправления
От: Neil Conway
Дата:
От: scott.marlowe
Дата:
FAQ