On Fri, Aug 29, 2025 at 03:02:23PM +, Bertrand Drouvot wrote:
> I was looking at pgstat_slru.c (I've in mind to provide some of those metrics
> per backend), and realized that the same code pattern is repeated 7 times.
So, the gist of the change is centralized around get_slru_entry(),
renaming
>From 3b4a59d7a6265c6fa6f75a54e06ad4d783872727 Mon Sep 17 00:00:00 2001
From: Bertrand Drouvot
Date: Fri, 29 Aug 2025 14:11:38 +
Subject: [PATCH v1] Generate pgstat_count_slru*() functions for slru using
macros
This change replaces seven functions definitions by macros.
This is the same idea as 850f4b4, 8018ffb or 83a1a1b.