Long (really long) queries and not sure how to diagnose

From: Tony Day <tonyd(at)panztel(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Long (really long) queries and not sure how to diagnose
Date: 2010-04-30 01:59:55
Message-ID: z2r22eb2d871004291859p2c97fbf1xde9b4e8b30473620@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hi Folks

We are running PostgreSQL 8.3.9 on Ubuntu 9.04 and yesterday the Postgresql
log reported about 15 SQL queries that had taken between 30,000 and 50,000
seconds (not ms) to execute.

All (except one) of the queries are single Inserts to the same relatively
simple table (no triggers or the like).

A colleague has suggested that it might be a deadlock but my understanding
is that Postgresql identifies deadlocks and terminates one of the queries.

I would appreciate any suggestions of where to look and (more importantly)
what to look for to figure this out.

Many thanks

Regards, Tony

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2010-04-30 05:01:47 Re: Long (really long) queries and not sure how to diagnose
Previous Message Tom Lane 2010-04-29 18:56:35 Re: EMPTYING A DATABASE