Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 122E89FB77A for ; Tue, 27 Mar 2007 12:08:34 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 43734-03 for ; Tue, 27 Mar 2007 12:08:20 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail.metronet.co.uk (mail.metronet.co.uk [213.162.97.75]) by postgresql.org (Postfix) with ESMTP id 6813E9FB768 for ; Tue, 27 Mar 2007 12:08:21 -0300 (ADT) Received: from server3.office.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id 93F7C74157; Tue, 27 Mar 2007 15:59:19 +0100 (BST) Received: from [192.168.1.36] (dell36.office.archonet.com [192.168.1.36]) by server3.office.archonet.com (Postfix) with ESMTP id 54D1B274072; Tue, 27 Mar 2007 15:59:19 +0100 (BST) Message-ID: <46093147.6000209@archonet.com> Date: Tue, 27 Mar 2007 15:59:19 +0100 From: Richard Huxton User-Agent: IceDove 1.5.0.9 (X11/20061220) MIME-Version: 1.0 To: Tom Lane Cc: Sabin Coanda , pgsql-sql@postgresql.org Subject: Re: array_to_string References: <20090.1175006990@sss.pgh.pa.us> In-Reply-To: <20090.1175006990@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/317 X-Sequence-Number: 27955 Tom Lane wrote: > "Sabin Coanda" writes: >> I used the function array_to_string, and I found it ignores NULL values, >> e.g. array_to_string( 'ARRAY[1,NULL,3]', ',' ) returns '1,3'. > > Do you have a better idea? If you're being strict it should presumably return NULL for the whole string. Or you'd need a "coalesce-to-this" parameter. -- Richard Huxton Archonet Ltd