Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 43DCA632D31 for ; Mon, 8 Mar 2010 14:10:26 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 78044-04 for ; Mon, 8 Mar 2010 18:10:15 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from glacier.frostconsultingllc.com (glacier.frostconsultingllc.com [69.36.227.170]) by mail.postgresql.org (Postfix) with ESMTP id CC40B632B4B for ; Mon, 8 Mar 2010 14:10:15 -0400 (AST) Received: from dsl081-245-111.sfo1.dsl.speakeasy.net ([64.81.245.111] helo=Sidney-Stratton.local) by glacier.frostconsultingllc.com with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.69) (envelope-from ) id 1NohP6-0006TT-T6; Mon, 08 Mar 2010 10:10:13 -0800 Message-ID: <4B953D7B.3020809@agliodbs.com> Date: Mon, 08 Mar 2010 10:10:03 -0800 From: Josh Berkus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2 MIME-Version: 1.0 To: Noel Proffitt CC: pgsql-testers@postgresql.org Subject: Re: Numerics of diffrent scales Raises Type Mismatch Error in a Set Returning Function References: <1267589227.25740.25.camel@keg> <1268030722.6076.131.camel@keg> In-Reply-To: <1268030722.6076.131.camel@keg> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201003/5 X-Sequence-Number: 54 On 3/7/10 10:45 PM, Noel Proffitt wrote: > On Sun, 2010-03-07 at 15:08 -0800, Josh Berkus wrote: >> Per pgsql-bugs, it's an expected compatibility issue due to unifying the >> SQL and PLPGSQL parsers. That is, the fact that plpgsql used to let you >> do this was regarded as a bug, and was not consistent with the SQL >> command line. >> >> Worth noting in the release notes as part of a general class of >> backwards-compatibility issues. >> >> --Josh Berkus >> > > Note that this behavior change affects seems to affect other types who's > size is different such as character varying. > > I'm probably not understanding, but I'm not sure I follow what the > consistency issue is. It seems like in most other parts of PG, types are > cast sensibly without complaint. Please take this up on pgsql-hackers. --Josh Berkus