postgresql/src/backend/access
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
..
brin Fix typos and grammar in comments and docs 2021-04-19 11:32:30 +09:00
common autovacuum: handle analyze for partitioned tables 2021-04-08 01:19:36 -04:00
gin Remove redundant memset(0) calls for page init of some index AMs 2021-04-07 14:35:26 +09:00
gist Fix typos and grammar in comments and docs 2021-04-19 11:32:30 +09:00
hash Remove tupgone special case from vacuumlazy.c. 2021-04-06 08:49:22 -07:00
heap Change data type of counters in BufferUsage and WalUsage from long to int64. 2021-05-12 09:56:34 +09:00
index Fix typos and grammar in comments and docs 2021-04-19 11:32:30 +09:00
nbtree Fix typos and grammar in comments and docs 2021-04-19 11:32:30 +09:00
rmgrdesc Improve WAL record descriptions for SP-GiST records. 2021-04-20 17:01:49 -04:00
spgist Remove redundant memset(0) calls for page init of some index AMs 2021-04-07 14:35:26 +09:00
table Allow configurable LZ4 TOAST compression. 2021-03-19 15:10:38 -04:00
tablesample Update copyright for 2021 2021-01-02 13:06:25 -05:00
transam Revert recovery prefetching feature. 2021-05-10 16:06:09 +12:00
Makefile Introduce access/{table.h, relation.h}, for generic functions from heapam.h. 2019-01-21 10:51:36 -08:00