Re: Unable to connect to PostgreSQL server

From: "Harald Armin Massa" <haraldarminmassa(at)gmail(dot)com>
To: "Martin Kuria" <martinkuria(at)hotmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Unable to connect to PostgreSQL server
Date: 2006-04-20 08:41:44
Message-ID: 7be3f35d0604200141t726ed91dt4d1f496fea10e39@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Martin,

please check out the server configuration documentation at

http://www.postgresql.org/docs/8.1/interactive/runtime-config-connection.html#RUNTIME-CONFIG-CONNECTION-SETTINGS

your configuration file of choice is postgresql.conf within the data
directory.

(btw: because the default is rather big, it is very likely that there is
some "not reusing connections" or "not closing connection when ready with
usage" bug in your application)

best wishes,

Harald

On 4/20/06, Martin Kuria <martinkuria(at)hotmail(dot)com> wrote:
>
> hi,
>
> I have a problem with my postgresql database it always gives me an error:
>
> Warning: pg_connect() [function.pg-connect]: Unable to connect to
> PostgreSQL
> server: FATAL: sorry, too many clients already in
> ~/includes/DbConnector.php
> on line 27
>
> Please advice how I can manage my database to handle enough connections
> please advice.
>
> +-----------------------------------------------------+
> | Martin W. Kuria (Mr.) martin(dot)kuria(at)unon(dot)org
> +----------------------------------------------------+
>
> _________________________________________________________________
> Express yourself instantly with MSN Messenger! Download today it's FREE!
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend
>

--
GHUM Harald Massa
persuadere et programmare
Harald Armin Massa
Reinsburgstraße 202b
70197 Stuttgart
0173/9409607
-
PostgreSQL - supported by a community that does not put you on hold

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jonas Henriksen 2006-04-20 08:48:26 Re: strange query filter problems
Previous Message Richard Huxton 2006-04-20 08:23:47 Re: tomcat postgresql connectivity error