pgsql: Fix RequestNamedLWLockTranche in single-user mode - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Fix RequestNamedLWLockTranche in single-user mode
Date
Msg-id E1w6GCC-001l6R-0v@gemulon.postgresql.org
Whole thread Raw
List 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@gmail.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(-)


pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: pgsql: test_aio: Add basic tests for StartReadBuffers()
Next
From: Andres Freund
Date:
Subject: pgsql: bufmgr: Improve StartBufferIO interface