pgsql: Fix RequestNamedLWLockTranche in single-user mode

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix RequestNamedLWLockTranche in single-user mode
Date: 2026-03-27 23:02:29
Message-ID: E1w6GCC-001l6R-0v@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix RequestNamedLWLockTranche in single-user mode

PostmasterContext is not available in single-user mode, use
TopMemoryContext instead. Also make sure that we use the correct
memory context in the lappend().

Author: Nathan Bossart <nathandbossart(at)gmail(dot)com>
Discussion: https://www.postgresql.org/message-id/acb_Eo1XtmCO_9z7@nathan

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2407c8db159dbae5afd23080a92122e1acb2f5c1

Modified Files
--------------
src/backend/storage/lmgr/lwlock.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2026-03-27 23:17:19 pgsql: bufmgr: Improve StartBufferIO interface
Previous Message Andres Freund 2026-03-27 22:54:01 pgsql: test_aio: Add basic tests for StartReadBuffers()