Re: Query is taking 5 HOURS to Complete on 8.1 version - Mailing list pgsql-performance

From Richard Huxton
Subject Re: Query is taking 5 HOURS to Complete on 8.1 version
Date
Msg-id 468AB180.9090503@archonet.com
Whole thread Raw
In response to Re: Query is taking 5 HOURS to Complete on 8.1 version  (smiley2211 <smiley2211@yahoo.com>)
List pgsql-performance
smiley2211 wrote:
> TOP shows CPU at 100% while executed the EXPLAIN ANALYZE...what does this
> mean?
>
> 17519 postgres  25   0 3470m  43m  39m R  100  0.3  28:50.53 postmaster

It means it's busy. Probably sorting/eliminating duplicates (see my
answer posted just before this one).

Keep an eye on "vmstat" too and see if there's much disk activity.

--
   Richard Huxton
   Archonet Ltd

pgsql-performance by date:

Previous
From: Richard Huxton
Date:
Subject: Re: Query is taking 5 HOURS to Complete on 8.1 version
Next
From: Gregory Stark
Date:
Subject: Re: Filesystem Direct I/O and WAL sync option