Summary
The pg_dsm_registry_allocations view shows shared memory allocations tracked in the dynamic shared memory (DSM) registry. This includes memory allocated by extensions using the mechanisms detailed in xfunc_shared_addin_after_startup.
(Description quoted from the official PostgreSQL documentation.)
Columns
The pg_dsm_registry_allocations system view exposes the following columns (names, types and descriptions are taken verbatim from the PostgreSQL documentation):
nametext
The name of the allocation in the DSM registry.typetext
The type of allocation. Possible values are segment, area, and hash, which correspond to dynamic shared memory segments, areas, and hash tables, respectively.sizeint8
Size of the allocation in bytes. NULL for entries that failed initialization.
Version applicability
Present in PostgreSQL 19 (verified against each release’s documentation). This object was introduced in PostgreSQL 19.
Related & references
Reference: PostgreSQL documentation — pg_dsm_registry_allocations.