Re: add function for creating/attaching hash table in DSM registry
Rahila Syed <rahilasyed90@gmail.com>
From: Rahila Syed <rahilasyed90@gmail.com>
To: Nathan Bossart <nathandbossart@gmail.com>
Cc: Florents Tselai <florents.tselai@gmail.com>, Sami Imseih <samimseih@gmail.com>, Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>, pgsql-hackers@postgresql.org
Date: 2025-06-30T07:59:22Z
Lists: pgsql-hackers
Hi, Here is what I have staged for commit. > > Thank you for sharing the updated patch. This looks good to me. I used the GetNamedDSA added by this patch in my code and it worked fine. /* XXX: Should we verify params matches what table was created with? */ Are you planning to address the above before you commit? It seems like a helpful check since GetNamedDshash takes the params as arguments. That said, I don't have a strong preference either way. I have a question: is there a way to remove the entries from the registry and free the space? For example, if a user decides to call dshash_destroy the dshash entry in the registry would no longer be needed. Thank you, Rahila Syed
Commits
-
Fix cross-version upgrade test breakage from commit fe07100e82.
- 0c2b7174c362 19 (unreleased) landed
-
Add GetNamedDSA() and GetNamedDSHash().
- fe07100e82b0 19 (unreleased) landed
-
Remove dynamic_shared_memory_type=none
- bcbd940806a2 12.0 cited
-
Introduce dynamic shared memory areas.
- 13df76a537cc 10.0 cited
-
Relax the requirement that all lwlocks be stored in a single array.
- ea9df812d850 9.4.0 cited