Fwd: weird behavior of ORDER BY

From: "zoolus (dot)" <700671(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Fwd: weird behavior of ORDER BY
Date: 2018-04-26 09:29:50
Message-ID: CAHtc1SNjd15c-QzG=NqWPkceSyyv0O-YH0YEU6uzJmT0-ZhGJw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

pgsql-bugs(at)postgresql(dot)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.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Kyotaro HORIGUCHI 2018-04-26 10:53:04 Re: Standby corruption after master is restarted
Previous Message 德哥 2018-04-26 05:45:20 Re:Re: BUG #15173: why small gin_fuzzy_search_limit search more blocks than big gin_fuzzy_search_limit ?