Re: Rename LWLockNewTrancheId() parameter from "name" to "tranche_name"

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: Rename LWLockNewTrancheId() parameter from "name" to "tranche_name"
Date: 2026-03-26 19:30:37
Message-ID: acWJXUQVYExHC063@nathan
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Mar 26, 2026 at 01:34:38PM -0500, Sami Imseih wrote:
> While looking at something nearby, I noticed a naming inconsistency for
> the parameter name in LWLockNewTrancheId(). It should be tranche_name,
> similar to RequestNamedLWLockTranche(), and in other places it's
> referenced in the docs/comments.

I don't mind changing it, but I don't find "tranche_name" to be
substantially better than "name" in this case. Maybe it's a little
clearer, but there's not much room for confusion here.

--
nathan

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Sami Imseih 2026-03-26 19:33:52 Re: Rename LWLockNewTrancheId() parameter from "name" to "tranche_name"
Previous Message Matheus Alcantara 2026-03-26 19:18:26 Add custom EXPLAIN options support to auto_explain