Re: GetNamedLWLockTranche crashes on Windows in normal backend - Mailing list pgsql-hackers

From Nathan Bossart
Subject Re: GetNamedLWLockTranche crashes on Windows in normal backend
Date
Msg-id aL8fYNxLg_AFOwaZ@nathan
Whole thread Raw
In response to Re: GetNamedLWLockTranche crashes on Windows in normal backend  (Nathan Bossart <nathandbossart@gmail.com>)
List pgsql-hackers
On Mon, Sep 08, 2025 at 11:55:14AM -0500, Nathan Bossart wrote:
> I've started preparing this for commit, and I realized that restricting
> GetNamedLWLockTranche() to shmem_startup_hook is not sufficient.
> EXEC_BACKEND builds will run this hook in every backend, so unless it's
> guarded behind some sort of "if (!found)" condition (i.e., only run in the
> postmaster), it'll still crash.  I think we just need to add some extra
> notes to the docs and check for !IsUnderPostmaster, as discussed upthread.

Or... what if we just moved the request array to shared memory?

-- 
nathan

Attachment

pgsql-hackers by date:

Previous
From: "Burd, Greg"
Date:
Subject: Re: [PATCH] Add tests for Bitmapset
Next
From: Jacob Champion
Date:
Subject: Re: [PG19-3 PATCH] Don't ignore passfile