From ee9d5aa8a77bdc9a23ffa5cab0cf8f8e74f6e40c Mon Sep 17 00:00:00 2001 From: Florents Tselai Date: Tue, 3 Jun 2025 22:37:51 +0300 Subject: [PATCH v4 3/4] Add doc entry for pg_shmem_allocations_numa --- doc/src/sgml/system-views.sgml | 63 ++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/doc/src/sgml/system-views.sgml b/doc/src/sgml/system-views.sgml index b58c52ea50f..2d55671f5fa 100644 --- a/doc/src/sgml/system-views.sgml +++ b/doc/src/sgml/system-views.sgml @@ -4146,6 +4146,69 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx + + <structname>pg_dsm_registry_allocations</structname> + + + pg_dsm_registry_allocations + + + + The pg_dsm_registry_allocations view shows current + allocations registered in the dynamic shared memory (DSM) registry. This + includes all DSM segments that have been allocated and tracked by + PostgreSQL during the server's operation. + + + + This view is useful for monitoring DSM usage by extensions or internal + components using dynamic shared memory segments. + + + + <structname>pg_dsm_registry_allocations</structname> Columns + + + + + Column Type + + + Description + + + + + + + + name text + + + The name of the DSM allocation as registered in the DSM registry. + + + + + + size int8 + + + The size of the allocated dynamic shared memory segment in bytes. + + + + +
+ + + By default, access to the pg_dsm_registry_allocations + view is restricted to superusers or roles granted the + pg_read_all_stats role due to the sensitive nature + of dynamic shared memory usage information. + +
+ <structname>pg_stats</structname> -- 2.49.0