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

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Nathan Bossart <nathandbossart(at)gmail(dot)com>
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 23:49:20
Message-ID: aMtJAMRgeH3-YQPb@paquier.xyz
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

On Wed, Sep 17, 2025 at 09:34:24AM -0500, Nathan Bossart wrote:
> Yeah, this stuff is rather precarious, and I'm a bit surprised there
> haven't been more problems in this area.

LWLock handling is quite special, but I am also getting suspicious
about some more shmem areas. Perhaps these deserve a second look,
even if the lwlock handling with its allocation of tranches is kind of
a special treatment.

Anyway, your comment additions in v3 look fine from here.
--
Michael

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2025-09-18 00:44:10 pgsql: Mark shared buffer lookup table HASH_FIXED_SIZE
Previous Message Tom Lane 2025-09-17 20:33:10 pgsql: Calculate agglevelsup correctly when Aggref contains a CTE.