Re: IDLE queries taking up space

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: JD Wong <jdmswong(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: IDLE queries taking up space
Date: 2011-08-30 19:04:02
Message-ID: CAHyXU0xoCd0Tkd6mz40NTAeHDhkyRovvGP5hDbh_R90qG-v6MA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Aug 30, 2011 at 11:03 AM, JD Wong <jdmswong(at)gmail(dot)com> wrote:
> Hi,
> When I run select datname, procpid, current_query from pg_stat_activity; I
> get 26 rows of <IDLE> queries.  How can I set postgres to qutomatically
> close connections that have finished their queries and now sit idle?

you don't. this should be managed from the client, or you can use a
connection pool.

merlin

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2011-08-30 19:18:55 Re: heavy swapping, not sure why
Previous Message Merlin Moncure 2011-08-30 18:17:34 Re: heavy swapping, not sure why