Skip site navigation (1) Skip section navigation (2)

Re: connection limit exceeded

From: "Tena Sakai" <tsakai(at)gallo(dot)ucsf(dot)edu>
To: "Jonah H(dot) Harris" <jonah(dot)harris(at)gmail(dot)com>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: connection limit exceeded
Date: 2007-11-30 20:34:37
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
Hi Jonah,

Many thanks!

>>  2) how would I look at the "open/used" connections?
> select * from pg_stat_activity;

This is a wonderful view!  How would I properly terminate
these (of course there are 99 of them!) these query process?
Should I do this from unix or is there any postgres tool I
can use?

Thank you.


Tena Sakai

-----Original Message-----
From: Jonah H. Harris [mailto:jonah(dot)harris(at)gmail(dot)com]
Sent: Fri 11/30/2007 12:03 PM
To: Tena Sakai
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: [ADMIN] connection limit exceeded
On Nov 30, 2007 2:55 PM, Tena Sakai <tsakai(at)gallo(dot)ucsf(dot)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).)


>  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(dot)harris(at)enterprisedb(dot)com
Edison, NJ 08837                        |

In response to


pgsql-admin by date

Next:From: Gergely CZUCZYDate: 2007-11-30 20:38:35
Subject: Re: Enhancement request
Previous:From: Joshua D. DrakeDate: 2007-11-30 20:33:41
Subject: Re: Enhancement request

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group