Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id D40B91337C45 for ; Thu, 21 Apr 2011 12:34:24 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 29029-03 for ; Thu, 21 Apr 2011 15:34:17 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id 7A4521337C00 for ; Thu, 21 Apr 2011 12:34:05 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Thu, 21 Apr 2011 10:34:04 -0500 Message-Id: <4DB00817020000250003CB3C@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Thu, 21 Apr 2011 10:33:59 -0500 From: "Kevin Grittner" To: "Jeff Wu" Cc: "Mike Fowler" ,, "Tom Lane" Subject: Re: BUG #5974: UNION construct type cast gives poor error message References: <201104122018.p3CKIlWR042915@wwwmaster.postgresql.org> <9799.1302719551@sss.pgh.pa.us> <4DA711B6.4060306@mlfowler.com> <4DA6D50E020000250003C83A@gw.wicourts.gov> <4DA72529.7080505@mlfowler.com> <4DA720B8020000250003C856@gw.wicourts.gov> <21368.1302817680@sss.pgh.pa.us> <4DA72B4A020000250003C85D@gw.wicourts.gov> In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201104/170 X-Sequence-Number: 30089 Jeff Wu wrote: > what needs to happen to get this fix in? Well, "fix" implies that there is a bug, which there isn't. The current behavior doesn't violate the requirements of the standard, nor is it a regression from the behavior of any previous PostgreSQL release. What we're talking about is a request for enhancement -- to return results for cases in which the standard allows an error to be thrown. Enhancements are not applied to stable branches, and the 9.1 release has been in feature freeze for months now, so the earliest release we'd probably consider is 9.2. If there are no objections I'll add this to the TODO Wiki page with a reference to Tom's description of how it should be implemented. I didn't get the sense from the discussion that this is one which should be marked "easy" -- agreed? In the meantime, the workaround is to explicitly cast quoted literals and nulls in the result list of a set operation like UNION. -Kevin