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 aEnevzG3LQPiZkzX@nathan
Whole thread Raw
In response to Re: add function for creating/attaching hash table in DSM registry  (Nathan Bossart <nathandbossart@gmail.com>)
Responses Re: add function for creating/attaching hash table in DSM registry
Re: add function for creating/attaching hash table in DSM registry
List pgsql-hackers
Here is a new patch with GetNamedDSA() added.  A couple notes:

* I originally wanted to use GetNamedDSA() within GetNamedDSMHash(), but
  that would probably lead to two registry entries per dshash table, and it
  didn't really save all that much code, anyway.  So, I didn't do that.

* Using a DSA from the registry is cumbersome.  You essentially need
  another batch of shared memory to keep track of the pointers and do
  locking, so it might not be tremendously useful on its own.  AFAICT the
  easiest thing to do is to store the DSA pointers in a dshash table, which
  is what I've done in the test.

-- 
nathan

Attachment

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: PG 18 release notes draft committed
Next
From: Robert Haas
Date:
Subject: Re: Inconsistent Behavior in JSONB Numeric Array Deletion