Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Turbi-0006Jo-9x for pgsql-bugs@arkaria.postgresql.org; Mon, 14 Jan 2013 21:30:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Turbh-0002G9-5d for pgsql-bugs@arkaria.postgresql.org; Mon, 14 Jan 2013 21:30:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Turbg-0002FR-7V for pgsql-bugs@postgresql.org; Mon, 14 Jan 2013 21:30:12 +0000 Received: from tamriel.snowman.net ([72.66.115.51]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Turbd-0003P0-TV for pgsql-bugs@postgresql.org; Mon, 14 Jan 2013 21:30:11 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 7CA322228F; Mon, 14 Jan 2013 16:30:07 -0500 (EST) Date: Mon, 14 Jan 2013 16:30:07 -0500 From: Stephen Frost To: joe@tanga.com Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7808: unnest doesn't handle nulls in array of composite types correctly Message-ID: <20130114213007.GN16126@tamriel.snowman.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tCudArHln/pcmL9z" Content-Disposition: inline In-Reply-To: X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.2.0-4-amd64 (x86_64) X-Uptime: 16:28:15 up 81 days, 19:52, 8 users, load average: 0.12, 0.13, 0.14 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org --tCudArHln/pcmL9z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * 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: =3D> create type xt as (a integer); CREATE TYPE =3D> select * from unnest(array[null::xt]); ERROR: function returning set of rows cannot return null value =3D> select * from unnest(array[row(null)::xt]); a=20 --- =20 (1 row) Thanks, Stephen --tCudArHln/pcmL9z Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlD0eN8ACgkQrzgMPqB3kijtkQCfUZRoH1ITyc1KXilFbFYDHUnV kpsAnRp2cvB/yfbaAG42aEpf+IiyTd3z =MbZ0 -----END PGP SIGNATURE----- --tCudArHln/pcmL9z--