Re: IN vs EXISTS equivalence - Mailing list pgsql-hackers

From Tom Lane
Subject Re: IN vs EXISTS equivalence
Date
Msg-id 24375.1218505545@sss.pgh.pa.us
Whole thread Raw
In response to Re: IN vs EXISTS equivalence  (Decibel! <decibel@decibel.org>)
List pgsql-hackers
Decibel! <decibel@decibel.org> writes:
> On Aug 8, 2008, at 3:23 PM, Tom Lane wrote:
>> * has no set operations (UNION etc), grouping, set-returning functions
>> in the SELECT list, LIMIT, or a few other funny cases

> Couldn't union/union all be treated as
> EXISTS(a)
> OR EXISTS(b)

Perhaps, but that would end up defeating the optimization anyway,
because as soon as the EXISTS is underneath an OR, it's no longer
representing a potential join clause.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Casey Duncan
Date:
Subject: Re: Mini improvement: statement_cost_limit
Next
From: Bruce Momjian
Date:
Subject: Re: Plans for 8.4