X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 172689FA38E for ; Wed, 10 May 2006 16:57:45 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 65883-07 for ; Wed, 10 May 2006 16:57:36 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by postgresql.org (Postfix) with ESMTP id E41FC9FA293 for ; Wed, 10 May 2006 16:57:35 -0300 (ADT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.3/8.13.3) with ESMTP id k4AJvPVA075900 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 10 May 2006 13:57:28 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.6/8.13.6) with ESMTP id k4AJvP1x027931; Wed, 10 May 2006 13:57:25 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.6/8.13.6/Submit) id k4AJvOeA027930; Wed, 10 May 2006 13:57:24 -0600 (MDT) (envelope-from mfuhr) Date: Wed, 10 May 2006 13:57:24 -0600 From: Michael Fuhr To: Kenji Morishige Cc: pgsql-admin@postgresql.org Subject: Re: limiting number of connections from specific host or by user Message-ID: <20060510195724.GA27845@winnie.fuhr.org> References: <20060510190646.GA12986@juniper.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060510190646.GA12986@juniper.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/121 X-Sequence-Number: 21653 On Wed, May 10, 2006 at 12:06:46PM -0700, Kenji Morishige wrote: > Is there any way from PostgreSQL user authentication or other > methods to cap connection count by user or by host? What version are you running? 8.1 has per-user and per-database connection limits; search for CONNECTION LIMIT in the following documentation: http://www.postgresql.org/docs/8.1/interactive/sql-alteruser.html http://www.postgresql.org/docs/8.1/interactive/sql-alterrole.html http://www.postgresql.org/docs/8.1/interactive/sql-alterdatabase.html -- Michael Fuhr