Re: add function for creating/attaching hash table in DSM registry - Mailing list pgsql-hackers

From Nathan Bossart
Subject Re: add function for creating/attaching hash table in DSM registry
Date
Msg-id aEhRdaENQG8tVKcb@nathan
Whole thread Raw
In response to Re: add function for creating/attaching hash table in DSM registry  (Sami Imseih <samimseih@gmail.com>)
List pgsql-hackers
On Mon, Jun 09, 2025 at 07:14:28PM -0500, Sami Imseih wrote:
> Going back to the original point, DSMRegistryHash and DSMRegistryHash
> are built-in, and those names are well-defined and actually refer to
> waits related to the mechanism of registering a DSA or a HASH.
> I think it will be odd to append "_dsh", but we should at minimum add
> a comment in the GetNamedDSMHash explaining this.

This should be addressed in v3.

I'm not quite following your uneasiness with the tranche names.  For the
dshash table, we'll need a tranche for the DSA and one for the hash table,
so presumably any wait events for those locks should be named accordingly,
right?

-- 
nathan

Attachment

pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Remaining dependency on setlocale()
Next
From: Junwang Zhao
Date:
Subject: Use RELATION_IS_OTHER_TEMP where possible