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 <[email protected]> Discussion: https://postgr.es/m/caa5rz0s9sdou+z6veojchwk+kdetktatc-ky9fq9z6bjddu...@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(-)
