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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: sean(dot)johnston(at)edgeintelligence(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #14614: Combination of UNION, EXCEPT and ORDER BY produces an error
Date: 2017-04-07 16:19:19
Message-ID: 10269.1491581959@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

sean(dot)johnston(at)edgeintelligence(dot)com writes:
> 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

I've pushed a fix for this. Thanks for the report!

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Noah Misch 2017-04-08 19:34:07 Re: BUG #14600: Passwords in user mappings leaked by psql \deu+ command
Previous Message sean.johnston 2017-04-07 11:58:08 BUG #14614: Combination of UNION, EXCEPT and ORDER BY produces an error