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/z24fyb3ipxkr3...@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(-)