Re: Killing inactive connections

From: Andrew Gould <andrewgould(at)yahoo(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Postgres Mailing List <pgsql-general(at)postgresql(dot)org>
Subject: Re: Killing inactive connections
Date: 2001-08-16 22:28:47
Message-ID: 20010816222847.1752.qmail@web13405.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hhmmmm. I see what you mean. Perhaps an office
policy regarding password protected screen savers or
screen locks would meet the regulation's intent. (It
would also be simple and cheap.)

Thanks, Tom.

Andrew Gould

--- Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Andrew Gould <andrewgould(at)yahoo(dot)com> writes:
> > Is there a way in PostgreSQL to track inactivity
> and
> > close inactive connections after a specified
> length of
> > time?
>
> Not at present. This seems to me to be something
> that has to be
> implemented on the client side, anyway. We could
> conceivably implement
> an idle-timeout in the backend, but what it would be
> measuring is time
> between SQL requests, which proves little about
> whether there is someone
> awake at the other end. Two counterexamples:
>
> 1. User starts a long-running SQL script and walks
> away. Backend will
> not time out, but you're not meeting the regulation.
>
> 2. User is intensely interacting with his app, but
> is doing something
> that does not trigger SQL requests. Backend times
> out and drops
> connection. At the very least this annoys the user;
> quite possibly
> it causes him to lose work, depending on how robust
> his app is about
> reconnecting.
>
> So I don't think that this is an issue for Postgres
> to solve. If Access
> can't do it, maybe you need a different frontend app
> that can.
>
> regards, tom lane

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-08-16 22:32:27 Re: Killing inactive connections
Previous Message Hugh Mandeville 2001-08-16 22:12:05 Re: The mysterious BLOB and bytea data types