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

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: [patch] PL/Python is too lossy with floats
Дата
Msg-id 55779B29.4050007@gmx.net
обсуждение исходный текст
Ответ на Re: [patch] PL/Python is too lossy with floats  (Marko Kreen <markokr@gmail.com>)
Ответы Re: [patch] PL/Python is too lossy with floats
Список 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 по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Run pgindent now?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Run pgindent now?