git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 341e9a0) | patch
Add callback for backend initialization in pgstats
Thu, 5 Sep 2024 07:05:21 +0000 (16:05 +0900)
Thu, 5 Sep 2024 07:05:21 +0000 (16:05 +0900)
commit 1b373aed20e61e4a3033e1e396e4ba7c2a96bc20
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
src/backend/utils/activity/pgstat.c diff | blob | blame | history
src/backend/utils/activity/pgstat_wal.c diff | blob | blame | history
src/include/utils/pgstat_internal.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /