Move information about pgstats kinds into its own header pgstat_kind.h

Michael Paquier <michael@paquier.xyz>

Commit: d35ea27e51c05cbe3575d50a6b99d64f20a3a742
Author: Michael Paquier <michael@paquier.xyz>
Date: 2025-01-14T03:43:07Z
Releases: 18.0
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

Files

PathChange+/−
src/include/pgstat.h modified +1 −56
src/include/utils/pgstat_kind.h added +72 −0

Discussion