Re: transaction idle timeout in 7.4.5 and 8.0.0beta2 - Mailing list pgsql-hackers

From Jeroen T. Vermeulen
Subject Re: transaction idle timeout in 7.4.5 and 8.0.0beta2
Date
Msg-id 20040918184601.GE78945@xs4all.nl
Whole thread Raw
In response to Re: transaction idle timeout in 7.4.5 and 8.0.0beta2  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: transaction idle timeout in 7.4.5 and 8.0.0beta2  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Sat, Sep 18, 2004 at 02:32:32PM -0400, Tom Lane wrote:
> No, because of the reporting delay.  I would recommend waiting for the
> backend's row in pg_stat_activity to disappear entirely.  Under normal
> circumstances that should occur quickly.  If there's a communications
> problem, it might take awhile to detect connection loss ... but if
> there's a communications problem, you probably aren't going to be able
> to open a new connection, either.

Unfortunately, a communications problem is exactly the kind of scenario
we were talking about in the first place!  Might be a misguided firewall,
for instance.  (In which case we'd want the TCP connection to time out
quickly on the server as well to avoid piling up dead backends, but that's
another matter).

BTW is there really no other way to see if a query (for the same user who's
looking) is still executing?  It'd be really helpful if the check could be
done from the same client process that lost the connection in the first
place.


Jeroen



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: transaction idle timeout in 7.4.5 and 8.0.0beta2
Next
From: "Jeroen T. Vermeulen"
Date:
Subject: Re: transaction idle timeout in 7.4.5 and 8.0.0beta2