Re: like pg_shmem_allocations, but fine-grained for DSM registry ?

From: Nathan Bossart <nathandbossart(at)gmail(dot)com>
To: Florents Tselai <florents(dot)tselai(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: like pg_shmem_allocations, but fine-grained for DSM registry ?
Date: 2025-03-14 14:16:50
Message-ID: Z9Q6UqeVK3A1VfcW@nathan
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Mar 13, 2025 at 06:54:09PM +0200, Florents Tselai wrote:
> I´ve been working with the DSM registry API.
> I was wondering if it is possible (it doesn´t look like it) or if it has been discussed:
> can we expose a view like pg_shmem_allocations, but fine-grained for every named segment (i.e. created by GetNamedDSMSegment )?
>
> Currently, there is a "DSM Registry Data" entry in that view,
> but iiuc, it´s only about the top-level hash table the registry uses.

This seems like a generally reasonable idea to me. In theory, it should be
easy enough to build something that walks through the DSM registry hash
table.

--
nathan

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Christoph Berg 2025-03-14 14:23:26 Re: Proposal: manipulating pg_control file from Perl
Previous Message Aleksander Alekseev 2025-03-14 14:09:50 Re: Proposal: manipulating pg_control file from Perl