Re: [PERFORM] Strange performance degradation

From: Denis Lussier <denis(dot)lussier(at)enterprisedb(dot)com>
To: Matthew Wakeling <matthew(at)flymine(dot)org>, Lorenzo Allegrucci <lorenzo(dot)allegrucci(at)forinicom(dot)it>, pgsql-performance(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org
Subject: Re: [PERFORM] Strange performance degradation
Date: 2009-11-24 23:47:16
Message-ID: ba8cf61c0911241547q3657ef33g24944ebd93e179e4@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-performance

Bouncing the app will roll back the transactions. If there were any
pending updates/inserts, wouldn't he be able to see them in one of the
system tables...

On 11/24/09, Matthew Wakeling <matthew(at)flymine(dot)org> wrote:
> On Tue, 24 Nov 2009, Denis Lussier wrote:
>> IMHO the client application is already confused and it's in Prod.
>> Shouldn't he perhaps terminate/abort the IDLE connections in Prod and
>> work on correcting the problem so it doesn't occur in Dev/Test??
>
> The problem is, the connection isn't just IDLE - it is idle IN
> TRANSACTION. This means that there is quite possibly some data that has
> been modified in that transaction. If you kill the backend, then that will
> automatically roll back the transaction, and all of those changes would be
> lost.
>
> I agree that correcting the problem in dev/test is the priority, but I
> would be very cautious about killing transactions in production. You don't
> know what data is uncommitted. The safest thing to do may be to bounce the
> application, rather than Postgres.
>
> Matthew
>
> --
> All of this sounds mildly turgid and messy and confusing... but what the
> heck. That's what programming's all about, really
> -- Computer Science Lecturer
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2009-11-24 23:51:03 Re: Re: I need help creating a composite type with some sort of constraints.
Previous Message silly8888 2009-11-24 23:35:56 Re: Partitioning table and dynamic SQL in trigger

Browse pgsql-performance by date

  From Date Subject
Next Message Robert Schnabel 2009-11-24 23:49:31 Re: RAID card recommendation
Previous Message Jochen Erwied 2009-11-24 23:02:40 Re: RAID card recommendation