From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Generate pgstat_count_slru*() functions for slru using macros
Date: Tue, 02 Sep 2025 07:22:19 +0000
Message-ID: <E1utLLP-0007UT-2W@gemulon.postgresql.org> (raw)
Generate pgstat_count_slru*() functions for slru using macros
This change replaces seven functions definitions by macros, reducing a
bit some repetitive patterns in the code. An interesting side effect is
that this removes an inconsistency in the naming of SLRU increment
functions with the field names.
This change is similar to 850f4b4c8cab, 8018ffbf5895 or 83a1a1b56645.
Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Discussion: https://postgr.es/m/aLHA//gr4dTpDHHC@ip-10-97-1-34.eu-west-3.compute.internal
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/eccba079c2ea7d6b40a02de774e773e3aaf4bdda
Modified Files
--------------
src/backend/access/transam/slru.c | 12 +++----
src/backend/utils/activity/pgstat_slru.c | 54 ++++++++++++--------------------
src/include/pgstat.h | 10 +++---
3 files changed, 31 insertions(+), 45 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Generate pgstat_count_slru*() functions for slru using macros
In-Reply-To: <E1utLLP-0007UT-2W@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox