pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Elphick <olly@lfix.co.uk>
To: Neil Conway <neilc@samurai.com>
Cc: Francisco Reyes <lists@natserv.com>
Cc: pgsql General List <pgsql-general@postgresql.org>
Subject: Re: Closing inactive connections OR user connections
Date: 20 Nov 2002 22:02:22 +0000
Message-ID: <1037829742.24840.34.camel@linda> (raw)
In-Reply-To: <878yzo5bqs.fsf@mailbox.samurai.com>
References: <20021120133345.A30106-100000@zoraida.natserv.net>
	<878yzo5bqs.fsf@mailbox.samurai.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).

...
> +       <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 




view thread (20+ messages)  latest in thread

Message-ID: <1037829742.24840.34.camel@linda>
Permalink:  ../1037829742.24840.34.camel@linda/
Also on:    postgresql.org/message-id/1037829742.24840.34.camel@linda

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: olly@lfix.co.uk, neilc@samurai.com, lists@natserv.com, pgsql-general@postgresql.org
  Subject: Re: Closing inactive connections OR user connections
  In-Reply-To: <1037829742.24840.34.camel@linda>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox