Re: [patch] PL/Python is too lossy with floats - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: [patch] PL/Python is too lossy with floats
Date
Msg-id 55779B29.4050007@gmx.net
Whole thread Raw
In response to Re: [patch] PL/Python is too lossy with floats  (Marko Kreen <markokr@gmail.com>)
Responses Re: [patch] PL/Python is too lossy with floats
List pgsql-hackers
On 6/1/15 5:34 AM, Marko Kreen wrote:
> On Wed, Mar 11, 2015 at 9:49 PM, Peter Eisentraut <peter_e@gmx.net> wrote:
>> On 3/3/15 9:32 AM, Marko Kreen wrote:
>>> PL/Python uses str(v) to convert float data, but is lossy
>>> by design.  Only repr(v) is guaranteed to have enough
>>> precision to make floats roundtrip properly:
>>
>> committed
> 
> In 9.3 and before, numeric is converted to float in PL/Python.
> 
> Please reconsider backporting.

It's been like this forever, so I don't think it's appropriate to
backpatch this.




pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Run pgindent now?
Next
From: Bruce Momjian
Date:
Subject: Re: Run pgindent now?