Re: "NOT IN" predicate hangs result - Mailing list pgsql-general

From Andrew Sullivan
Subject Re: "NOT IN" predicate hangs result
Date
Msg-id 20020411141938.K19037@mail.libertyrms.com
Whole thread Raw
In response to Re: "NOT IN" predicate hangs result  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Responses Re: "NOT IN" predicate hangs result
List pgsql-general
On Thu, Apr 11, 2002 at 09:42:59AM -0700, Stephan Szabo wrote:

> It probably would have finished eventually, but right now NOT IN has
> serious performance problems.  I believe that it's running the inner
> select once for every row in user_profile or something to that effect.
> And it's a known deficiency, it's even got its own FAQ question.

Just out of curiosity, is there a fundamental reason the optimiser
doesn't just rewrite NOT IN queries to use the NOT EXISTS form, or is
it simply that, since there's a well-known workaround, nobody's
bothered to improve this area?

A

--
----
Andrew Sullivan                               87 Mowat Avenue
Liberty RMS                           Toronto, Ontario Canada
<andrew@libertyrms.info>                              M6K 3E3
                                         +1 416 646 3304 x110


pgsql-general by date:

Previous
From: "Johann Zuschlag"
Date:
Subject: Re: Why does this not work?
Next
From: "David Siebert"
Date:
Subject: Re: Critical performance problems on large databases