pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathan@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Introduce pg_dsm_registry_allocations view.
Date: Wed, 09 Jul 2025 14:18:22 +0000
Message-ID: <E1uZVcs-005Qjl-0b@gemulon.postgresql.org> (raw)

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 <florents.tselai@gmail.com>
Reviewed-by: Sungwoo Chang <swchangdev@gmail.com>
Discussion: https://postgr.es/m/4D445D3E-81C5-4135-95BB-D414204A0AB4%40gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/167ed8082f40ee1f3f4cd18cf02bd6d17df57dab

Modified Files
--------------
doc/src/sgml/system-views.sgml                     | 74 ++++++++++++++++++++++
src/backend/catalog/system_views.sql               |  8 +++
src/backend/storage/ipc/dsm_registry.c             | 49 ++++++++++++++
src/include/catalog/catversion.h                   |  2 +-
src/include/catalog/pg_proc.dat                    |  8 +++
.../expected/test_dsm_registry.out                 | 18 ++++++
.../test_dsm_registry/sql/test_dsm_registry.sql    |  7 ++
src/test/regress/expected/privileges.out           | 15 ++++-
src/test/regress/expected/rules.out                |  4 ++
src/test/regress/sql/privileges.sql                |  5 +-
10 files changed, 187 insertions(+), 3 deletions(-)



Message-ID: <E1uZVcs-005Qjl-0b@gemulon.postgresql.org>
Permalink:  ../E1uZVcs-005Qjl-0b@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1uZVcs-005Qjl-0b@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: nathan@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Introduce pg_dsm_registry_allocations view.
  In-Reply-To: <E1uZVcs-005Qjl-0b@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox