postgresql/src/backend
Fujii Masao d780d7c088 Change data type of counters in BufferUsage and WalUsage from long to int64.
Previously long was used as the data type for some counters in BufferUsage
and WalUsage. But long is only four byte, e.g., on Windows, and it's entirely
possible to wrap a four byte counter. For example, emitting more than
four billion WAL records in one transaction isn't actually particularly rare.

To avoid the overflows of those counters, this commit changes the data type
of them from long to int64.

Suggested-by: Andres Freund
Author: Masahiro Ikeda
Reviewed-by: Fujii Masao
Discussion: https://postgr.es/m/20201221211650.k7b53tcnadrciqjo@alap3.anarazel.de
Discussion: https://postgr.es/m/af0964ac-7080-1984-dc23-513754987716@oss.nttdata.com
2021-05-12 09:56:34 +09:00
..
access Change data type of counters in BufferUsage and WalUsage from long to int64. 2021-05-12 09:56:34 +09:00
bootstrap Split backend status and progress related functionality out of pgstat.c. 2021-04-03 11:42:52 -07:00
catalog Revert recovery prefetching feature. 2021-05-10 16:06:09 +12:00
commands Change data type of counters in BufferUsage and WalUsage from long to int64. 2021-05-12 09:56:34 +09:00
executor Fix mishandling of resjunk columns in ON CONFLICT ... UPDATE tlists. 2021-05-10 11:02:29 -04:00
foreign Update copyright for 2021 2021-01-02 13:06:25 -05:00
jit jit: Fix warning reported by gcc-11 caused by dubious function signature. 2021-05-05 22:13:55 -07:00
lib Fix typo in comment 2021-04-20 14:35:16 +02:00
libpq pg_hba.conf.sample: Reword connection type section 2021-04-29 07:00:20 +02:00
main Update copyright for 2021 2021-01-02 13:06:25 -05:00
nodes Fix mishandling of resjunk columns in ON CONFLICT ... UPDATE tlists. 2021-05-10 11:02:29 -04:00
optimizer Fix mishandling of resjunk columns in ON CONFLICT ... UPDATE tlists. 2021-05-10 11:02:29 -04:00
parser Fix typo 2021-05-11 09:06:49 +02:00
partitioning Fix typo 2021-05-07 17:53:34 +02:00
po Translation updates 2021-05-10 14:36:21 +02:00
port Use correct format placeholder for WSAGetLastError() 2021-04-23 14:21:37 +02:00
postmaster Revert recovery prefetching feature. 2021-05-10 16:06:09 +12:00
regex Fix performance issue in new regex match-all detection code. 2021-05-03 11:42:31 -04:00
replication Revert recovery prefetching feature. 2021-05-10 16:06:09 +12:00
rewrite Remove unused function argument 2021-05-03 09:05:58 +02:00
snowball Update snowball 2021-02-19 08:10:15 +01:00
statistics Fix typos in comments about extended statistics 2021-05-07 14:40:36 +02:00
storage Revert recovery prefetching feature. 2021-05-10 16:06:09 +12:00
tcop Revert per-index collation version tracking feature. 2021-05-07 21:10:11 +12:00
tsearch Fix typos and grammar in comments and docs 2021-04-19 11:32:30 +09:00
utils Tweak generation of Gen_dummy_probes.pl 2021-05-11 20:02:02 -04:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
Makefile Use sort_template.h for qsort_tuple() and qsort_ssup(). 2021-03-03 17:02:32 +13:00
nls.mk Translation updates 2021-05-10 14:36:21 +02:00