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

From Jim Nasby
Subject Re: Idle In Transaction Session Timeout, revived
Date
Msg-id 56B26612.7010404@BlueTreble.com
Whole thread Raw
In response to Re: Idle In Transaction Session Timeout, revived  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: Idle In Transaction Session Timeout, revived
List pgsql-hackers
On 2/3/16 2:30 PM, Robert Haas wrote:
> On Sun, Jan 31, 2016 at 8:33 AM, Vik Fearing <vik@2ndquadrant.fr> wrote:
>> Attached is a rebased and revised version of my
>> idle_in_transaction_session_timeout patch from last year.
>>
>> This version does not suffer the problems the old one did where it would
>> jump out of SSL code thanks to Andres' patch in commit
>> 4f85fde8eb860f263384fffdca660e16e77c7f76.
>>
>> The basic idea is if a session remains idle in a transaction for longer
>> than the configured time, that connection will be dropped thus releasing
>> the connection slot and any locks that may have been held by the broken
>> client.
>>
>> Added to the March commitfest.
>
> +1 for doing something like this.  Great idea!

Wouldn't it be more sensible to just roll the transaction back and not 
disconnect?
-- 
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Idle In Transaction Session Timeout, revived
Next
From: Jim Nasby
Date:
Subject: Re: PostgreSQL Audit Extension