Content-Length: 14523 | pFad | https://postgr.es/m/20170407115808.25934.51866@wrigleys.postgresql.org

PostgreSQL: BUG #14614: Combination of UNION, EXCEPT and ORDER BY produces an error

BUG #14614: Combination of UNION, EXCEPT and ORDER BY produces an error

From: sean(dot)johnston(at)edgeintelligence(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #14614: Combination of UNION, EXCEPT and ORDER BY produces an error
Date: 2017-04-07 11:58:08
Message-ID: 20170407115808.25934.51866@wrigleys.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 14614
Logged by: Sean Johnston
Email address: sean(dot)johnston(at)edgeintelligence(dot)com
PostgreSQL version: 9.6.2
Operating system: Debian 7.11
Description:

STATEMENT: ( ( select 1,2,3 ) union ( select 4,5,6 order by 1,2 ) order by
1,2 ) except ( select 4,5,6 ) order by 1,2;
ERROR: no relation entry for relid 0

Removing the middle order by works:

STATEMENT: ( ( select 1,2,3 ) union ( select 4,5,6 order by 1,2 ) ) except
( select 4,5,6 ) order by 1,2;
?column? | ?column? | ?column?
----------+----------+----------
1 | 2 | 3
(1 row)

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2017-04-07 16:19:19 Re: BUG #14614: Combination of UNION, EXCEPT and ORDER BY produces an error
Previous Message Dave Page 2017-04-07 08:04:08 Re: BUG #14611: Black screen when launching pgadmin4








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://postgr.es/m/20170407115808.25934.51866@wrigleys.postgresql.org

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy