| From: | Michael Paquier <michael(at)paquier(dot)xyz> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Move information about pgstats kinds into its own header pgstat_ |
| Date: | 2025-01-14 03:44:30 |
| Message-ID: | E1tXXqw-001PzG-GV@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael Paquier | 2025-01-14 06:13:57 | pgsql: Fix potential integer overflow in bringetbitmap() |
| Previous Message | Michael Paquier | 2025-01-14 03:28:46 | pgsql: Remove assertion in pgstat_count_io_op() |