postgresql/src/include
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
..
access Revert buggy optimization of index scans 2016-03-03 09:53:43 +00:00
bootstrap Update copyright for 2016 2016-01-02 13:33:40 -05:00
catalog Bump catalog version missed in 6943a946c7 2016-03-11 19:31:04 +03:00
commands Update copyright for 2016 2016-01-02 13:33:40 -05:00
common Expose control file data via SQL accessible functions. 2016-03-05 11:10:19 -08:00
datatype Update copyright for 2016 2016-01-02 13:33:40 -05:00
executor Widen query numbers-of-tuples-processed counters to uint64. 2016-03-12 16:05:29 -05:00
foreign Add new FDW API to test for parallel-safety. 2016-02-26 16:14:46 +05:30
lib Add two HyperLogLog functions 2016-01-19 17:40:15 -03:00
libpq Update copyright for 2016 2016-01-02 13:33:40 -05:00
mb Update copyright for 2016 2016-01-02 13:33:40 -05:00
nodes Widen query numbers-of-tuples-processed counters to uint64. 2016-03-12 16:05:29 -05:00
optimizer Re-export a few of createplan.c's make_xxx() functions. 2016-03-12 12:12:59 -05:00
parser Support multi-stage aggregation. 2016-01-20 13:46:50 -05:00
port Call xlc __isync() after, not before, associated compare-and-swap. 2016-02-19 22:47:50 -05:00
portability Update copyright for 2016 2016-01-02 13:33:40 -05:00
postmaster Allow the WAL writer to flush WAL at a reduced rate. 2016-02-16 00:56:34 +01:00
regex Suppress compiler warnings about useless comparison of unsigned to zero. 2016-02-15 17:12:16 -05:00
replication logical decoding: Fix handling of large old tuples with replica identity full. 2016-03-05 18:02:20 -08:00
rewrite Update copyright for 2016 2016-01-02 13:33:40 -05:00
snowball Update copyright for 2016 2016-01-02 13:33:40 -05:00
storage Checkpoint sorting and balancing. 2016-03-10 17:05:09 -08:00
tcop Widen query numbers-of-tuples-processed counters to uint64. 2016-03-12 16:05:29 -05:00
tsearch Tsvector editing functions 2016-03-11 19:22:36 +03:00
utils Widen query numbers-of-tuples-processed counters to uint64. 2016-03-12 16:05:29 -05:00
.gitignore Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
Makefile Install lwlocknames.h even in vpath builds. 2015-09-11 16:45:41 -04:00
c.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
fmgr.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
funcapi.h Widen query numbers-of-tuples-processed counters to uint64. 2016-03-12 16:05:29 -05:00
getaddrinfo.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
getopt_long.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
miscadmin.h Revert "Temporarily make pg_ctl and server shutdown a whole lot chattier." 2016-02-10 16:01:04 -05:00
pg_config.h.in Add support for systemd service notifications 2016-02-02 21:04:29 -05:00
pg_config.h.win32 Add BSWAP64 macro. 2015-10-08 13:01:36 -04:00
pg_config_ext.h.in Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
pg_config_ext.h.win32 Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
pg_config_manual.h Change the way that LWLocks for extensions are allocated. 2016-02-04 16:43:04 -05:00
pg_getopt.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
pg_trace.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
pgstat.h Provide much better wait information in pg_stat_activity. 2016-03-10 12:44:09 -05:00
pgtar.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
pgtime.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
port.h Add new system view, pg_config 2016-02-17 09:12:06 -08:00
postgres.h Widen query numbers-of-tuples-processed counters to uint64. 2016-03-12 16:05:29 -05:00
postgres_ext.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
postgres_fe.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
rusagestub.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
windowapi.h Update copyright for 2016 2016-01-02 13:33:40 -05:00