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

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

-- 
marko



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Dean Rasheed
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Row-Level Security Policies (RLS)
Следующее
От: Jeevan Chalke
Дата:
Сообщение: Re: psql :: support for \ev viewname and \sv viewname