Re: Execute query with EXCEPT, INTERSECT as anti-join, join?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Colin 't Hart" <colinthart(at)gmail(dot)com>
Cc: PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Execute query with EXCEPT, INTERSECT as anti-join, join?
Date: 2013-11-11 15:56:08
Message-ID: 32290.1384185368@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Colin 't Hart" <colinthart(at)gmail(dot)com> writes:
> Would these be difficult to build in?

Well, you'd have to worry about the ALL cases, as well as how to determine
whether you're actually getting a win (which would probably be rather
tough, really, as the choice would have to be made before we've fired up
any of the planner machinery that supports statistical estimation :-().
The code that plans this is in src/backend/optimizer/prep/prepunion.c.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2013-11-11 16:18:22 Re: Add %z support to elog/ereport?
Previous Message Andres Freund 2013-11-11 15:50:29 Add %z support to elog/ereport?