{"Entry":{"collection":"hook","key":"shmem_request_hook","name":"shmem_request_hook","aliases":[],"metadata":{"aliases":[],"category":"Startup and shared memory","content_hash":"6187de685d3fd931fcfe3ab724a41d4fa06448484e4d9ba0f3e24127d6e311a6","imported_at":"2026-09-30T17:44:22.45552+08:00","name":"shmem_request_hook","name_zh":"shmem_request_hook","slug":"shmem_request_hook","summary":"shmem_request_hook: core extension hook declared in src/include/miscadmin.h. The exact interface and call sites are recorded below."}},"Definition":{"Collection":"hook","Key":"shmem_request_hook","SourceDatabase":"center","Version":"18","SourceTable":"hook","SourceKey":"shmem_request_hook","SourceRevision":"753057e340da8f22e57c9a409ea7a235fd6a46bd","Facts":{"description":["shmem_request_hook: core extension hook declared in src/include/miscadmin.h. The exact interface and call sites are recorded below."],"facts":[{"label":"Interface type","value":"shmem_request_hook_type"},{"label":"Header","value":"src/include/miscadmin.h"},{"label":"Subsystem","value":"Startup and shared memory"},{"label":"Initial value","value":"NULL (no hook installed)"}],"related":[{"label":"shared_preload_libraries","url":"/wiki/guc/shared_preload_libraries/?v=18"}],"release":{"channel":"stable","label":"18","major":"18","ref":"REL_18_STABLE","revision":"753057e340da8f22e57c9a409ea7a235fd6a46bd"},"sections":[{"paragraphs":["src/backend/utils/init/miscinit.c:1935"],"title":"Call sites"},{"code":" */\nvoid\nprocess_shmem_requests(void)\n{\n\tprocess_shmem_requests_in_progress = true;\n\tif (shmem_request_hook)\n\t\tshmem_request_hook();\n\tprocess_shmem_requests_in_progress = false;\n}\n\nvoid\npg_bindtextdomain(const char *domain)\n{\n#ifdef ENABLE_NLS\n\tif (my_exec_path[0] != '\\0')","paragraphs":[],"title":"Core call context: src/backend/utils/init/miscinit.c:1929–1943"}],"signature":"typedef void (*shmem_request_hook_type) (void);\nextern PGDLLIMPORT shmem_request_hook_type shmem_request_hook;","sources":[{"label":"Interface declaration","path":"src/include/miscadmin.h","sha256":"597e33af3a463e98e900e9c20e949a48dfd0b20420d31f7db1d1eab58d4a89d3","url":"https://github.com/postgres/postgres/blob/753057e340da8f22e57c9a409ea7a235fd6a46bd/src/include/miscadmin.h#L533"},{"label":"Core definition","path":"src/backend/utils/init/miscinit.c","sha256":"54bdb859c143a6c70d86067ccf2e124f59aa0852e5705bb653652e41a60af39a","url":"https://github.com/postgres/postgres/blob/753057e340da8f22e57c9a409ea7a235fd6a46bd/src/backend/utils/init/miscinit.c#L1841"},{"label":"Call sites","path":"src/backend/utils/init/miscinit.c","sha256":"54bdb859c143a6c70d86067ccf2e124f59aa0852e5705bb653652e41a60af39a","url":"https://github.com/postgres/postgres/blob/753057e340da8f22e57c9a409ea7a235fd6a46bd/src/backend/utils/init/miscinit.c#L1935"}]},"ManualEvidence":{"release":{"channel":"stable","label":"18","major":"18","ref":"REL_18_STABLE","revision":"753057e340da8f22e57c9a409ea7a235fd6a46bd"},"sources":[{"label":"Interface declaration","path":"src/include/miscadmin.h","sha256":"597e33af3a463e98e900e9c20e949a48dfd0b20420d31f7db1d1eab58d4a89d3","url":"https://github.com/postgres/postgres/blob/753057e340da8f22e57c9a409ea7a235fd6a46bd/src/include/miscadmin.h#L533"},{"label":"Core definition","path":"src/backend/utils/init/miscinit.c","sha256":"54bdb859c143a6c70d86067ccf2e124f59aa0852e5705bb653652e41a60af39a","url":"https://github.com/postgres/postgres/blob/753057e340da8f22e57c9a409ea7a235fd6a46bd/src/backend/utils/init/miscinit.c#L1841"},{"label":"Call sites","path":"src/backend/utils/init/miscinit.c","sha256":"54bdb859c143a6c70d86067ccf2e124f59aa0852e5705bb653652e41a60af39a","url":"https://github.com/postgres/postgres/blob/753057e340da8f22e57c9a409ea7a235fd6a46bd/src/backend/utils/init/miscinit.c#L1935"}]},"MeasuredEvidence":{}},"Text":{"Collection":"hook","Key":"shmem_request_hook","SourceDatabase":"center","Version":"18","Locale":"en","Title":"shmem_request_hook","Summary":"shmem_request_hook: core extension hook declared in src/include/miscadmin.h. The exact interface and call sites are recorded below.","BodyHTML":"\u003cp\u003eshmem_request_hook: core extension hook declared in src/include/miscadmin.h. The exact interface and call sites are recorded below.\u003c/p\u003e","SourceRevision":"753057e340da8f22e57c9a409ea7a235fd6a46bd","ContentHash":"1b40c9884665b841abc3a276504a7cc5b83ad59b53e453c50e939e47bd323909","Payload":{"description":["shmem_request_hook: core extension hook declared in src/include/miscadmin.h. The exact interface and call sites are recorded below."],"related":[{"label":"shared_preload_libraries","url":"/wiki/guc/shared_preload_libraries/?v=18"}],"sections":[{"paragraphs":["src/backend/utils/init/miscinit.c:1935"],"title":"Call sites"},{"code":" */\nvoid\nprocess_shmem_requests(void)\n{\n\tprocess_shmem_requests_in_progress = true;\n\tif (shmem_request_hook)\n\t\tshmem_request_hook();\n\tprocess_shmem_requests_in_progress = false;\n}\n\nvoid\npg_bindtextdomain(const char *domain)\n{\n#ifdef ENABLE_NLS\n\tif (my_exec_path[0] != '\\0')","paragraphs":[],"title":"Core call context: src/backend/utils/init/miscinit.c:1929–1943"}]}},"RequestedLocale":"zh-Hans","Fallback":true,"Versions":["15","16","17","18","19","20"],"Locales":["en"],"Signatures":null,"Spellings":null,"SQLState":null,"Evidence":null}
