| From: | David Rowley <drowley(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Get rid of long datatype in CATCACHE_STATS enabled builds |
| Date: | 2025-11-16 23:27:54 |
| Message-ID: | E1vKm9y-006xSE-2c@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(at)gmail(dot)com>
Reviewed-by: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
Reviewed-by: Peter Eisentraut <peter(at)eisentraut(dot)org>
Discussion: https://postgr.es/m/CAApHDvoGFjSA3aNyVQ3ivbyc4ST=CC5L-_VjEUQ92HbE2Cxovg@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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Thomas Munro | 2025-11-16 23:52:33 | pgsql: Define PS_USE_CLOBBER_ARGV on GNU/Hurd. |
| Previous Message | Michael Paquier | 2025-11-16 23:11:52 | Re: pgsql: Drop unnamed portal immediately after execution to completion |