From: Nathan Bossart <nathan@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Prepare DSM registry for upcoming changes to LWLock tranche name
Date: Sat, 30 Aug 2025 01:35:19 +0000
Message-ID: <E1usAUx-002JTN-0l@gemulon.postgresql.org> (raw)
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
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/5487058b56e0a27b6b8f6bb7e819f107587c1e54
Modified Files
--------------
src/backend/storage/ipc/dsm_registry.c | 57 ++++++++++++----------------------
1 file changed, 19 insertions(+), 38 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: nathan@postgresql.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Prepare DSM registry for upcoming changes to LWLock tranche name
In-Reply-To: <E1usAUx-002JTN-0l@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox