↑↓ select ↵ open ⌫ change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Wiki / 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

Compare versions

PostgreSQL 14 → 15: added.

--- PostgreSQL 14
+++ PostgreSQL 15
@@ -1 +1,22 @@
-Not recorded in this version
+{
+  "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)"
+    }
+  ],
+  "signature": "typedef void (*shmem_request_hook_type) (void);\nextern PGDLLIMPORT shmem_request_hook_type shmem_request_hook;",
+  "tables": null
+}

Compares recorded interfaces and attributes. Source fingerprints and build metadata are excluded; an absent sample is not proof of the introduction or removal release.

Related entries

Export JSON · Back to Hooks · Recorded in PostgreSQL 15 through 20; the first sample is not necessarily its introduction.