Re: Intersection or zero-column queries

David G. Johnston <david.g.johnston@gmail.com>

From: "David G. Johnston" <david.g.johnston@gmail.com>
To: Victor Yegorov <vyegorov@gmail.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Date: 2017-12-22T00:13:07Z
Lists: pgsql-general
On Thu, Dec 21, 2017 at 5:08 PM, Victor Yegorov <vyegorov@gmail.com> wrote:

>
> Also, intersection should not return more rows, than there're in the
> sub-relations.
>
>
Doh!, I think I got UNION into my mind somewhere in that...

David J.

Commits

  1. Disallow UNION/INTERSECT/EXCEPT over no columns.

  2. Fix UNION/INTERSECT/EXCEPT over no columns.