Re: Nested Queries - Mailing list pgsql-novice

From Nabil Sayegh
Subject Re: Nested Queries
Date
Msg-id 3A65956A.91FF5262@sayegh.de
Whole thread Raw
In response to Nested Queries  (Luke Tudor - RSG <ltt@pml.ac.uk>)
List pgsql-novice
Luke Tudor - RSG wrote:
>
> Hi,
>
> I seem to have a small problem with my nested queries. Im sure its
> something so simple; If I run each query seperatly, I get the correct
> results and these results can be put into the parent query.
> However if the queries are run together as one nested query the results
> take
> hours and hours (more like days).

FAQ: 4.23) Why are my subqueries using IN so slow?

http://www.postgresql.org/docs/faq-english.html#4.23
(Use EXISTS instead of IN)

--
 Nabil Sayegh
 GPG-Key available at http://www.sayegh.de
 (see http://www.gnupg.org for details)

pgsql-novice by date:

Previous
From: John Poltorak
Date:
Subject: Re: What am I doing wrong?
Next
From: "rob"
Date:
Subject: Re: LIKE optimization