Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UbBgn-0007Ei-Am for pgsql-bugs@arkaria.postgresql.org; Sat, 11 May 2013 15:26:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UbBgm-0002kj-Rd for pgsql-bugs@arkaria.postgresql.org; Sat, 11 May 2013 15:26:24 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UbBgl-0002kd-Uu for pgsql-bugs@postgresql.org; Sat, 11 May 2013 15:26:24 +0000 Received: from smtp-vbr8.xs4all.nl ([194.109.24.28]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UbBgj-0006ph-L2 for pgsql-bugs@postgresql.org; Sat, 11 May 2013 15:26:23 +0000 Received: from webmail.xs4all.nl (dovemail19.xs4all.nl [194.109.26.21]) by smtp-vbr8.xs4all.nl (8.13.8/8.13.8) with ESMTP id r4BFQCAr065036; Sat, 11 May 2013 17:26:17 +0200 (CEST) (envelope-from er@xs4all.nl) Received: from 83.163.19.29 (SquirrelMail authenticated user er) by webmail.xs4all.nl with HTTP; Sat, 11 May 2013 17:26:19 +0200 Message-ID: In-Reply-To: <16834.1368285224@sss.pgh.pa.us> References: <16834.1368285224@sss.pgh.pa.us> Date: Sat, 11 May 2013 17:26:19 +0200 Subject: Re: BUG #8150: NULL emements lost when casting result of unnest() From: "Erik Rijkers" To: "Tom Lane" Cc: brandstetter@falter.at, pgsql-bugs@postgresql.org User-Agent: SquirrelMail/1.4.18 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Pg-Spam-Score: -3.4 (---) 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 On Sat, May 11, 2013 17:13, Tom Lane wrote: > brandstetter@falter.at writes: >> SELECT unnest('{1,NULL,4}'::int[])::int8; >> i >> --- >> 1 >> 4 > > > This is another case where I'm not too sure if we ought to back-patch. > The current behavior is clearly wrong, but perhaps some application > out there will be unhappy if we change it in back branches? > My vote would be against backpatching, both in this case and in the recent TO_CHAR()/TO_NUMBER() format problem. Perhaps there would be value in making the back branch patches available. (Perhaps these two patches are already usable against backbranches; I would have tried but I cannot build lower than 9.2 at the moment; I assume no-one can) Erik Rijkers -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs