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.96) (envelope-from ) id 1vffxP-0040sU-1L for pgsql-hackers@arkaria.postgresql.org; Tue, 13 Jan 2026 15:05:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vffxO-005MiM-1B for pgsql-hackers@arkaria.postgresql.org; Tue, 13 Jan 2026 15:05:18 +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.96) (envelope-from ) id 1vffxO-005MiD-0D for pgsql-hackers@lists.postgresql.org; Tue, 13 Jan 2026 15:05:18 +0000 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vffxM-000F63-1D for pgsql-hackers@postgresql.org; Tue, 13 Jan 2026 15:05:18 +0000 Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-b87124c6295so358293966b.3 for ; Tue, 13 Jan 2026 07:05:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768316714; x=1768921514; darn=postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=RQWpRs79Wt1Fcqzl5IR1fsAGuhlQUaU0SPAA71ZvNQo=; b=iUDEmisvlYFsUQu98YtQhhUA+mizEoPBWVR1H/qgROTpLCQWxGOZiwxLFeretahRpr iLug9Mc0i8xTI/WpcEgCDh8rHow4AWRg+tQ/a5J2vZUk9cL5KPLG3yrR+uLmAncSI0jn iQbEJa3wuy/pA1gJz/MBwfag+RZY5esfX65MYer3usm4MCO0UVh6e4esEcLyTai6X/wH 5vvhgSFZmbcbw9cpJnvT8T30RPgJP9pYhE/EQ+rWq/HmtVTt1MliK2bV26Mg0GKOIGWx 1Wd8uiKZ/00yso6p2r+kADCUeHreZWLYIWHimY+zvLY5sW15wlw92uulKytNQkYzC30J rd4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768316714; x=1768921514; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=RQWpRs79Wt1Fcqzl5IR1fsAGuhlQUaU0SPAA71ZvNQo=; b=HaXmjICPIc6r5TdEKdWLtCYa2cMs17koGQoSMOvYKOcG0v9CMjCpJ5l/l9J/mrz0K6 xnC1sGI1gj6SHGBlag5g8pJU19R8ArMlOki6uCsp75juB5rr5P5b/U3J9j0XlDY4yp7X qG95oF3qqnZ5Ko8JhHmY0RQ13mi5Z8+sfsw8VnMxlDSSaH7KF+8fK/y7aUm6pyjxS4I6 b6fqQe5+RMxP9MgQo3LZEQ6zCoB/FIFHRvQPMaCdgQonS3wU7R/iMUf4qZfE2z6ragpv eYjGo5H4sBBZqekcDf0XvSbRhCmURZgp8geF+9o/gYppWJ7rS7OC7/iwIW7Sot81MudD K+Jw== X-Forwarded-Encrypted: i=1; AJvYcCXpKo5B8O0WjYv7mDvAXSthPVKzYzj7O5DNEtOeb13fFdRgbf0Qv3V7dSpRXMJ5H/BpJ8dAL8PSqzYF818d@postgresql.org X-Gm-Message-State: AOJu0YyORMmPAm1cuFV5i9ptznvj+PStWfyIXj0qUiwKUmSWy0V9umzI jQl02d/IS22eUzZ2DgD5pcys95zTFbI4DW+RdYhFTQ6QRhJ3uuwIZMrC5x3c4714UZHxr3qzrxo Zu/T/oiTlpsw2mDc604xsyYjwwH8hIjk= X-Gm-Gg: AY/fxX5tgPoToeKewKWCE7dOSTRSyCX2CKFk6Usr+g61Av/0OWFUWPpHMjqGAp0DQE7 JrNmHSgGLTfGKzvmqh5umS34zGTD1wGc48zbp793qTzaNu75qM9gx8TjvsYaY5M8cNDi6qUTT6f 1v+ADS3IOiXud66+A19I1+CAPes21OilAZzlbeD+cWy4N3Ekglmdf2mitiYoCocFfZRX35jhlwq fyqBreoxsT+vnKXjfNO1DUJYlKOASUOcmbEyEWP4XQQA6ZOSVqJczmtx+rjrjndj3epfT7RvlAT QQTIDqw1FApaOYE73/z/BGL2eQRo X-Google-Smtp-Source: AGHT+IHioF3+SB2IVA5qMnI1cjkHCvTrhHX+KvDAPr0GqqrMQv+T6GkubvXjgRrbiOuB9+a9n6CEQDkhSxvvbu/pCiU= X-Received: by 2002:a17:907:94cc:b0:b87:124c:5f54 with SMTP id a640c23a62f3a-b87124c62dbmr759431566b.59.1768316713870; Tue, 13 Jan 2026 07:05:13 -0800 (PST) MIME-Version: 1.0 References: <1108f18d-cf7c-4f17-b29c-a119fe42f7e5@iki.fi> <5dwlfu2jyzkyf3nrlzxxblxctb6xio5es73ptgsahjnmfu5miu@772rc764hfhi> <4csodkvvfbfloxxjlkgsnl2lgfv2mtzdl7phqzd4jxjadxm4o5@usw7feyb5bzf> In-Reply-To: From: Melanie Plageman Date: Tue, 13 Jan 2026 10:05:02 -0500 X-Gm-Features: AZwV_QhXqhejw00u9MSpJK6A3BhgmGag4vHAmVxYrqXTGa2KI9s_FWaPVZBOTvk Message-ID: Subject: Re: Buffer locking is special (hints, checksums, AIO writes) To: Andres Freund Cc: Kirill Reshke , Heikki Linnakangas , Matthias van de Meent , pgsql-hackers@postgresql.org, Thomas Munro , Noah Misch , Robert Haas , Michael Paquier Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Jan 12, 2026 at 7:33=E2=80=AFPM Andres Freund = wrote: > > - added a commit that renames ResOwnerReleaseBufferPin to > ResOwnerReleaseBuffer (et al), as it now also releases content locks if= held > > I kept this separate as I'm not yet sure about the new name, partially = due > to there also being a "buffer io" resowner. I tried "buffer ownership"= for > the resowner that tracks pins and locks, but that was long and not clea= rly > better. I didn't look at the patch but I strongly agree that ResOwnerReleaseBufferPin() should not also release locks, so it should have a new name. Ironic that ResOwnerReleaseBufferIO() releases pins and not locks. What about ResOwnerReleaseBufferClaim() or ResOwnerReleaseBufferAccess() or ResOwnerReleaseBufferHold()? - Melanie