On Fri, Aug 29, 2025 at 09:43:26AM -0500, Nathan Bossart wrote:
> Good idea. Here's a new version of the patch. If CI is happy with it,
> I'll go ahead and commit it.
Committed.
--
nathan
t IMHO it kind-of defeats the purpose,
which is to make this stuff simpler and easier to follow.
--
nathan
>From babaa2bfedd24932b6df13bfea0f4b01e911a311 Mon Sep 17 00:00:00 2001
From: Nathan Bossart
Date: Fri, 29 Aug 2025 09:33:55 -0500
Subject: [PATCH v2 1/1] Make LWLockCounter a global variable.
In lwlock
Hi,
On Thu, Aug 28, 2025 at 05:56:07PM -0400, Tom Lane wrote:
> Nathan Bossart writes:
> > In lwlock.c, uses of LWLockCounter must first calculate its address in
> > shared memory with something like this:
>
> > LWLockCounter = (int *) ((char *) MainLWLockArray - sizeof(int));
>
> > This ap
Nathan Bossart writes:
> In lwlock.c, uses of LWLockCounter must first calculate its address in
> shared memory with something like this:
> LWLockCounter = (int *) ((char *) MainLWLockArray - sizeof(int));
> This appears to have been started by commit 82e861f in order to fix
> EXEC_BACKEND
001
From: Nathan Bossart
Date: Thu, 28 Aug 2025 16:22:02 -0500
Subject: [PATCH v1 1/1] Make LWLockCounter a global variable.
---
src/backend/postmaster/launch_backend.c | 3 +++
src/backend/storage/lmgr/lwlock.c | 15 ---
src/include/storage/lwlock.h| 1 +
3 files ch