Re: GetNamedLWLockTranche crashes on Windows in normal backend

From: Nathan Bossart <nathandbossart(at)gmail(dot)com>
To: Sami Imseih <samimseih(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: GetNamedLWLockTranche crashes on Windows in normal backend
Date: 2025-09-17 15:31:00
Message-ID: aMrUNHKiUUo3RaYV@nathan
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Sep 16, 2025 at 04:04:39PM -0500, Sami Imseih wrote:
> startup tranches should be:
>
> #define NUM_STARTUP_TRANCHES (2)
>
> instead of:
>
> #define NUM_STARTUP_TRANCHES (256 - 2)

Why?

> I do think we should add tests for LWLockInitialize to test error for
> an unregistered tranche.

I added an initialization test.

--
nathan

Attachment Content-Type Size
v7-0001-test_lwlock_tranches.patch text/plain 11.4 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2025-09-17 15:33:52 Re: Schedule for PG 18 RC and GA releases
Previous Message Tom Lane 2025-09-17 15:23:22 Re: Schedule for PG 18 RC and GA releases