Re: IDLE queries taking up space

From: Rodrigo Gonzalez <rjgonzale(at)estrads(dot)com(dot)ar>
To: Scott Ribe <scott_ribe(at)elevated-dev(dot)com>
Cc: JD Wong <jdmswong(at)gmail(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: IDLE queries taking up space
Date: 2011-08-30 18:11:49
Message-ID: 4E5D27E5.7060306@estrads.com.ar
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 08/30/2011 02:13 PM, Scott Ribe wrote:
> On Aug 30, 2011, at 10:03 AM, JD Wong wrote:
>
>> How can I set postgres to qutomatically close connections that have finished their queries and now sit idle?
AFAIK you can't, you should check |pg_terminate_backend function and see
if it is useful for you
|
> They haven't finished their queries. They've opened transactions, and then are sitting there doing nothing. In other words, this is a bug in your clients, and no, you really would not want PG automatically terminating connections mid-transaction just because it thought the client was taking too long to get to the next step.
<IDLE> in transaction is what you mean...
<IDLE> are clients connected but not running any query
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2011-08-30 18:17:34 Re: heavy swapping, not sure why
Previous Message Daniel Verite 2011-08-30 17:52:25 Re: SELECT Query on DB table preventing inserts