Re: Closing inactive connections OR user connections

From: Oliver Elphick <olly(at)lfix(dot)co(dot)uk>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: Francisco Reyes <lists(at)natserv(dot)com>, pgsql General List <pgsql-general(at)postgresql(dot)org>
Subject: Re: Closing inactive connections OR user connections
Date: 2002-11-20 22:02:22
Message-ID: 1037829742.24840.34.camel@linda
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

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(dot)Elphick(at)lfix(dot)co(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message scott.marlowe 2002-11-20 22:08:57 Re: Closing inactive connections OR user connections limits
Previous Message Ryan Wright 2002-11-20 21:55:16 Request assistance connecting with Pg::connectdb

Browse pgsql-sql by date

  From Date Subject
Next Message scott.marlowe 2002-11-20 22:08:57 Re: Closing inactive connections OR user connections limits
Previous Message Joe Conway 2002-11-20 21:57:14 Re: Trees: maintaining pathnames