Markus Bertheau wrote:
why does SELECT ARRAY(SELECT 1 WHERE FALSE) return NULL instead of ARRAY[] resp. '{}'?
Why would you expect an empty array instead of a NULL? NULL is what you'd get for other data types -- for example:
regression=# SELECT (SELECT 1 WHERE FALSE) IS NULL; ?column? ---------- t (1 row) Joe ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq