Re: Very slow queries - please help. - Mailing list pgsql-performance

From Tom Lane
Subject Re: Very slow queries - please help.
Date
Msg-id 13626.1132845335@sss.pgh.pa.us
Whole thread Raw
In response to Very slow queries - please help.  ("Bealach-na Bo" <bealach_na_bo@hotmail.com>)
List pgsql-performance
"Bealach-na Bo" <bealach_na_bo@hotmail.com> writes:
> I'm having great difficulties getting the performance I had hoped for
> from Postgresql 8.0. The typical query below takes ~20 minutes !!

You need to show us the table definition (including indexes) and the
EXPLAIN ANALYZE results for the query.

It seems likely that the NOT IN is the source of your problems,
but it's hard to be sure without EXPLAIN results.

            regards, tom lane

pgsql-performance by date:

Previous
From: Guillaume Smet
Date:
Subject: Re: Very slow queries - please help.
Next
From: Tom Lane
Date:
Subject: Re: xlog flush request error