Re: how can i bugfix "idle in transaction" lockups ?

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: Jonathan Vanasco <postgres(at)2xlp(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: how can i bugfix "idle in transaction" lockups ?
Date: 2010-12-03 20:35:26
Message-ID: AANLkTinRsMndHXbczP5oUiRgUF_EXi+mhgK+4kqEoMAS@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Dec 3, 2010 at 12:31 AM, Jonathan Vanasco <postgres(at)2xlp(dot)com> wrote:
> begin w/o commit or rollback?
>
> and thanks. you've been very helpful!
>
> On Nov 30, 2010, at 2:21 PM, Merlin Moncure wrote:
>
>> Begin w/o commit is a grave application error and you should
>> consider reworking your code base so that it doesn't happen (ever).

meaning, you opened a transaction (with 'begin') and didn't close it
with 'commit' (or 'start/end' etc). You opened a transaction but
didn't close it. Don't ever do this, and don't ever leave a
transaction open waiting on indeterminate events, like user input.

merlin

In response to

Browse pgsql-general by date

  From Date Subject
Next Message James B. Byrne 2010-12-03 21:04:56 Re: PG84 and SELinux
Previous Message manfred.braun 2010-12-03 20:22:12 Re: Looking for auto starting procedures