Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uswxK-00DVJA-T8 for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Sep 2025 05:19:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uswxK-004Y8j-1m for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Sep 2025 05:19:50 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uswxJ-004Y8a-OJ for pgsql-hackers@lists.postgresql.org; Mon, 01 Sep 2025 05:19:50 +0000 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uswxH-002mqH-2r for pgsql-hackers@lists.postgresql.org; Mon, 01 Sep 2025 05:19:49 +0000 Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-2445806df50so30673015ad.1 for ; Sun, 31 Aug 2025 22:19:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1756703987; x=1757308787; darn=lists.postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=0VLNLB7fZlsZr65OTDgChnIoG/bnvnhRtEJraX+3dKo=; b=A79DuVAfhVLRoenC+6VO2gQUnxTDW2iW6NDt1hizvvi0V1pYR/eJu5i4Tbe79+c/ue 7N5VRxjl8hxPtzOE7gyR4iO8Qo5UVGBKJlvRRMceEIsDQjZDdfWdBJQF6GdhOI4kFpOJ yxfzeeBQ2aB6sFE/WK6y2q+IfOFCfPZQVSG0YwRJWIWFyMxaSNsFHQUtRTRrn1MlOJQD 81tw/tjFzBtliTGkIB80eRRBXx1PbciBpbIWDwsgw3+yQmRyMimuxY/ipPxFFHKAg4mZ DBEMGt6X010OMZ/4kUQJGEuPDEruR0E/USeT0RFdEa6kbe2W82YzQZ6oT6+s1x/qBq7t MERg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756703987; x=1757308787; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=0VLNLB7fZlsZr65OTDgChnIoG/bnvnhRtEJraX+3dKo=; b=WhZPSPyMwfqIJlkc9R0FhXoiEnxhAzets/Fri+lM9aWRiBNZpD8HwiMfX5GyHOPhmN hdeBcnZOmRTjGDdYuSJyYWNVY6Cvu7JJmNVaxhYklzoBqGkLTeQRHozxNGyZIKLxqvoz UD9a0TfoBgJGr7hUzuJD3naDtDax9evVgMWUP8XmOJgK4LVNCVkNaaZjiQCLhHIAiV6z ISVvTrEQM6YNFYDiz+lNdsQeVjY7ipkPEAnb8lU2IYq9/Z2tMaQjrTXj42t7hqHPKyfY HR4UZ5hJx8P+l6fdTELlPJkSahzIl91XldW7nx97WoyCOakgHhBr5XiunlRsYwJDqnt6 TdbQ== X-Gm-Message-State: AOJu0YwFbW0jpzv9Iuf+x/mPmiI11ctVxuSjmHrfsepfBPk6PH52i0Ko xEz9vFgN/uS1Nv+pYBuRfrxCnzcy74mf33cI/GBwB4P2b6CrpMcRF0V/SGcCVA== X-Gm-Gg: ASbGncvpvC1cLZIgUpsvC+SzhNuL7Eec/1fmgf4ELHHFvMZark2h6kflwND3qixhWSe 42W1BXAN17Gy3HbtsTlgCt9xP9kGKIecYah/P0H9DjvyQBIWkkGAjD/O8ytqz0DxrTf7PF1NQFx 5BkPlqoZ4E6rfM6D61pClDq8ly1BYwpEA1ZUzQPhnarb6sid5h+4QHTVnRGJYY2bLc5ktgBJrfq UpLs5JeRHi9H3iDEE/d9yGzTC2N3Utt/jRjYcc7ap2YhYfQ5WgtqqdOMBt2BEYwcwSUyBypxl0v 6OX3vQy6g9KakSBjHXII+rWQ7nOZideMjwSIXyHykMSSLOLXuPRPgcdmjxQTicNIpl91ITddDmc co9q88a3wVShI9b0= X-Google-Smtp-Source: AGHT+IGqDb3ql+uU42DjylCUh26ls8u56TQtiAC09w7v5wXSL9N1Bo8CaDrHJuQlHz80+CSnM/OMNw== X-Received: by 2002:a17:902:ce8e:b0:24a:d582:fbaa with SMTP id d9443c01a7336-24ad582ff65mr33158855ad.12.1756703987143; Sun, 31 Aug 2025 22:19:47 -0700 (PDT) Received: from jrouhaud ([115.43.41.38]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b4cd38610edsm8117226a12.54.2025.08.31.22.19.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Aug 2025 22:19:46 -0700 (PDT) Date: Mon, 1 Sep 2025 13:19:41 +0800 From: Julien Rouhaud To: Michael Paquier Cc: pgsql-hackers@lists.postgresql.org Subject: Re: Update outdated references to SLRU ControlLock Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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.