Fwd: weird behavior of ORDER BY - Mailing list pgsql-bugs

From zoolus .
Subject Fwd: weird behavior of ORDER BY
Date
Msg-id CAHtc1SNjd15c-QzG=NqWPkceSyyv0O-YH0YEU6uzJmT0-ZhGJw@mail.gmail.com
Whole thread Raw
Responses Re: weird behavior of ORDER BY
List pgsql-bugs
pgsql-bugs@postgresql.org


Hello, friends!

This statement returns nothing:

WITH x AS (VALUES (1))
SELECT * FROM x
ORDER BY unnest(NULL :: INT [])
;

--0 rows retrieved
--PostgreSQL 9.6.1, compiled by Visual C++ build 1800, 64-bit
--PostgreSQL 10.3, compiled by Visual C++ build 1800, 64-bit

I think any "ORDER BY" construct can't filter result set.


pgsql-bugs by date:

Previous
From: 德哥
Date:
Subject: Re:Re: BUG #15173: why small gin_fuzzy_search_limit search moreblocks than big gin_fuzzy_search_limit ?
Next
From: Kyotaro HORIGUCHI
Date:
Subject: Re: Standby corruption after master is restarted