Re: Closing inactive connections OR user connections limits

From: Medi Montaseri <medi(dot)montaseri(at)intransa(dot)com>
To: Francisco Reyes <lists(at)natserv(dot)com>
Cc: pgsql General List <pgsql-general(at)postgresql(dot)org>
Subject: Re: Closing inactive connections OR user connections limits
Date: 2002-11-20 18:35:26
Message-ID: 3DDBD5EE.4040804@intransa.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

In 7.2, you can run the vacuum in parallel with other database activities...
perhaps there is a way of reading from one of the pg_activity* or stats to
learn which connection is execessively idle and then go after it....

Francisco Reyes wrote:

>I have read on the archives some type of per user limit that will be
>available in 7.3, but what do I do in the meantime with a 7.2.X.
>
>Basically I came this morning to find a developer had a bug in a program
>and used up all the connections. Could I have safely killed those
>connections?
>
>I had to do a "pgsql stop -m fast" to free the connections, but I had some
>pending operations which now I will have to redo, not to mention the
>vacuum full failed last night because of the open connections.
>
>In all the archives I read there seems to be a negative view on timeouts.
>I think that after 4 hours of no activity, at least in my case, I
>definitely want those connections dead.
>
>In particular this is a reporting server and I delete/reload millions of
>records daily so anything which stops the vacuum full at night is a big
>problem for me.
>
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 3: if posting/reading through Usenet, please send an appropriate
>subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
>message can get through to the mailing list cleanly
>
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Francisco Reyes 2002-11-20 18:36:14 Re: Closing inactive connections OR user connections limits
Previous Message Williams, Travis L, NPONS 2002-11-20 18:10:04 Re: Grant question..

Browse pgsql-sql by date

  From Date Subject
Next Message Francisco Reyes 2002-11-20 18:36:14 Re: Closing inactive connections OR user connections limits
Previous Message Hugh Esco 2002-11-20 18:29:28 Re: Problems invoking psql. Help please.