mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-15 08:20:16 +08:00
23a27b039d
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 |
||
---|---|---|
.. | ||
autoinc--1.0.sql | ||
autoinc--unpackaged--1.0.sql | ||
autoinc.c | ||
autoinc.control | ||
autoinc.example | ||
insert_username--1.0.sql | ||
insert_username--unpackaged--1.0.sql | ||
insert_username.c | ||
insert_username.control | ||
insert_username.example | ||
Makefile | ||
moddatetime--1.0.sql | ||
moddatetime--unpackaged--1.0.sql | ||
moddatetime.c | ||
moddatetime.control | ||
moddatetime.example | ||
refint--1.0.sql | ||
refint--unpackaged--1.0.sql | ||
refint.c | ||
refint.control | ||
refint.example | ||
timetravel--1.0.sql | ||
timetravel--unpackaged--1.0.sql | ||
timetravel.c | ||
timetravel.control | ||
timetravel.example |