Re: Fwd: dsm_registry: Add detach and destroy features - Mailing list pgsql-hackers

From Nathan Bossart
Subject Re: Fwd: dsm_registry: Add detach and destroy features
Date
Msg-id aFL0Vbnh3f5S-Om9@nathan
Whole thread Raw
In response to Re: dsm_registry: Add detach and destroy features  (Sungwoo Chang <swchangdev@gmail.com>)
List 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



pgsql-hackers by date:

Previous
From: Ranier Vilela
Date:
Subject: Re: Fix copy-and-past thinko (src/interfaces/libpq/fe-cancel.c)
Next
From: Jesper Pedersen
Date:
Subject: Re: minimum Meson version