From: | Nathan Bossart <nathan(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Revert recent change to RequestNamedLWLockTranche(). |
Date: | 2025-09-04 20:35:37 |
Message-ID: | [email protected] |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Revert recent change to RequestNamedLWLockTranche().
Commit 38b602b028 modified this function to allocate enough space
for MAX_NAMED_TRANCHES (256) requests, which is likely far more
than most clusters need. This commit reverts that change so that
it first allocates enough space for only 16 requests and resizes
the array when necessary. While at it, remove the check for too
many tranches from this function. We can now rely on
InitializeLWLocks() to do that check via its calls to
LWLockNewTrancheId() for the named tranches.
Reviewed-by: Sami Imseih <samimseih(at)gmail(dot)com>
Discussion: https://postgr.es/m/aLmzwC2dRbqk14y6%40nathan
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/d814d7fc3d5257ae258b502229fc7ca97c97270a
Modified Files
--------------
src/backend/storage/lmgr/lwlock.c | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2025-09-05 04:00:06 | pgsql: Change pg_lsn_in_internal() to use soft error reporting |
Previous Message | Peter Eisentraut | 2025-09-04 15:25:54 | pgsql: Clean up newly added guc_tables.inc.c |