From: | Michael Paquier <michael(at)paquier(dot)xyz> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Extract logic filling pg_stat_get_io()'s tuplestore into its own |
Date: | 2024-12-19 01:16:54 |
Message-ID: | E1tO59p-000HQE-Uw@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Extract logic filling pg_stat_get_io()'s tuplestore into its own routine
This commit adds pg_stat_io_build_tuples(), a helper routine for
pg_stat_get_io(), that fills its result tuplestore based on the contents
of PgStat_BktypeIO. This will be used in a follow-up commit that uses
the same structures as pg_stat_io for reporting, including the same
object types and contexts, but for a different statistics kind.
Author: Bertrand Drouvot, Michael Paquier
Discussion: https://postgr.es/m/ZtXR+CtkEVVE/LHF(at)ip-10-97-1-34(dot)eu-west-3(dot)compute(dot)internal
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/ff7c40d7fd6a218f31fcf6f2c23c544c85934b24
Modified Files
--------------
src/backend/utils/adt/pgstatfuncs.c | 174 ++++++++++++++++++++----------------
1 file changed, 97 insertions(+), 77 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2024-12-19 04:20:57 | pgsql: Add backend-level statistics to pgstats |
Previous Message | David Rowley | 2024-12-19 00:58:08 | pgsql: Optimize grouping equality checks with virtual slots |