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

Поиск
Список
Период
Сортировка
От sean.johnston@edgeintelligence.com
Тема [BUGS] BUG #14614: Combination of UNION,EXCEPT and ORDER BY produces an error
Дата
Msg-id 20170407115808.25934.51866@wrigleys.postgresql.org
обсуждение исходный текст
Ответы Re: [BUGS] BUG #14614: Combination of UNION, EXCEPT and ORDER BY produces an error  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
The following bug has been logged on the website:

Bug reference:      14614
Logged by:          Sean Johnston
Email address:      sean.johnston@edgeintelligence.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)



--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Dave Page
Дата:
Сообщение: Re: [BUGS] BUG #14611: Black screen when launching pgadmin4
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [BUGS] BUG #14614: Combination of UNION, EXCEPT and ORDER BY produces an error