From: | Michael Paquier <michael(at)paquier(dot)xyz> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Adding new PgStat_WalCounters structure in pgstat.h |
Date: | 2025-02-26 07:50:27 |
Message-ID: | E1tnCBW-0008yd-1N@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Adding new PgStat_WalCounters structure in pgstat.h
This new structure contains the counters and the data related to the WAL
activity statistics gathered from WalUsage, separated into its own
structure so as it can be shared across more than one Stats structure in
pg_stat.h.
This refactoring will be used by an upcoming patch introducing
backend-level WAL statistics.
Bump PGSTAT_FILE_FORMAT_ID.
Author: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>
Discussion: https://postgr.es/m/Z3zqc4o09dM/Ezyz(at)ip-10-97-1-34(dot)eu-west-3(dot)compute(dot)internal
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/0e42d31b0b2273c376ce9de946b59d155fac589c
Modified Files
--------------
src/backend/utils/activity/pgstat_wal.c | 2 +-
src/backend/utils/adt/pgstatfuncs.c | 10 ++++++----
src/include/pgstat.h | 21 +++++++++++++++++++--
src/tools/pgindent/typedefs.list | 1 +
4 files changed, 27 insertions(+), 7 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2025-02-26 07:53:54 | Re: pgsql: Remove redundant pg_set_*_stats() variants. |
Previous Message | Michael Paquier | 2025-02-26 06:37:53 | pgsql: Remove pgstat_flush_wal() |