Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 0AB6C474E61 for ; Wed, 20 Nov 2002 17:02:25 -0500 (EST) Received: from anchor-post-33.mail.demon.net (anchor-post-33.mail.demon.net [194.217.242.91]) by postgresql.org (Postfix) with ESMTP id 28C8E4760A4 for ; Wed, 20 Nov 2002 17:02:23 -0500 (EST) Received: from lfix.demon.co.uk ([158.152.59.127] helo=linda.lfix.co.uk) by anchor-post-33.mail.demon.net with esmtp (Exim 3.35 #1) id 18EcvP-000CVd-0X; Wed, 20 Nov 2002 22:02:23 +0000 Received: from localhost ([127.0.0.1] helo=localhost.localdomain ident=olly) by linda.lfix.co.uk with esmtp (Exim 3.36 #1 (Debian)) id 18EcvO-0008Ch-00; Wed, 20 Nov 2002 22:02:22 +0000 Subject: Re: Closing inactive connections OR user connections From: Oliver Elphick To: Neil Conway Cc: Francisco Reyes , pgsql General List In-Reply-To: <878yzo5bqs.fsf@mailbox.samurai.com> References: <20021120133345.A30106-100000@zoraida.natserv.net> <878yzo5bqs.fsf@mailbox.samurai.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 20 Nov 2002 22:02:22 +0000 Message-Id: <1037829742.24840.34.camel@linda> Mime-Version: 1.0 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/871 X-Sequence-Number: 33292 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