Prepare DSM registry for upcoming changes to LWLock tranche names.
Nathan Bossart <nathan@postgresql.org>
Prepare DSM registry for upcoming changes to LWLock tranche names. A proposed patch would place a limit of NAMEDATALEN-1 (i.e., 63) bytes on the names of dynamically-allocated LWLock tranches, but GetNamedDSA() and GetNamedDSHash() may register tranches with longer names. This commit lowers the maximum DSM registry entry name length to NAMEDATALEN-1 bytes and modifies GetNamedDSHash() to create only one tranche, thereby allowing us to keep the DSM registry's tranche names below NAMEDATALEN bytes. Author: Sami Imseih <samimseih@gmail.com> Discussion: https://postgr.es/m/aKzIg1JryN1qhNuy%40nathan
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/ipc/dsm_registry.c | modified | +19 −38 |
Discussion
- Improve LWLock tranche name visibility across backends 107 messages · 2025-07-09 → 2025-11-12