diff options
author | Michael Paquier <michael@paquier.xyz> | 2024-07-11 09:21:40 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2024-07-11 09:21:40 +0900 |
commit | 21471f18e9d9aa3383314ed8bc9163bc369109ae (patch) | |
tree | ba62b94e3c4a735dbb3b1924381f73bb024fa0d5 /src/backend/executor/nodeModifyTable.c | |
parent | cc2236854e2bb4f2120927c390c63cc2aad77762 (diff) | |
download | postgresql-21471f18e9d9aa3383314ed8bc9163bc369109ae.tar.gz postgresql-21471f18e9d9aa3383314ed8bc9163bc369109ae.zip |
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/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions