pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Thomas Beutin <tyrone@laokoon.IN-Berlin.DE>
To: Jose Antonio Martinez <lfbbes@yahoo.es>
Cc: pgsql-general@postgresql.org
Subject: Re: max connections
Date: Fri, 21 Feb 2003 10:50:17 +0000
Message-ID: <200302211050.18447.dev@archonet.com> (raw)
In-Reply-To: <20030220183107.A16069@laokoon.bug.net>
References: <20030220151733.83070.qmail@web21104.mail.yahoo.com>
	<20030220183107.A16069@laokoon.bug.net>

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 = x"
>
> It's all explained in the very good documentation.

I think Jose wanted to restrict access such as:

# this exists
max_connections = 32
# these don't
max_connections.db1 = 20
max_connections.db2 = 15

which I don't think you can do at the database level - it'll have to be 
something you do at the application level I believe.

-- 
  Richard Huxton



view thread (22+ messages)  latest in thread

Message-ID: <200302211050.18447.dev@archonet.com>
Permalink:  ../200302211050.18447.dev@archonet.com/
Also on:    postgresql.org/message-id/200302211050.18447.dev@archonet.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: dev@archonet.com, tyrone@laokoon.IN-Berlin.DE, lfbbes@yahoo.es
  Subject: Re: max connections
  In-Reply-To: <200302211050.18447.dev@archonet.com>
  References: <20030220151733.83070.qmail@web21104.mail.yahoo.com> <20030220183107.A16069@laokoon.bug.net> <200302211050.18447.dev@archonet.com>

* 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