]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Rename routines for write/read of pgstats file
authorMichael Paquier <michael@paquier.xyz>
Tue, 25 Nov 2025 01:55:40 +0000 (10:55 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 25 Nov 2025 01:55:40 +0000 (10:55 +0900)
commited823da12891232a6542168a0a1b7d2d1c5f3e9a
tree0256bab26e1530afc5010f033b0519972d75337d
parent81f773895321ac69d3d71fe9d203e09d072f9c36
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@gmail.com>
Discussion: https://postgr.es/m/CAA5RZ0s9SDOu+Z6veoJCHWk+kDeTktAtC-KY9fQ9Z6BJdDUirQ@mail.gmail.com
src/backend/utils/activity/pgstat.c
src/include/utils/pgstat_internal.h