Re: pgsql: Move named LWLock tranche requests to shared memory.

From: Nathan Bossart <nathandbossart(at)gmail(dot)com>
To: Michael Paquier <michael(at)paquier(dot)xyz>
Cc: Nathan Bossart <nathan(at)postgresql(dot)org>, pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: Re: pgsql: Move named LWLock tranche requests to shared memory.
Date: 2025-09-17 04:10:34
Message-ID: aMo0uqvCDEYmYMQD@nathan
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

On Tue, Sep 16, 2025 at 10:27:34PM -0500, Nathan Bossart wrote:
> It looks like the postmaster is trying to access the request array after
> re-initializing shared memory, which of course fails. So, we need to keep
> the request array in postmaster's local memory, too. Attached is a quick
> attempt at a fix.

I was able to simplify the patch.

--
nathan

Attachment Content-Type Size
v2-0001-fix-LWLock-shmem-reinitialization.patch text/plain 1.6 KB

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2025-09-17 04:47:19 Re: pgsql: Move named LWLock tranche requests to shared memory.
Previous Message Nathan Bossart 2025-09-17 03:27:34 Re: pgsql: Move named LWLock tranche requests to shared memory.