Re: Proposed patch for qual pushdown into UNION/INTERSECT

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
Cc: pgsql-patches(at)postgreSQL(dot)org
Subject: Re: Proposed patch for qual pushdown into UNION/INTERSECT
Date: 2002-08-29 16:02:59
Message-ID: 8152.1030636979@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> writes:
> Actually, hadn't we figured that pushing to the left side of except was
> safe?

It's not safe for EXCEPT ALL (you might get the wrong number of
duplicates out), and I'm not entirely convinced about EXCEPT.

Also, the point of pushing down is to speed up the subqueries, so I'm
not sure there's much win if you can't push to both sides.

All in all I'd just as soon leave the EXCEPT case alone.

regards, tom lane

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Robert Treat 2002-08-29 16:09:58 Re: [HACKERS] Proposed GUC Variable
Previous Message John Gray 2002-08-29 15:51:10 Re: Visibility regression test