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 1uoTyx-004eYG-Ba for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Aug 2025 21:35:04 +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 1uoTyw-00HF3X-Oi for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Aug 2025 21:35:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uoTyw-00HF3P-Ca for pgsql-hackers@lists.postgresql.org; Tue, 19 Aug 2025 21:35:03 +0000 Received: from mail-il1-x136.google.com ([2607:f8b0:4864:20::136]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uoTyu-000mrB-2A for pgsql-hackers@postgresql.org; Tue, 19 Aug 2025 21:35:02 +0000 Received: by mail-il1-x136.google.com with SMTP id e9e14a558f8ab-3e582bc3720so21690965ab.3 for ; Tue, 19 Aug 2025 14:35:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1755639298; x=1756244098; darn=postgresql.org; h=content-disposition:mime-version:message-id:subject:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=Q04mIW+iDre6Kd0gMn06Xe9GFjCuWunSyx+svKrIkWc=; b=JMNjOJ38T1Iav54PQf9IuPFawzmTew5FF+PnLGonpSrVQDc5pztt0rhoU/oYb4QPZE K+Zuwxhs26YWlCLPEMQ9/j+tB/5jr6p2LUF/pRjVZ3fDlu/Go+9kAqSNx3zL6LLMDE8f wGKZpLx1dZqXTdaBN/1+IsRJZ/hfmf7i63NWv++2IH6qV1DkTe5io6wQdedi2sztm/l9 dUoO0UKnRgIdO5yhhjYGZSjkHvudndme8Ne41A3FZK8b9c/BxdmYq6fPVEp3ykm6xjKG dkvUprxdNNJjvlwTvx9gmAlf1zGr/dWPhUDxZ9Vq3nw06uZ7TVWy+D9tgZOgPxAA6Yil C8ZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755639298; x=1756244098; h=content-disposition:mime-version:message-id:subject:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Q04mIW+iDre6Kd0gMn06Xe9GFjCuWunSyx+svKrIkWc=; b=Izmkt9/zGiYNrfrzmPRG6tGe6/qeAA2dsCcBmuITRH4xs8B5uCZ55gq+94Tlp57PBi 8xdEDZUriAZ+UwGnp2OP3LoFEQrjkQQomgzkcNnYLpVYJJ99lIarGzsro7ixtDAVZNfp tPJLJTCE7mrSHqzYc+i4VNrqAx4mEPN9t7UoXWzqFSelhrbZo+nbna8iaAieCJVO+pCz cn+8HGvgE/6zdY0fpFrgcuAjGsRI6u0O1+XG3gj4l4ZRjtCmSwk9hb8sQu4P/a+QSAb2 EyAX2H0Ic/+CRz+kwTjKqK+07ox0tOVgXpFRoGAkLXe2x6k3xofAspg0CC2ShSv5CHhW hzIQ== X-Gm-Message-State: AOJu0YxzJKlwADPoDkRaLRAnmfj7tavoyni+tylmjbmg2QJKqbbWRx9u pwC9RKTeE458GTJS2s2UhCCC4LmXsJkgC0fbC4HZPb4NoLzbaEUUpiTb4GTsEA== X-Gm-Gg: ASbGncuiND/E2rWxHBIcndl7rXeI6y7W+3+jCjQcsB+giJQPjaq0VDaqcIdrkP7fzgA L+8yw11da/vSAIF+EYPQbFPXl5TLj3TO07zStV6n2R9klSNWuT+pYi6hiCCYtxGkYyObs62PL/D 7QbtK/JwiEJzH4zB9L/uyNweNz9tPzzZJS6rF7RgAb/CyixcrbreiNVQOwPgsUIjUmFKcXw/lXS 3csDsva04datKsbWO7HKdb0piAHOG5U+zvDKcM5/h4guombKYM7qnzknPYkAptyZTU9FMrhZG2Q h8BroaMYYevxrpaYYagMZqGvO5tXBlD/f/W7hV/AwYdWUOoX2hMvrLz0KNyWManAIqQ6kU/TgGI soJVJBvag3DZmAmtPV8h/Ln9CNE4+sewgHbeR5nGVCCZogo4p3MPJwXXo/zUjvFHv2oeZJb9kGj duwVLha7eTr8lZ X-Google-Smtp-Source: AGHT+IFNtxm9arUUGDRjUqTrMWoLbmA9xinNYYOYf12KIPjtHZI+kxQrEnMtqLZgpRE8XenpOqkIGA== X-Received: by 2002:a05:6e02:1a61:b0:3e5:5081:eb8f with SMTP id e9e14a558f8ab-3e67ca67b03mr10409565ab.11.1755639298536; Tue, 19 Aug 2025 14:34:58 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-50c94781d01sm3667807173.4.2025.08.19.14.34.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Aug 2025 14:34:57 -0700 (PDT) Date: Tue, 19 Aug 2025 16:34:56 -0500 From: Nathan Bossart To: pgsql-hackers@postgresql.org Subject: fix comment for MAX_SIMUL_LWLOCKS Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="yE3CtJQbslQ0RF48" Content-Disposition: inline List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --yE3CtJQbslQ0RF48 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline This comment mentions that pg_buffercache locks all buffer partitions simultaneously, but it hasn't done so since v10 (see commit 6e654546fb). -- nathan --yE3CtJQbslQ0RF48 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=v1-0001-Fix-comment-for-MAX_SIMUL_LWLOCKS.patch From 68b81e3bf70d5da0a0e2d0a0087218df7fde1101 Mon Sep 17 00:00:00 2001 From: Nathan Bossart Date: Tue, 19 Aug 2025 16:27:33 -0500 Subject: [PATCH v1 1/1] Fix comment for MAX_SIMUL_LWLOCKS. This comment mentions that pg_buffercache locks all buffer partitions simultaneously, but it hasn't done so since v10. Oversight in commit 6e654546fb. --- src/backend/storage/lmgr/lwlock.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/backend/storage/lmgr/lwlock.c b/src/backend/storage/lmgr/lwlock.c index ec9c345ffdf..c80b43f1f55 100644 --- a/src/backend/storage/lmgr/lwlock.c +++ b/src/backend/storage/lmgr/lwlock.c @@ -162,8 +162,7 @@ LWLockPadded *MainLWLockArray = NULL; /* * We use this structure to keep track of locked LWLocks for release * during error recovery. Normally, only a few will be held at once, but - * occasionally the number can be much higher; for example, the pg_buffercache - * extension locks all buffer partitions simultaneously. + * occasionally the number can be much higher. */ #define MAX_SIMUL_LWLOCKS 200 -- 2.39.5 (Apple Git-154) --yE3CtJQbslQ0RF48--