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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: cc22368) | patch
Add PgStat_KindInfo.init_shmem_cb
2024年7月11日 00:21:40 +0000 (09:21 +0900)
2024年7月11日 00:21:40 +0000 (09:21 +0900)
commit 21471f18e9d9aa3383314ed8bc9163bc369109ae
Add PgStat_KindInfo.init_shmem_cb

This new callback gives fixed-numbered stats the possibility to take
actions based on the area of shared memory allocated for them.

This removes from pgstat_shmem.c any knowledge specific to the types
of fixed-numbered stats, and the initializations happen in their own
files. Like b68b29bc8fec, this change is useful to make this area of
the code more pluggable, so as custom fixed-numbered stats can take
actions after their shared memory area is initialized.

Reviewed-by: Bertrand Drouvot
Discussion: https://postgr.es/m/Zot5bxoPYdS7yaoy@paquier.xyz
src/backend/utils/activity/pgstat.c diff | blob | blame | history
src/backend/utils/activity/pgstat_archiver.c diff | blob | blame | history
src/backend/utils/activity/pgstat_bgwriter.c diff | blob | blame | history
src/backend/utils/activity/pgstat_checkpointer.c diff | blob | blame | history
src/backend/utils/activity/pgstat_io.c diff | blob | blame | history
src/backend/utils/activity/pgstat_shmem.c diff | blob | blame | history
src/backend/utils/activity/pgstat_slru.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 によって変換されたページ (->オリジナル) /