Array comparisons involving NULL

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Array comparisons involving NULL
Date: 2005-11-27 23:57:10
Message-ID: 20051127235710.GA66009@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Is there a built-in way to look for NULL array elements? I was
thinking of something like NULL IS DISTINCT FROM ALL (array expression)
but that doesn't work:

test=> SELECT NULL IS DISTINCT FROM ALL (ARRAY[1, 2, 3]);
ERROR: syntax error at or near "ALL" at character 30
LINE 1: SELECT NULL IS DISTINCT FROM ALL (ARRAY[1, 2, 3]);
^

--
Michael Fuhr

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2005-11-28 00:56:45 Re: Using multi-row technique with COPY
Previous Message Tom Lane 2005-11-27 22:45:31 Re: Using multi-row technique with COPY