Re: Request: pg_cancel_backend variant that handles 'idle in transaction' sessions

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Request: pg_cancel_backend variant that handles 'idle in transaction' sessions
Date: 2015-11-06 05:42:56
Message-ID: CA+TgmobSNtz4rree7j=GU-ywEPO9LiHB-+QzPWywrOad-ccWCw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Nov 4, 2015 at 5:10 PM, Josh Berkus <josh(at)agliodbs(dot)com> wrote:
> On 11/04/2015 01:55 PM, Stephen Frost wrote:
>> * Joe Conway (mail(at)joeconway(dot)com) wrote:
>>> On 11/04/2015 01:24 PM, Alvaro Herrera wrote:
>>>> I agree with Pavel. Having a transaction timeout just does not make any
>>>> sense. I can see absolutely no use for it. An idle-in-transaction
>>>> timeout, on the other hand, is very useful.
>>>
>>> +1 -- agreed
>>
>> I'm not sure of that. I can certainly see a use for transaction
>> timeouts- after all, they hold locks and can be very disruptive in the
>> long run. Further, there are cases where a transaction is normally very
>> fast and in a corner case it becomes extremely slow and disruptive to
>> the rest of the system. In those cases, having a timeout for it is
>> valuable.
>
> I could see a use for both, having written scripts which do both.

+1.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Craig Ringer 2015-11-06 05:43:33 Re: Patch: Implement failover on libpq connect level.
Previous Message Robert Haas 2015-11-06 05:36:52 Re: pgbench gaussian/exponential docs improvements