diff options
author | Nathan Bossart <nathan@postgresql.org> | 2025-08-29 20:34:53 -0500 |
---|---|---|
committer | Nathan Bossart <nathan@postgresql.org> | 2025-08-29 20:34:53 -0500 |
commit | 5487058b56e0a27b6b8f6bb7e819f107587c1e54 (patch) | |
tree | 4aa356254e8c66164262fc418cb86e1afe220a0d /src/interfaces/perl5/examples/example.oldstyle | |
parent | f727b63e810724c7187f38b2580b2915bdbc3c9c (diff) |
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
Diffstat (limited to 'src/interfaces/perl5/examples/example.oldstyle')
0 files changed, 0 insertions, 0 deletions