X-Original-To: pgsql-general@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 19203474E5C for ; Fri, 21 Feb 2003 05:50:36 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 79913-03 for ; Fri, 21 Feb 2003 05:50:20 -0500 (EST) Received: from anchor-post-35.mail.demon.net (anchor-post-35.mail.demon.net [194.217.242.85]) by postgresql.org (Postfix) with ESMTP id 78A6D474E4F for ; Fri, 21 Feb 2003 05:50:20 -0500 (EST) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-35.mail.demon.net with esmtp (Exim 3.36 #2) id 18mAl3-00067m-0Z; Fri, 21 Feb 2003 10:50:22 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mainbox.archonet.com (Postfix) with ESMTP id 63C16168BD; Fri, 21 Feb 2003 10:50:20 +0000 (GMT) Received: from client.archonet.com (client.archonet.com [192.168.1.16]) by mainbox.archonet.com (Postfix) with ESMTP id B877A168BA; Fri, 21 Feb 2003 10:50:19 +0000 (GMT) Content-Type: text/plain; charset="iso-8859-1" From: Richard Huxton Organization: Archonet Ltd To: Thomas Beutin , Jose Antonio Martinez Subject: Re: max connections Date: Fri, 21 Feb 2003 10:50:17 +0000 User-Agent: KMail/1.4.3 Cc: pgsql-general@postgresql.org References: <20030220151733.83070.qmail@web21104.mail.yahoo.com> <20030220183107.A16069@laokoon.bug.net> In-Reply-To: <20030220183107.A16069@laokoon.bug.net> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200302211050.18447.dev@archonet.com> X-Virus-Scanned: by AMaViS snapshot-20020531 X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/1305 X-Sequence-Number: 38059 On Thursday 20 Feb 2003 5:31 pm, Thomas Beutin wrote: > On Thu, Feb 20, 2003 at 04:17:33PM +0100, Jose Antonio Martinez wrote: > > how can i limit the number of concurrent connections > > to the same database at a postgresql server (wich > > have several databases)? > > > > is there any easy way? > > command line: "-N x" > config file: "max_connections =3D x" > > It's all explained in the very good documentation. I think Jose wanted to restrict access such as: # this exists max_connections =3D 32 # these don't max_connections.db1 =3D 20 max_connections.db2 =3D 15 which I don't think you can do at the database level - it'll have to be=20 something you do at the application level I believe. --=20 Richard Huxton