pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Transforms for jsonb to PL/Python
Date: Sat, 31 Mar 2018 01:15:28 -0400
Message-ID: <6087.1522473328@sss.pgh.pa.us> (raw)
In-Reply-To: <20d9fdcc-eaec-647a-bf27-e7cc5861547f@2ndquadrant.com>
References: <E1f1AMU-00031c-9N@gemulon.postgresql.org>
	<20d9fdcc-eaec-647a-bf27-e7cc5861547f@2ndquadrant.com>

Peter Eisentraut <peter.eisentraut@2ndquadrant.com> 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 <module>
!     x = 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=gaur&dt=2018-03-31%2002%3A50%3A13

			regards, tom lane




view thread (9+ messages)  latest in thread

Message-ID: <6087.1522473328@sss.pgh.pa.us>
Permalink:  ../6087.1522473328@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6087.1522473328@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, peter.eisentraut@2ndquadrant.com, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Transforms for jsonb to PL/Python
  In-Reply-To: <6087.1522473328@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox