Get rid of long datatype in CATCACHE_STATS enabled builds

"long" is 32 bits on Windows 64-bit.  Switch to a datatype that's 64-bit
on all platforms.  While we're there, use an unsigned type as these
fields count things that have occurred, of which it's not possible to
have negative numbers of.

Author: David Rowley <[email protected]>
Reviewed-by: Heikki Linnakangas <[email protected]>
Reviewed-by: Peter Eisentraut <[email protected]>
Discussion: 
https://postgr.es/m/CAApHDvoGFjSA3aNyVQ3ivbyc4ST=cc5l-_vjeuq92hbe2cx...@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9c047da51f270b25fe03ee114e1de0c64aa9cc18

Modified Files
--------------
src/backend/utils/cache/catcache.c | 26 ++++++++++++++++----------
src/include/utils/catcache.h       | 14 +++++++-------
2 files changed, 23 insertions(+), 17 deletions(-)

Reply via email to