Re: Fwd: dsm_registry: Add detach and destroy features

From: Nathan Bossart <nathandbossart(at)gmail(dot)com>
To: Sungwoo Chang <swchangdev(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Fwd: dsm_registry: Add detach and destroy features
Date: 2025-06-18 17:16:05
Message-ID: aFL0Vbnh3f5S-Om9@nathan
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Jun 18, 2025 at 09:03:59AM +0900, Sungwoo Chang wrote:
> I created a new patch that throws an exception if we try to call
> destroy on a dsm segment that is still in use.
> I added a function in dsm.h that returns a refcnt of a given dsm
> segment. The destroy function uses that refcnt
> getter to check if the dsm segment is in use.

Thanks for the patch. I'm still interested to hear whether the proposed
GetNamedDSA() feature could work for your use-case, as I described upthread
[0].

[0] https://postgr.es/m/aFAszMKD69AyA4c1%40nathan

--
nathan

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jesper Pedersen 2025-06-18 17:20:54 Re: minimum Meson version
Previous Message Ranier Vilela 2025-06-18 17:15:50 Re: Fix copy-and-past thinko (src/interfaces/libpq/fe-cancel.c)