Re: improve type conversion of SPI_processed in Python
Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2018-01-20T13:21:19Z
Lists: pgsql-hackers
On 1/12/18 11:06, Tom Lane wrote: >> Would that even be necessary? Why not use the LongLong variant all the >> time then? > > I've not looked at the Python internals to see if one is noticeably faster > than the other, but if it isn't, yeah we could simplify that. In any case > my main point is let's keep these two functions using similar approaches. I ran extensive tests on this and went ahead with the simplified versions. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Commits
-
PL/Python: Simplify PLyLong_FromInt64
- eee50a8d4c38 11.0 landed