pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: joe@tanga.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7808: unnest doesn't handle nulls in array of composite types correctly
Date: Mon, 14 Jan 2013 16:30:07 -0500
Message-ID: <20130114213007.GN16126@tamriel.snowman.net> (raw)
In-Reply-To: <E1TurJE-0006Es-TK@wrigleys.postgresql.org>
References: <E1TurJE-0006Es-TK@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

* joe@tanga.com (joe@tanga.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

Attachments:

  signature.asc (application/pgp-signature, 197B) download

view thread (8+ messages)  latest in thread

Message-ID: <20130114213007.GN16126@tamriel.snowman.net>
Permalink:  ../20130114213007.GN16126@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20130114213007.GN16126@tamriel.snowman.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: sfrost@snowman.net, joe@tanga.com
  Subject: Re: BUG #7808: unnest doesn't handle nulls in array of composite types correctly
  In-Reply-To: <20130114213007.GN16126@tamriel.snowman.net>
  References: <E1TurJE-0006Es-TK@wrigleys.postgresql.org> <20130114213007.GN16126@tamriel.snowman.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox