]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Get rid of long datatype in CATCACHE_STATS enabled builds
authorDavid Rowley <drowley@postgresql.org>
Sun, 16 Nov 2025 23:26:41 +0000 (12:26 +1300)
committerDavid Rowley <drowley@postgresql.org>
Sun, 16 Nov 2025 23:26:41 +0000 (12:26 +1300)
commit9c047da51f270b25fe03ee114e1de0c64aa9cc18
treec668c5e03c9174d5777d455d9f527a06dc497ec2
parente7cde9dad285acb579b189e82a57fa7b98f23a11
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 <dgrowleyml@gmail.com>
Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi>
Reviewed-by: Peter Eisentraut <peter@eisentraut.org>
Discussion: https://postgr.es/m/CAApHDvoGFjSA3aNyVQ3ivbyc4ST=CC5L-_VjEUQ92HbE2Cxovg@mail.gmail.com
src/backend/utils/cache/catcache.c
src/include/utils/catcache.h