Adding new PgStat_WalCounters structure in pgstat.h
authorMichael Paquier <michael@paquier.xyz>
Wed, 26 Feb 2025 07:48:54 +0000 (16:48 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 26 Feb 2025 07:48:54 +0000 (16:48 +0900)
commit0e42d31b0b2273c376ce9de946b59d155fac589c
tree87c7e5a0016d657fbc70a6d19bcce43e7fe7bf97
parentd7cbeaf261da346d8c745870da1d31075ae0313c
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.pg@gmail.com>
Discussion: https://postgr.es/m/Z3zqc4o09dM/Ezyz@ip-10-97-1-34.eu-west-3.compute.internal
src/backend/utils/activity/pgstat_wal.c
src/backend/utils/adt/pgstatfuncs.c
src/include/pgstat.h
src/tools/pgindent/typedefs.list