Documentation / Extension Hooks / Startup and shared memory
shmem_request_hook
shmem_request_hook
shmem_request_hook: core extension hook declared in src/include/miscadmin.h. The exact interface and call sites are recorded below.
Reading PostgreSQL 18.
Description
shmem_request_hook: core extension hook declared in src/include/miscadmin.h. The exact interface and call sites are recorded below.
- Interface type
- shmem_request_hook_type
- Header
- src/include/miscadmin.h
- Subsystem
- Startup and shared memory
- Initial value
- NULL (no hook installed)
C interface
typedef void (*shmem_request_hook_type) (void);
extern PGDLLIMPORT shmem_request_hook_type shmem_request_hook;Call sites
src/backend/utils/init/miscinit.c:1935
Core call context: src/backend/utils/init/miscinit.c:1929–1943
*/
void
process_shmem_requests(void)
{
process_shmem_requests_in_progress = true;
if (shmem_request_hook)
shmem_request_hook();
process_shmem_requests_in_progress = false;
}
void
pg_bindtextdomain(const char *domain)
{
#ifdef ENABLE_NLS
if (my_exec_path[0] != '\0')Related entries
Documentation and source
Source build
- Version
- 18
- Build
- REL_18_STABLE
- Source fingerprint
753057e340da8f22e57c9a409ea7a235fd6a46bd
Related entries
shmem_startup_hookshmem_startup_hook
Back to Extension Hooks · Recorded in PostgreSQL 15 through 20; the first sample is not necessarily its introduction.