Re: Speed while runnning large transactions. - Mailing list pgsql-performance

From jesper@krogh.cc
Subject Re: Speed while runnning large transactions.
Date
Msg-id 92e7ed8327b674f57e75f6307bdcf305.squirrel@shrek.krogh.cc
Whole thread Raw
In response to Re: Speed while runnning large transactions.  (Grzegorz Jaśkiewicz <gryzman@gmail.com>)
Responses Re: Speed while runnning large transactions.
List pgsql-performance
> On Thu, Sep 24, 2009 at 9:27 AM, <jesper@krogh.cc> wrote:
>
>> Hi.
>>
>> I have a transaction running at the database for around 20 hours ..
>> still
>> isn't done. But during the last hours it has come to the point where it
>> really hurts performance of "other queries".
>>
>> Given pg_stat_activity output there seems to be no locks interfering but
>> the overall cpu-usage of all queries continue to rise. iowait numbers
>> are
>> also very low.
>>
>> What can I do to make the system handle other queries better?
>>
>> show us explain from the query(s).
> use select * from pg_stat_activity to find out the state query is in, and
> perhaps which one of the queries it really is.

I'm actively monitoring pg_stat_activity for potential problems but the
thread is spending most of the time in the application side. The
transaction is holding a large set of inserts/update and delete for the
DB.

--
Jesper



pgsql-performance by date:

Previous
From: jesper@krogh.cc
Date:
Subject: Re: Speed while runnning large transactions.
Next
From: Jared Beck
Date:
Subject: Re: Slow query after upgrade to 8.4