I have this table
id | present
------------
A | false
B | null
C | null
D | false
E | false
and perform this query
SELECT array_agg(id)
FROM above_table
WHERE present IS NULL
I expect this to return a single row of
B C
But instead I get an empty row.
If I do
SELECT array_agg(id)
FROM above_table
WHERE present = 'false'
I get a row of
A D E
Any thoughts on why IS NULL does not return the array?
boolean\d above_tablein psql?