summaryrefslogtreecommitdiff
path: root/src/include/pgstat.h
diff options
context:
space:
mode:
authorMichael Paquier2024-07-11 00:21:40 +0000
committerMichael Paquier2024-07-11 00:21:40 +0000
commit21471f18e9d9aa3383314ed8bc9163bc369109ae (patch)
treeba62b94e3c4a735dbb3b1924381f73bb024fa0d5 /src/include/pgstat.h
parentcc2236854e2bb4f2120927c390c63cc2aad77762 (diff)
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
Diffstat (limited to 'src/include/pgstat.h')
0 files changed, 0 insertions, 0 deletions