Re: query hangs - Mailing list pgsql-performance

From Scott Marlowe
Subject Re: query hangs
Date
Msg-id AANLkTikyrWM2Rzza8FOopc0-WR10YiiVJB3s7_pfCjdA@mail.gmail.com
Whole thread Raw
In response to Re: query hangs  (AI Rumman <rummandba@gmail.com>)
List pgsql-performance
On Thu, Jun 10, 2010 at 5:36 AM, AI Rumman <rummandba@gmail.com> wrote:
> I found only AccessShareLock in pg_locks during the query.
> And the query does not return data though I have been waiting for 10 mins.
>
> Do you have any idea ?

I have queries that run for hours.  As long as it's using CPU / IO
(use top in unix, whatever in windows to see) it's not hung, it's just
taking longer than you expected.  Those are not the same thing at all.

Seeing as how you're joining three tables with millions of rows with
no where clause, it's gonna take some to complete.  Go grab a
sandwich, etc, come back when it's done.

pgsql-performance by date:

Previous
From: MUHAMMAD ASIF
Date:
Subject: RE: [PERFORM] Dbt2 with postgres issues on CentOS-5.3‏
Next
From: Merlin Moncure
Date:
Subject: Re: Fwd: Dead lock