Re: GetNamedLWLockTranche crashes on Windows in normal backend

From: Sami Imseih <samimseih(at)gmail(dot)com>
To: Nathan Bossart <nathandbossart(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 16:08:12
Message-ID: CAA5RZ0sJixtPTbrkCZCx-FXFNvhF8xc_WE2CgL-dg1JQ6kEKPw@mail.gmail.com
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?

It does not really matter for the tests being done, but it just
seems odd that you would create 254 tranches during startup and
leave room for only 2 dynamic tranches. It is not the typical
pattern out there, in my opinion.

--
Sami

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Nathan Bossart 2025-09-17 16:19:41 Re: GetNamedLWLockTranche crashes on Windows in normal backend
Previous Message Robert Haas 2025-09-17 16:01:47 Re: Parallel heap vacuum