Re: unnest

From: Kris Jurka <books(at)ejurka(dot)com>
To: John Hansen <john(at)geeknet(dot)com(dot)au>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: unnest
Date: 2004-11-05 19:59:34
Message-ID: Pine.BSO.4.56.0411051456490.28172@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, 5 Nov 2004, John Hansen wrote:

> Does anyone know how to check individual array elements for NULL values?
> PG_ARG_ISNULL() seems to return true if ANY array element is null; ex::
> array[1,2,3,null,4,5]

Arrays cannot store NULL elements, check your above statement and see that
the whole thing is NULL when you introduce a NULL element:

# select array[1,2,3,null,4,5];
array
-------

(1 row)

or

# select array[1,2,3,null,4,5] IS NULL;
?column?
----------
t
(1 row)

Kris Jurka

In response to

  • unnest at 2004-11-05 12:09:58 from John Hansen

Browse pgsql-hackers by date

  From Date Subject
Next Message Travis P 2004-11-05 20:19:51 Re: [PATCHES] CVS should die
Previous Message Gaetano Mendola 2004-11-05 19:38:51 Re: [PATCHES] CVS should die