Re: Idle In Transaction Session Timeout, revived - Mailing list pgsql-hackers

From David Steele
Subject Re: Idle In Transaction Session Timeout, revived
Date
Msg-id 56B279B8.3010601@pgmasters.net
Whole thread Raw
In response to Re: Idle In Transaction Session Timeout, revived  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Idle In Transaction Session Timeout, revived
List pgsql-hackers
On 2/3/16 4:25 PM, Tom Lane wrote:
> Robert Haas <robertmhaas@gmail.com> writes:
>> On Wed, Feb 3, 2016 at 3:41 PM, Jim Nasby <Jim.Nasby@bluetreble.com> wrote:
>>> Wouldn't it be more sensible to just roll the transaction back and not
>>> disconnect?
>
> I'm not sure how messy this would be in practice.  But if we think that
> killing the whole session is not desirable but something we're doing for
> expediency, then it would be worth looking into that approach.

I think killing the session is a perfectly sensible thing to do in this
case.  Everything meaningful that was done in the session will be rolled
back - no need to waste resources keeping the connection open.

--
-David
david@pgmasters.net


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Idle In Transaction Session Timeout, revived
Next
From: Jim Nasby
Date:
Subject: Re: Idle In Transaction Session Timeout, revived