Re: BUG #7808: unnest doesn't handle nulls in array of composite types correctly

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: joe(at)tanga(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #7808: unnest doesn't handle nulls in array of composite types correctly
Date: 2013-01-14 21:30:07
Message-ID: 20130114213007.GN16126@tamriel.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

* joe(at)tanga(dot)com (joe(at)tanga(dot)com) wrote:
> My goal is to remove nulls from an array. The array could be an array of a
> composite type.

A much simpler case is:

=> create type xt as (a integer);
CREATE TYPE
=> select * from unnest(array[null::xt]);
ERROR: function returning set of rows cannot return null value
=> select * from unnest(array[row(null)::xt]);
a
---

(1 row)

Thanks,

Stephen

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message John R Pierce 2013-01-14 22:09:38 Re: BUG #7806: installation failed for postgis on Windows
Previous Message joe 2013-01-14 21:11:08 BUG #7808: unnest doesn't handle nulls in array of composite types correctly