postgresql/src/pl/plpython
Tom Lane 23a27b039d Widen query numbers-of-tuples-processed counters to uint64.
This patch widens SPI_processed, EState's es_processed field, PortalData's
portalPos field, FuncCallContext's call_cntr and max_calls fields,
ExecutorRun's count argument, PortalRunFetch's result, and the max number
of rows in a SPITupleTable to uint64, and deals with (I hope) all the
ensuing fallout.  Some of these values were declared uint32 before, and
others "long".

I also removed PortalData's posOverflow field, since that logic seems
pretty useless given that portalPos is now always 64 bits.

The user-visible results are that command tags for SELECT etc will
correctly report tuple counts larger than 4G, as will plpgsql's GET
GET DIAGNOSTICS ... ROW_COUNT command.  Queries processing more tuples
than that are still not exactly the norm, but they're becoming more
common.

Most values associated with FETCH/MOVE distances, such as PortalRun's count
argument and the count argument of most SPI functions that have one, remain
declared as "long".  It's not clear whether it would be worth promoting
those to int64; but it would definitely be a large dollop of additional
API churn on top of this, and it would only help 32-bit platforms which
seem relatively less likely to see any benefit.

Andreas Scherbaum, reviewed by Christian Ullrich, additional hacking by me
2016-03-12 16:05:29 -05:00
..
expected Make plpython cope with funny characters in function names. 2016-02-16 21:08:15 -05:00
po Translation updates 2015-06-28 23:56:55 -04:00
sql Make plpython cope with funny characters in function names. 2016-02-16 21:08:15 -05:00
.gitignore PL/Python: Improve Python 3 regression test setup 2012-09-16 22:26:33 -04:00
Makefile Fix python_includespec on Windows at configure time 2015-05-03 08:17:04 -04:00
generate-spiexceptions.pl Update copyright for 2016 2016-01-02 13:33:40 -05:00
nls.mk Translation updates 2014-12-15 00:25:35 -05:00
plpy_cursorobject.c Widen query numbers-of-tuples-processed counters to uint64. 2016-03-12 16:05:29 -05:00
plpy_cursorobject.h Fix memory leaks in PL/Python. 2015-11-05 13:52:40 -05:00
plpy_elog.c Fix a number of places that produced XX000 errors in the regression tests. 2015-08-02 23:49:19 -04:00
plpy_elog.h Tweak __attribute__-wrapping macros for better pgindent results. 2015-03-26 14:03:25 -04:00
plpy_exec.c Fix memory leaks in PL/Python. 2015-11-05 13:52:40 -05:00
plpy_exec.h Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
plpy_main.c Remove no-longer-needed old-style check for incompatible plpythons. 2016-01-11 20:13:31 -05:00
plpy_main.h Fix memory leaks in PL/Python. 2015-11-05 13:52:40 -05:00
plpy_planobject.c Fix memory leaks in PL/Python. 2015-11-05 13:52:40 -05:00
plpy_planobject.h Fix memory leaks in PL/Python. 2015-11-05 13:52:40 -05:00
plpy_plpymodule.c Fix some functions that were declared static then defined not-static. 2015-01-12 16:08:43 -05:00
plpy_plpymodule.h Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
plpy_procedure.c Make plpython cope with funny characters in function names. 2016-02-16 21:08:15 -05:00
plpy_procedure.h Fix memory leaks in PL/Python. 2015-11-05 13:52:40 -05:00
plpy_resultobject.c PL/Python: Add result object str handler 2013-02-03 00:31:01 -05:00
plpy_resultobject.h Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
plpy_spi.c Widen query numbers-of-tuples-processed counters to uint64. 2016-03-12 16:05:29 -05:00
plpy_spi.h Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
plpy_subxactobject.c Fix memory leaks in PL/Python. 2015-11-05 13:52:40 -05:00
plpy_subxactobject.h add #includes to plpy_subxactobject.h to make it compile standalone 2012-08-28 16:13:41 -04:00
plpy_typeio.c Fix memory leaks in PL/Python. 2015-11-05 13:52:40 -05:00
plpy_typeio.h Fix memory leaks in PL/Python. 2015-11-05 13:52:40 -05:00
plpy_util.c Fix memory leaks in PL/Python. 2015-11-05 13:52:40 -05:00
plpy_util.h Fix memory leaks in PL/Python. 2015-11-05 13:52:40 -05:00
plpython.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
plpython2u--1.0.sql Put comments on the installable procedural languages. 2011-07-03 19:03:51 -04:00
plpython2u--unpackaged--1.0.sql Create extension infrastructure for the core procedural languages. 2011-03-04 21:51:14 -05:00
plpython2u.control Create extension infrastructure for the core procedural languages. 2011-03-04 21:51:14 -05:00
plpython3u--1.0.sql Put comments on the installable procedural languages. 2011-07-03 19:03:51 -04:00
plpython3u--unpackaged--1.0.sql Create extension infrastructure for the core procedural languages. 2011-03-04 21:51:14 -05:00
plpython3u.control Create extension infrastructure for the core procedural languages. 2011-03-04 21:51:14 -05:00
plpythonu--1.0.sql Put comments on the installable procedural languages. 2011-07-03 19:03:51 -04:00
plpythonu--unpackaged--1.0.sql Create extension infrastructure for the core procedural languages. 2011-03-04 21:51:14 -05:00
plpythonu.control Create extension infrastructure for the core procedural languages. 2011-03-04 21:51:14 -05:00
regress-python3-mangle.mk Fix hstore_plpython test when python3 is used. 2015-10-04 22:29:03 +02:00