pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Julien Rouhaud <rjuju123@gmail.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: Update outdated references to SLRU ControlLock
Date: Mon, 1 Sep 2025 13:19:41 +0800
Message-ID: <aLUs7ap5paM8Vq9C@jrouhaud> (raw)
In-Reply-To: <aLUptKkboud-OZAw@paquier.xyz>
References: <aLUT2UO8RjJOzZNq@jrouhaud>
	<aLUptKkboud-OZAw@paquier.xyz>

On Mon, Sep 01, 2025 at 02:05:56PM +0900, Michael Paquier wrote:
> On Mon, Sep 01, 2025 at 11:32:41AM +0800, Julien Rouhaud wrote:
> > Note that the main comment of slru.c still has one paragraph that mentions
> > "bank control lock" consistently before switching to just "control lock" in the
> > next paragraph.  I'm assuming that it's ok in that context as it seems clear to
> > me that those are the same thing, just spelled with a less verbose name.
>
> Good catch, right.
>
> I am not seeing "control" used much as a term (3 times on HEAD).
> There is a lot of "bank lock" or "SLRU bank lock", both being mixed
> depending on the parts of the code using SLRUs (multixact, predicates,
> etc.).

Yes, and some other parts simply mentions "lock" (eg TransactionIdGetStatus)

> "SLRU bank lock" speaks a bit better to me, as the concept relates
> to..  SLRUs, but that's mostly a matter of taste between the three
> wordings, I guess.  Do you have a preference?

I don't really have a preference.  Bank lock is shorter but may be a bit more
obscure, especially outside slru.c, so using "SLRU bank lock" could be better
indeed.





view thread (8+ messages)  latest in thread

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

 · 

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-hackers@postgresql.org
  Cc: rjuju123@gmail.com, michael@paquier.xyz, pgsql-hackers@lists.postgresql.org
  Subject: Re: Update outdated references to SLRU ControlLock
  In-Reply-To: <aLUs7ap5paM8Vq9C@jrouhaud>

* 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