Re: connection limit exceeded - Mailing list pgsql-admin

From Jonah H. Harris
Subject Re: connection limit exceeded
Date
Msg-id 36e682920711301203g7fdb1b81vc7d2bbb2e4018827@mail.gmail.com
Whole thread Raw
In response to connection limit exceeded  ("Tena Sakai" <tsakai@gallo.ucsf.edu>)
Responses Re: connection limit exceeded  (Gergely CZUCZY <phoemix@harmless.hu>)
List pgsql-admin
On Nov 30, 2007 2:55 PM, Tena Sakai <tsakai@gallo.ucsf.edu> wrote:
>  On my postgres 8.1.1, I get a response
>    psql: FATAL:  connection limit exceeded for non-superusers

>  1) Is this to do with max_connections setting in the postgres
>     configuration file?  (my setting is 100 (I think this is the
>     default).)

Yep.

>  2) how would I look at the "open/used" connections?

select * from pg_stat_activity;

>  3) should I try restarting postgres without changing the setting?

Has to be restarted for change to take effect.

>  4) what repercussion would there be if I increase this number to,
>     say, 200? (and would that be a good idea?)

A little overhead, nothing bad.

>  5) finally, what's the best fix?  (Do I need to go to pgpool?)

see pgbouncer

--
Jonah H. Harris, Sr. Software Architect | phone: 732.331.1324
EnterpriseDB Corporation                | fax: 732.331.1301
499 Thornall Street, 2nd Floor          | jonah.harris@enterprisedb.com
Edison, NJ 08837                        | http://www.enterprisedb.com/

pgsql-admin by date:

Previous
From: "Tena Sakai"
Date:
Subject: connection limit exceeded
Next
From: "Bill Willits"
Date:
Subject: Character Corruption / Encoding Question