public inbox for [email protected]
help / color / mirror / Atom feedFrom: Sami Imseih <[email protected]>
To: Heikki Linnakangas <[email protected]>
Cc: Nathan Bossart <[email protected]>
Cc: Robert Haas <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: Clean up NamedLWLockTranche stuff
Date: Fri, 27 Mar 2026 09:53:36 -0500
Message-ID: <CAA5RZ0vPWNMvTBqyH7nqDRrHd6Y4Et5iNqXFuwpbsPOk3cL4rQ@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
<acVEqGemyK-Yjswa@nathan>
<[email protected]>
<CAA5RZ0ueB84OUews-mS0+ojeWaDtcoV1qY4CNZD8PrdGcaXW-g@mail.gmail.com>
<[email protected]>
<[email protected]>
<CAA5RZ0s+-_d6RBSfmLvekGLTCi2EZ7hiHp3RhMVDEexGXq=7Vg@mail.gmail.com>
<CAA5RZ0sLENRM+BicUjQFs_rP38oPx3gm0SsGrD0-jMhhM+HZ_w@mail.gmail.com>
<[email protected]>
> Committed with that little change, thanks!
Thanks!
I think there is one more comment cleanup in lwlock.c
/*
- * This points to the main array of LWLocks in shared memory. Backends inherit
- * the pointer by fork from the postmaster (except in the EXEC_BACKEND case,
- * where we have special measures to pass it down).
+ * This points to the main array of LWLocks in shared memory.
*/
we no longer need to take special measures to pass down MainLWLockArray
through the BackendParameters.
--
Sami
Attachments:
[application/octet-stream] v1-0001-Remove-another-outdated-comment-regading-MainLWLo.patch (990B, 2-v1-0001-Remove-another-outdated-comment-regading-MainLWLo.patch)
download | inline diff:
From e13f8683b3fc4ef08ad7892e8f6b55c74ab52fc5 Mon Sep 17 00:00:00 2001
From: Sami Imseih <[email protected]>
Date: Fri, 27 Mar 2026 14:49:02 +0000
Subject: [PATCH v1 1/1] Remove another outdated comment regading
MainLWLockArray
---
src/backend/storage/lmgr/lwlock.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/backend/storage/lmgr/lwlock.c b/src/backend/storage/lmgr/lwlock.c
index 7a68071302a..ade5c652e37 100644
--- a/src/backend/storage/lmgr/lwlock.c
+++ b/src/backend/storage/lmgr/lwlock.c
@@ -146,9 +146,7 @@ StaticAssertDecl(lengthof(BuiltinTrancheNames) ==
"missing entries in BuiltinTrancheNames[]");
/*
- * This points to the main array of LWLocks in shared memory. Backends inherit
- * the pointer by fork from the postmaster (except in the EXEC_BACKEND case,
- * where we have special measures to pass it down).
+ * This points to the main array of LWLocks in shared memory.
*/
LWLockPadded *MainLWLockArray = NULL;
--
2.47.3
view thread (14+ messages) latest in thread
reply
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: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected]
Subject: Re: Clean up NamedLWLockTranche stuff
In-Reply-To: <CAA5RZ0vPWNMvTBqyH7nqDRrHd6Y4Et5iNqXFuwpbsPOk3cL4rQ@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox