From: | Merlin Moncure <mmoncure(at)gmail(dot)com> |
---|---|
To: | Bruce Momjian <bruce(at)momjian(dot)us> |
Cc: | Thiago Godoi <thiagogodoi10(at)gmail(dot)com>, pgsql-performance(at)postgresql(dot)org |
Subject: | Re: Intersect/Union X AND/OR |
Date: | 2011-12-02 20:52:34 |
Message-ID: | CAHyXU0z3VFvAj99zD6BUOhRSq07fHko33vGLaL96+3iR_7YdOw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
On Fri, Dec 2, 2011 at 1:49 PM, Bruce Momjian <bruce(at)momjian(dot)us> wrote:
> Thiago Godoi wrote:
>> Hi all,
>>
>> I found this presentation from B. Momjian:
>>
>> http://momjian.us/main/writings/pgsql/performance.pdf
>>
>> I'm interested in what he said about " Intersect/Union X AND/OR " , Can I
>> find a transcription or a video of this presentation? Can anyone explain it
>> to me?
>
> Well, there is a recording of the webcast on the EnterpriseDB web site,
> but I am afraid they only allow viewing of 3+ hour webcasts by
> EnterpriseDB customers.
>
> The idea is that a query that uses an OR can be rewritten as two SELECTs
> with a UNION between them. I have seen rare cases where this is a win,
> so I mentioned it in that talk. Intersection is similarly possible for
> AND in WHERE clauses.
I've seen this as well. Also boolean set EXCEPT is useful as well in
the occasional oddball case.
merlin
From | Date | Subject | |
---|---|---|---|
Next Message | Ernesto Quiñones | 2011-12-03 03:32:01 | Question about VACUUM |
Previous Message | Bruce Momjian | 2011-12-02 19:49:42 | Re: Intersect/Union X AND/OR |