From: | Haozhou Wang <hawang(at)pivotal(dot)io> |
---|---|
To: | Nikita Glukhov <n(dot)gluhov(at)postgrespro(dot)ru> |
Cc: | David Steele <david(at)pgmasters(dot)net>, Anthony Bykov <a(dot)bykov(at)postgrespro(dot)ru>, pgsql-hackers(at)postgresql(dot)org, Paul Guo <pguo(at)pivotal(dot)io>, Hubert Zhang <hzhang(at)pivotal(dot)io> |
Subject: | Re: [PATCH] Add missing type conversion functions for PL/Python |
Date: | 2018-03-27 02:50:03 |
Message-ID: | CAL_NLpKEJp0d_vCkFaMSJX0SpztmoiGw2xmKemC3CF+nCmBTMQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Thanks Nikita!
On Tue, Mar 27, 2018 at 12:07 AM, Nikita Glukhov <n(dot)gluhov(at)postgrespro(dot)ru>
wrote:
> On 26.03.2018 17:19, David Steele wrote:
>
> On 2/20/18 10:14 AM, Haozhou Wang wrote:
>>
>>> Thank you very much for your review!
>>>
>>> I attached a new patch with typo fixed.
>>>
>> I think it's a bit premature to mark this Ready for Committer after a
>> review consisting of a few typos. Anthony only said that he started
>> looking at it so I've marked it Needs Review.
>>
>
> Hi.
>
> I also have looked at this patch and found some problems.
> Attached fixed 3th version of the patch:
> * initialization of arg->u.scalar was moved into PLy_output_setup_func()
> * added range checks for int16 and int32 types
> * added subroutine PLyInt_AsLong() for correct handling OverflowError
> that can
> be thrown from PyInt_AsLong()
> * casting from Python float to PostgreSQL numeric using
> PyFloat_AsDouble() was
> removed because it can return incorrect result for Python long and
> float8_numeric() uses float8 and numeric I/O functions
> * fixed whitespace
>
>
> --
> Nikita Glukhov
>
> Postgres Professional: http://www.postgrespro.com
> The Russian Postgres Company
>
>
--
Regards,
Haozhou
From | Date | Subject | |
---|---|---|---|
Next Message | David Rowley | 2018-03-27 02:51:08 | Re: Parallel Aggregates for string_agg and array_agg |
Previous Message | Edmund Horner | 2018-03-27 02:47:07 | Fix for pg_stat_activity putting client hostaddr into appname field |