On Fri, Nov 11, 2005 at 11:05:45AM +0100, Matteo Beccati wrote:
> Hi,
> 
> I've noticed that sometimes EXPLAIN ANALYZE is much slower than the 
> plain query. After investigating I found that it happens when using MIN 
> or MAX aggregates.
> 
> It seems that the plan outputted is not the optimized one (available 
> since 8.1) that is really used when running the plain query.

It may also be that the overhead of calling gettimeofday() several
times per tuple is blowing the time out. What platform is this?

Hope this helps,
-- 
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Attachment: pgpJysqyLCBBi.pgp
Description: PGP signature

Reply via email to