pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris Hoover <revoohc@gmail.com>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Terminating Idle Connections
Date: Tue, 9 May 2006 19:29:54 -0400
Message-ID: <1d219a6f0605091629g5651582cxe7e5eeddcc75f765@mail.gmail.com> (raw)

Is there a way inside of Postgresql to automatically terminate idle
connections?  I would like to terminate any connection to my database that
has not has any activity for a specified period of time.  I would like to be
able to do this despite the state of the connection (the majority of my
truly idle connections show "idle in transaction" in the process table).  I
would love for the db engine to do this, but if it can't, is there an easy
way to do this outside the database with some sort of script?

If this is not possible, would there be a possibility of it being added to a
future version?

thanks,

Chris

RH 4.0 AS
PostgreSQL 8.1.3

view thread (3+ messages)  latest in thread

Message-ID: <1d219a6f0605091629g5651582cxe7e5eeddcc75f765@mail.gmail.com>
Permalink:  ../1d219a6f0605091629g5651582cxe7e5eeddcc75f765@mail.gmail.com/
Also on:    postgresql.org/message-id/1d219a6f0605091629g5651582cxe7e5eeddcc75f765@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: revoohc@gmail.com
  Subject: Re: Terminating Idle Connections
  In-Reply-To: <1d219a6f0605091629g5651582cxe7e5eeddcc75f765@mail.gmail.com>
  References: <1d219a6f0605091629g5651582cxe7e5eeddcc75f765@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox