Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f28rg-0005ND-TE for pgsql-committers@arkaria.postgresql.org; Sat, 31 Mar 2018 05:15:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f28rc-0005fP-Ex for pgsql-committers@arkaria.postgresql.org; Sat, 31 Mar 2018 05:15:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f28rc-0005fG-9x for pgsql-committers@lists.postgresql.org; Sat, 31 Mar 2018 05:15:40 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f28rU-0002to-6e for pgsql-committers@lists.postgresql.org; Sat, 31 Mar 2018 05:15:39 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w2V5FS2I006088; Sat, 31 Mar 2018 01:15:28 -0400 From: Tom Lane To: Peter Eisentraut cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Transforms for jsonb to PL/Python In-reply-to: <20d9fdcc-eaec-647a-bf27-e7cc5861547f@2ndquadrant.com> References: <20d9fdcc-eaec-647a-bf27-e7cc5861547f@2ndquadrant.com> Comments: In-reply-to Peter Eisentraut message dated "Wed, 28 Mar 2018 10:19:32 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <6086.1522473328.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sat, 31 Mar 2018 01:15:28 -0400 Message-ID: <6087.1522473328@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Peter Eisentraut writes: > I'm looking into the regression test failures that appear to be minor > output differences. gaur (python 2.5) is showing a different output pathology: *** 246,253 **** return x $$; SELECT test1inf(); ! ERROR: could not convert value "inf" to jsonb ! CONTEXT: while creating return value PL/Python function "test1inf" -- test python -infinity -> jsonb CREATE FUNCTION test2inf() RETURNS jsonb --- 246,255 ---- return x $$; SELECT test1inf(); ! ERROR: ValueError: invalid literal for float(): inf ! CONTEXT: Traceback (most recent call last): ! PL/Python function "test1inf", line 2, in ! x =3D float('inf') PL/Python function "test1inf" -- test python -infinity -> jsonb CREATE FUNCTION test2inf() RETURNS jsonb *************** https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dgaur&dt=3D2018-0= 3-31%2002%3A50%3A13 regards, tom lane