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 1ustuC-00CjNA-4S for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Sep 2025 02:04:25 +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 1ustuB-003eit-3a for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Sep 2025 02:04:23 +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 1ustuA-003eik-Q7 for pgsql-hackers@lists.postgresql.org; Mon, 01 Sep 2025 02:04:23 +0000 Received: from fhigh-b5-smtp.messagingengine.com ([202.12.124.156]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1ustu9-002uud-14 for pgsql-hackers@postgresql.org; Mon, 01 Sep 2025 02:04:23 +0000 Received: from phl-compute-09.internal (phl-compute-09.internal [10.202.2.49]) by mailfhigh.stl.internal (Postfix) with ESMTP id E2DBD7A019E; Sun, 31 Aug 2025 22:04:19 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-09.internal (MEProxy); Sun, 31 Aug 2025 22:04:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1756692259; x=1756778659; bh=swIKiPqXxj 9ApFT7eGUA43sRw+ZOLPTYLu8UUMPLKKo=; b=ant4JZnvlXJ3+hhFCRbXxz1Mzt jVGZqqp6Z0w2yb8c2/1WMtz6A1B8dqfMS8DnChgSzHay0VFyM35R2PoS0xfH2LP9 PWqIHo8Q+Z92wz68ryReOklonHPO1U70r/nADuvLO5YU8fYuvvcJuyYr5bg1K9dk MsHCekYNWDDmuQW5/dIcXmj+zmLWPm9tNaAF4+7FzFnBmCM5SQ6aDy1w51u2p/mF qAbPn1X/Hp1ku+n6iiXOxkyzMD2ARY4zlxDBxj/akoq6XRssWZsWyOxRzIte+cCf YTaupCNN4EzRzYuggol2K60ohztS1TkgsAe2DuS9jVgIBeLBv5l6odGBXWag== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1756692259; x=1756778659; bh=swIKiPqXxj9ApFT7eGUA43sRw+ZOLPTYLu8 UUMPLKKo=; b=UvkX4IUuggMo+hxJyw5FlGKsRDWgQdQocckcyHDDI6//cgAnJAZ 5XwrHLa8j3RQEp9B6Wyw2TBbYug4XmPVvP6PtPGIqNRJCcFSjk9vCkojzn8R9Wxq QOYpeSXK7LUMTnrOrwjN8SfzR61z6IjFn1TsgVtlEb42i6MQgVqUYntphe/KssyD Y2rIObs1StpNVbvrlwt4GU0dEvfJcYTz4u6tSiP5FOxx1vrg/s6rn67U5mMyt56u s7kVureE+iC0UVgUlWEgVH1IrGoUOqF4rphe3e2/0PFeEFJixOLz2RoOhiB8D6na +ND0HTraNapA3mhpH3q9k/t/3gal8vVLZTg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdduledtleduucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrh hlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeggeeg fffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiidp nhgspghrtghpthhtohepjedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheprhhosg gvrhhtmhhhrggrshesghhmrghilhdrtghomhdprhgtphhtthhopehnohgrhheslhgvrggu sghorghtrdgtohhmpdhrtghpthhtoheprghnughrvghssegrnhgrrhgriigvlhdruggvpd hrtghpthhtohepphhgshhqlhdqhhgrtghkvghrshesphhoshhtghhrvghsqhhlrdhorhhg pdhrtghpthhtohepmhgvlhgrnhhivghplhgrghgvmhgrnhesghhmrghilhdrtghomhdprh gtphhtthhopehthhhomhgrshdrmhhunhhrohesghhmrghilhdrtghomhdprhgtphhtthho pehhlhhinhhnrghkrgesihhkihdrfhhi X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 31 Aug 2025 22:04:16 -0400 (EDT) Date: Mon, 1 Sep 2025 11:03:55 +0900 From: Michael Paquier To: Robert Haas Cc: Noah Misch , Andres Freund , pgsql-hackers@postgresql.org, Melanie Plageman , Thomas Munro , Heikki Linnakangas Subject: Re: Buffer locking is special (hints, checksums, AIO writes) Message-ID: References: <20250827001449.fb.nmisch@google.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="93xxMouyZGr8phR+" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --93xxMouyZGr8phR+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Aug 27, 2025 at 10:03:08AM -0400, Robert Haas wrote: > If we were to use the existing PostgreSQL naming convention, I think > I'd probably argue that the nearest parallel to this level is > ShareUpdateExclusive: a self-exclusive lock level that permits > ordinary table access to continue while blocking exclusive locks, used > for an in-flight maintenance operation. But that's arguable, of > course. ShareUpdateExclusive is a term that's been used for some time now and relates to knowledge that's quite spread in the tree, so it feels like a natural fit for the use-case described on this thread as we'd want a self-conflicting lock. share-exclusive did not sound that bad to me, TBH, quite the contrary, when applied to buffer locking for aio. "intent" is also a word I've bumped quite a lot into while looking at some naming convention, but this is more related to the fact that a lock is going to be taken, which we don't really have. So that feels off. -- Michael --93xxMouyZGr8phR+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmi0/wsACgkQnvQgOdby QH3bghAAjRUyrueJmhW+9wxJerQrfK5hjWE7Rz2tZ1CCEEu5LD/7bcP+9LjoydXT vkglIFsuMomAWvWIhC9U+pIz5EJVsUy4ebYN4bertAEI9u/VmkJe4v0U0hx/dDUo vuB/8U590pEWEJVdhTtP25yRMTBlF3GT8YVn9jvNEDqxza5F+5XjCeoHrRHoP3+b a+aMvA2vjAqK7qQDt7pyuoWi/65TYGKXVxkpLP0X88UNvL1+6AQc7weqfTYsy9+u 4nJb5uo8ldvWOQudHMLqXGWY+msgQa73Ho16miZ2Ub/o/ppyiUHMlAvoMwb4FyxJ r1L31L0Z1w1NoyLdNV/fus0CflwFJ8PHSGcaFXEygR5LSRAVRF17M8pWMUKKv3gZ jHfN7eqzRnGU8RPT75He8vUEaolMNt9JiOXYuQIZMhGM8etax+rl7ldRY38AbGFL Bb4yBiwtF5Sd6NyJQn1ui5vaveMrbB36sDut6UpI9KJywpaAs+IsFje0ltOCa5DC razBehnIUHK6QbSIomAZn8VSeNbMD095fFxeUHUEX8mhBQULIIDNAxn7ZAR/Kifg 7eioFG5RJ7gxTEtlpaHbGTcpQtj9C+DWWDZ1WZbvbomusOHVxIJ6p/KVrRD0jVyN YJJgqLbAEnVuRrtUETOJXHJlP/cLHIJ53YVuyDG2MSGdCsaJAR8= =jMIw -----END PGP SIGNATURE----- --93xxMouyZGr8phR+--