improve type conversion of SPI_processed in Python
Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2017-12-19T18:40:26Z
Lists: pgsql-hackers
Attachments
- 0001-Improve-type-conversion-of-SPI_processed-in-Python.patch (text/plain) patch 0001
Here is a patch to improves how PL/Python deals with very large values of SPI_processed. The previous code converts anything that does not fit into a C long into a Python float. But Python long has unlimited precision, so we should be using that instead. And in Python 3, int and long as the same, so there is no need to deal with any variations anymore. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Commits
-
PL/Python: Simplify PLyLong_FromInt64
- eee50a8d4c38 11.0 landed