Add callback for backend initialization in pgstats
pgstat_initialize() is currently used by the WAL stats as a code path to
take some custom actions when a backend starts. A callback is added to
generalize the concept so as all stats kinds can do the same, for
builtin and custom kinds, if set.
Reviewed-by: Bertrand Drouvot, Kyotaro Horiguchi
Discussion: https://postgr.es/m/ZtZr1K4PLdeWclXY@paquier.xyz
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/1b373aed20e61e4a3033e1e396e4ba7c2a96bc20
Modified Files
--------------
src/backend/utils/activity/pgstat.c | 14 ++++++++++++--
src/backend/utils/activity/pgstat_wal.c | 2 +-
src/include/utils/pgstat_internal.h | 8 +++++++-
3 files changed, 20 insertions(+), 4 deletions(-)
Есть вопросы? Напишите нам!
Соглашаюсь с условиями обработки персональных данных
✖
By continuing to browse this website, you agree to the use of cookies. Go to Privacy Policy.