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

From Nathan Bossart
Subject add function for creating/attaching hash table in DSM registry
Date
Msg-id aEC8HGy2tRQjZg_8@nathan
Whole thread Raw
Responses Re: add function for creating/attaching hash table in DSM registry
List pgsql-hackers
Libraries commonly use shared memory to store hash tables.  While it's
possible to set up a dshash table using the DSM registry today, doing so is
complicated; you need to set up two LWLock tranches, a DSA, and finally the
dshash table.  The attached patch adds a new function called
GetNamedDSMHash() that makes creating/attaching a hash table in the DSM
registry much easier.

-- 
nathan

Attachment

pgsql-hackers by date:

Previous
From: Noah Misch
Date:
Subject: Re: PG 18 release notes draft committed
Next
From: Nathan Bossart
Date:
Subject: Re: like pg_shmem_allocations, but fine-grained for DSM registry ?