From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com> |
Cc: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | Re: pgsql: Transforms for jsonb to PL/Python |
Date: | 2018-03-31 05:15:28 |
Message-ID: | 6087.1522473328@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Fabien COELHO | 2018-03-31 07:00:02 | Re: pgsql: Set random seed for pgbench. |
Previous Message | Tom Lane | 2018-03-31 02:48:54 | Re: pgsql: Set random seed for pgbench. |