improve type conversion of SPI_processed in Python - Mailing list pgsql-hackers

From Peter Eisentraut
Subject improve type conversion of SPI_processed in Python
Date
Msg-id 04b999c9-1d44-1dfc-0454-22c057d42c2c@2ndquadrant.com
Whole thread Raw
Responses Re: improve type conversion of SPI_processed in Python  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
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

Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Using ProcSignal to get memory context stats from a running backend
Next
From: David Fetter
Date:
Subject: Re: WIP: a way forward on bootstrap data