pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Frank Joerdens <frank@joerdens.de>
To: Najm Hashmi <najm@mondo-live.com>
Cc: pgsql <pgsql-sql@postgresql.org>
Subject: Re: Max Conncection limit?
Date: Mon, 12 Mar 2001 18:46:26 +0100
Message-ID: <20010312184626.A3110@rakete.joerdens.de> (raw)
In-Reply-To: <3AAE4BC6.97FDD3AD@mondo-live.com>
References: <3AAE4BC6.97FDD3AD@mondo-live.com>

On Tue, Mar 13, 2001 at 11:33:10AM -0500, Najm Hashmi wrote:
> We  start a server and initiate 30 connections(with the libpq C interface)
> which are  stored in a stack to  use and  and to be reused.
> 
> After awhile I try to start another server that will also try to initiate 30
> connections, for each connection I then get a PQErrorMessage like that :
> "Sorry, too many connections"
> 
> if I do a ps -ax at that time I get a lot of /usr/bin/postgres 192.168.0.1
> user name passwd   idle
> 
> what I usually do is restart postgres but I wish I didnt have to do that...
> That is not an elegant solutuion any ways.
> What can I do? Thanks in advance. Regards

Have a look at the runtime-config.html in the admin section of the
manual:

MAX_CONNECTIONS (integer)

Determines how many concurrent connections the database server will
allow. The default is 32. There is also a compiled-in hard upper limit
on this value, which is typically 1024 (both numbers can be altered when
compiling the server). This parameter can only be set at server start. 

Regards, Frank



view thread (2+ messages)  latest in thread

Message-ID: <20010312184626.A3110@rakete.joerdens.de>
Permalink:  ../20010312184626.A3110@rakete.joerdens.de/
Also on:    postgresql.org/message-id/20010312184626.A3110@rakete.joerdens.de

 · 

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-sql@postgresql.org
  Cc: frank@joerdens.de, najm@mondo-live.com
  Subject: Re: Max Conncection limit?
  In-Reply-To: <20010312184626.A3110@rakete.joerdens.de>
  References: <3AAE4BC6.97FDD3AD@mondo-live.com> <20010312184626.A3110@rakete.joerdens.de>

* 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