From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Move information about pgstats kinds into its own header pgstat_
Date: Tue, 14 Jan 2025 03:44:30 +0000
Message-ID: <E1tXXqw-001PzG-GV@gemulon.postgresql.org> (raw)
Move information about pgstats kinds into its own header pgstat_kind.h
This includes all the definitions for the various PGSTAT_KIND_* values,
the range allowed for custom stats kinds and some macros related all
that.
One use-case behind this split is the possibility to use this
information for frontend tools, without having to rely on pgstat.h and a
backend footprint.
Author: Michael Paquier
Reviewed-by: Bertrand Drouvot
Discussion: https://postgr.es/m/Z24fyb3ipXKR38oS@paquier.xyz
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/d35ea27e51c05cbe3575d50a6b99d64f20a3a742
Modified Files
--------------
src/include/pgstat.h | 57 +-------------------------------
src/include/utils/pgstat_kind.h | 72 +++++++++++++++++++++++++++++++++++++++++
2 files changed, 73 insertions(+), 56 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: Move information about pgstats kinds into its own header pgstat_
In-Reply-To: <E1tXXqw-001PzG-GV@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