pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathandbossart@gmail.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: Nathan Bossart <nathan@postgresql.org>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Move named LWLock tranche requests to shared memory.
Date: Tue, 16 Sep 2025 23:10:34 -0500
Message-ID: <aMo0uqvCDEYmYMQD@nathan> (raw)
In-Reply-To: <aMoqphZNkFJ_iy_K@nathan>
References: <E1uwodL-000EuJ-2j@gemulon.postgresql.org>
	<aMoejB3iTWy1SxfF@paquier.xyz>
	<aMoqphZNkFJ_iy_K@nathan>

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

Attachments:

  v2-0001-fix-LWLock-shmem-reinitialization.patch (text/plain, 0B) download

view thread (9+ messages)  latest in thread

Message-ID: <aMo0uqvCDEYmYMQD@nathan>
Permalink:  ../aMo0uqvCDEYmYMQD@nathan/
Also on:    postgresql.org/message-id/aMo0uqvCDEYmYMQD@nathan

 ·  · 

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: pgsql-committers@postgresql.org
  Cc: nathandbossart@gmail.com, michael@paquier.xyz, nathan@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Move named LWLock tranche requests to shared memory.
  In-Reply-To: <aMo0uqvCDEYmYMQD@nathan>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox