Functions can have special null handling anyway; witness Oracle's decode . PostgreSQL cannot fix this without rewriting the SQL spec to fix the ... ... <看更多>
The aggregate FILTER clause, introduced Postgres 9.4, seems a bit faster in ... all non-null values (the corner case of the first row is open for debate). ... <看更多>