diff options
author | Michael Paquier <michael@paquier.xyz> | 2025-02-27 11:54:36 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2025-02-27 11:54:36 +0900 |
commit | 495864a4cf16530c5174f264668c87b780c4cf22 (patch) | |
tree | 662fd331686430ebeb5dff698c5e323897d07334 /src/backend/access/gist/gist.c | |
parent | 62ec3e1f6786181431210643a2d427b9a98b8af8 (diff) | |
download | postgresql-495864a4cf16530c5174f264668c87b780c4cf22.tar.gz postgresql-495864a4cf16530c5174f264668c87b780c4cf22.zip |
Refactor code of pg_stat_get_wal() building result tuple
This commit adds to pgstatfuncs.c a new routine called
pg_stat_wal_build_tuple(), helper routine for pg_stat_get_wal(). This
is in charge of filling one tuple based on the contents of
PgStat_WalStats retrieved from pgstats.
This refactoring will be used by an upcoming patch introducing
backend-level WAL statistics, simplifying the main patch. Note that
it is not possible for stats_reset to be NULL in pg_stat_wal; backend
statistics need to be able to handle this case.
Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Discussion: https://postgr.es/m/Z3zqc4o09dM/Ezyz@ip-10-97-1-34.eu-west-3.compute.internal
Diffstat (limited to 'src/backend/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions