| From: | Michael Paquier <michael(at)paquier(dot)xyz> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Rename routines for write/read of pgstats file |
| Date: | 2025-11-25 01:56:05 |
| Message-ID: | E1vNiHk-001GBl-34@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Rename routines for write/read of pgstats file
This commit renames write_chunk and read_chunk to respectively
pgstat_write_chunk() and pgstat_read_chunk(), along with the *_s
convenience macros.
These are made available for plug-ins, so as any code that decides to
write and/or read stats data can rely on a single code path for this
work.
Extracted from a larger patch by the same author.
Author: Sami Imseih <samimseih(at)gmail(dot)com>
Discussion: https://postgr.es/m/CAA5RZ0s9SDOu+Z6veoJCHWk+kDeTktAtC-KY9fQ9Z6BJdDUirQ@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/ed823da12891232a6542168a0a1b7d2d1c5f3e9a
Modified Files
--------------
src/backend/utils/activity/pgstat.c | 56 +++++++++++++++++--------------------
src/include/utils/pgstat_internal.h | 6 ++++
2 files changed, 32 insertions(+), 30 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Eisentraut | 2025-11-25 05:32:18 | pgsql: Remove obsolete comment |
| Previous Message | Andres Freund | 2025-11-24 23:12:12 | pgsql: lwlock: Fix, currently harmless, bug in LWLockWakeup() |