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 13:34:43
Message-ID: 15498.1384176883@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:
> I can't get Postgresql to execute a query with EXCEPT (or INTERSECT)
> as an anti-join (or join).

> Is this even possible?

No, and it probably won't ever be, since the semantics aren't the same.
EXCEPT/INTERSECT imply duplicate elimination.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2013-11-11 13:40:26 Re: streaming header too small
Previous Message Rohit Goyal 2013-11-11 12:12:13 Re: Fwd: Test of Algorithm || Indexing Scheme