Re: Explain Analyse never returns .. maybe a bug

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: David Gagnon <dgagnon(at)siunik(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Explain Analyse never returns .. maybe a bug
Date: 2005-06-29 13:47:42
Message-ID: 20050629134742.GA31682@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Jun 29, 2005 at 09:25:24AM -0400, David Gagnon wrote:
>
> I stop the following statement after 3 minutes....
>
> explain analyse select *
> From IC
> where IC.ICNUM NOT IN (select IRICNUM from IR WHERE IRSTATUT in
> (1, 2))

What does EXPLAIN without ANALYZE show? What are the table definitions
and what are the results of the following queries?

SELECT COUNT(*) FROM IC;
SELECT COUNT(*) FROM IR;
SELECT COUNT(*) FROM IR WHERE IRSTATUT IN (1, 2);
SELECT COUNT(DISTINCT IRICNUM) FROM IR WHERE IRSTATUT IN (1, 2);

Have you run VACUUM ANALYZE on the tables?

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Matt Miller 2005-06-29 14:06:32 CVS Build - No Doc
Previous Message Douglas McNaught 2005-06-29 13:45:18 Re: Explain Analyse never returns .. maybe a bug