Re: [patch] PL/Python is too lossy with floats

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Marko Kreen <markokr(at)gmail(dot)com>
Cc: Postgres Hackers List <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [patch] PL/Python is too lossy with floats
Date: 2015-06-10 02:04:25
Message-ID: 55779B29.4050007@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmx(dot)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.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2015-06-10 02:12:57 Re: Run pgindent now?
Previous Message Robert Haas 2015-06-10 01:56:13 Re: Run pgindent now?