DSM registry
Dynamic shared memory registry with named DSA/dshash, introspection and LWLock tranche handling.
Versions
- PostgreSQL 20 · in-development · improved · minor · 1 commit · +12 / -0 lines
- PostgreSQL 19 · shipped · improved · moderate · 9 commits · +1.1k / -328 lines
- like pg_shmem_allocations, but fine-grained for DSM registry ?
- add function for creating/attaching hash table in DSM registry
- Improve LWLock tranche name visibility across backends
- show size of DSAs and dshash tables in pg_dsm_registry_allocations
- Proposal: Add a callback data parameter to GetNamedDSMSegment
- PostgreSQL 18 · worked-on · improved · moderate
- PostgreSQL 17 · shipped · new · moderate · 4 commits · +597 / -112 lines
Threads
- Return DSA area for hash table from GetNamedDSHash()
- dsm_registry: Add detach and destroy features
- Clean up NamedLWLockTranche stuff
- Rename LWLockNewTrancheId() parameter from "name" to "tranche_name"
- Proposal: Add a callback data parameter to GetNamedDSMSegment
- show size of DSAs and dshash tables in pg_dsm_registry_allocations
- pgsql: Teach DSM registry to ERROR if attaching to an uninitialized ent
- Improve LWLock tranche name visibility across backends
- Document DSM Registry
- GetNamedLWLockTranche crashes on Windows in normal backend
- add function for creating/attaching hash table in DSM registry
- like pg_shmem_allocations, but fine-grained for DSM registry ?
- a couple of small cleanup patches for DSM-related code
- introduce dynamic shared memory registry
- reorganize "Shared Memory and LWLocks" section of docs