Introduce pg_dsm_registry_allocations view.
authorNathan Bossart <[email protected]>
Wed, 9 Jul 2025 14:17:56 +0000 (09:17 -0500)
committerNathan Bossart <[email protected]>
Wed, 9 Jul 2025 14:17:56 +0000 (09:17 -0500)
commit167ed8082f40ee1f3f4cd18cf02bd6d17df57dab
treeb2e1c2ab3e8b8eb6fedd68306716d752378c5c0a
parentf5a987c0e5f6bbf0cc0420228dc57e7aae4d7e8f
Introduce pg_dsm_registry_allocations view.

This commit adds a new system view that provides information about
entries in the dynamic shared memory (DSM) registry.  Specifically,
it returns the name, type, and size of each entry.  Note that since
we cannot discover the size of dynamic shared memory areas (DSAs)
and hash tables backed by DSAs (dshashes) without first attaching
to them, the size column is left as NULL for those.

Bumps catversion.

Author: Florents Tselai <[email protected]>
Reviewed-by: Sungwoo Chang <[email protected]>
Discussion: https://postgr.es/m/4D445D3E-81C5-4135-95BB-D414204A0AB4%40gmail.com
doc/src/sgml/system-views.sgml
src/backend/catalog/system_views.sql
src/backend/storage/ipc/dsm_registry.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.dat
src/test/modules/test_dsm_registry/expected/test_dsm_registry.out
src/test/modules/test_dsm_registry/sql/test_dsm_registry.sql
src/test/regress/expected/privileges.out
src/test/regress/expected/rules.out
src/test/regress/sql/privileges.sql