postgresql/src/backend/commands
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
..
aggregatecmds.c Support multi-stage aggregation. 2016-01-20 13:46:50 -05:00
alter.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
analyze.c Change the format of the VM fork to add a second bit per page. 2016-03-01 21:49:41 -05:00
async.c Make all built-in lwlock tranche IDs fixed. 2016-02-02 06:45:55 -05:00
cluster.c Restructure index access method API to hide most of it at the C level. 2016-01-17 19:36:59 -05:00
collationcmds.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
comment.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
constraint.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
conversioncmds.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
copy.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
createas.c Widen query numbers-of-tuples-processed counters to uint64. 2016-03-12 16:05:29 -05:00
dbcommands.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
define.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
discard.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
dropcmds.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
event_trigger.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
explain.c Introduce a new GUC force_parallel_mode for testing purposes. 2016-02-07 11:41:33 -05:00
extension.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
foreigncmds.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
functioncmds.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
indexcmds.c Restructure index access method API to hide most of it at the C level. 2016-01-17 19:36:59 -05:00
lockcmds.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
Makefile Row-Level Security Policies (RLS) 2014-09-19 11:18:35 -04:00
matview.c Make concurrent refresh check early that there is a unique index on matview. 2016-02-16 02:15:44 +09:00
opclasscmds.c Restructure index access method API to hide most of it at the C level. 2016-01-17 19:36:59 -05:00
operatorcmds.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
policy.c Fix bogus lock release in RemovePolicyById and RemoveRoleFromObjectPolicy. 2016-01-03 20:53:35 -05:00
portalcmds.c Widen query numbers-of-tuples-processed counters to uint64. 2016-03-12 16:05:29 -05:00
prepare.c On second thought, disable parallelism for prepared statements. 2016-02-26 16:33:37 +05:30
proclang.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
schemacmds.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
seclabel.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
sequence.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
tablecmds.c Move pg_constraint.h function declarations to new file pg_constraint_fn.h. 2016-02-11 15:51:28 -05:00
tablespace.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
trigger.c Refactor pull_var_clause's API to make it less tedious to extend. 2016-03-10 15:53:07 -05:00
tsearchcmds.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
typecmds.c Move pg_constraint.h function declarations to new file pg_constraint_fn.h. 2016-02-11 15:51:28 -05:00
user.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
vacuum.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
vacuumlazy.c Don't vacuum all-frozen pages. 2016-03-10 16:14:42 -05:00
variable.c Fix parallel query on standby servers. 2016-03-08 10:27:03 -05:00
view.c Update copyright for 2016 2016-01-02 13:33:40 -05:00