Re: [PATCH] Add missing type conversion functions for PL/Python - Mailing list pgsql-hackers

From Nikita Glukhov
Subject Re: [PATCH] Add missing type conversion functions for PL/Python
Date
Msg-id 2a821a6e-3e27-8926-2214-42dd55960909@postgrespro.ru
Whole thread Raw
In response to Re: Re: [PATCH] Add missing type conversion functions for PL/Python  (David Steele <david@pgmasters.net>)
Responses Re: [PATCH] Add missing type conversion functions for PL/Python  (Haozhou Wang <hawang@pivotal.io>)
Re: [PATCH] Add missing type conversion functions for PL/Python  (David Steele <david@pgmasters.net>)
Re: [PATCH] Add missing type conversion functions for PL/Python  (Heikki Linnakangas <hlinnaka@iki.fi>)
List pgsql-hackers
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


Attachment

pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: [HACKERS] MERGE SQL Statement for PG11
Next
From: Vladimir Sitnikov
Date:
Subject: Re: Proposal: http2 wire format