Re: Performance bug in prepared statement binding in 9.2?

From: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
To: Andres Freund <andres(at)2ndquadrant(dot)com>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, Josh Berkus <josh(at)agliodbs(dot)com>, Amit Kapila <amit(dot)kapila(at)huawei(dot)com>, "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Performance bug in prepared statement binding in 9.2?
Date: 2013-09-25 06:38:03
Message-ID: CAMkU=1z0fEKRb4=weoeCFLkEuJqL-hmvtniVPWn+pRT8bUKMcA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Wed, Sep 11, 2013 at 2:10 PM, Andres Freund <andres(at)2ndquadrant(dot)com>wrote:

> On 2013-09-11 15:06:23 -0400, Andrew Dunstan wrote:
> >
> > One thing that this made me wonder is why we don't have
> transaction_timeout,
> > or maybe transaction_idle_timeout.
>
> Because it's harder than it sounds, at least if you want to support
> idle-in-transactions. Note that we do not support pg_cancel_backend()
> for those yet...
>

So we are left with pg_terminate_backend in a cron job. That mostly seems
to work, because usually apps that abandon connections in the
idle-in-transaction state will never check back on them anyway, but cancel
would be nicer.

>
> Also, I think it might lead to papering over actual issues with
> applications leaving transactions open. I don't really see a valid
> reason for an application needing cancelling of long idle transactions.
>

Some of us make a living, at least partially, by papering over issues with
3rd party applications that we have no control over!

Cheers,

Jeff

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Jeff Janes 2013-09-25 06:48:42 Re: Planner performance extremely affected by an hanging transaction (20-30 times)?
Previous Message didier 2013-09-25 04:49:25 Re: Planner performance extremely affected by an hanging transaction (20-30 times)?