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 1w3pJN-001a29-2P for pgsql-hackers@arkaria.postgresql.org; Sat, 21 Mar 2026 05:55:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w3pJM-0091Ut-02 for pgsql-hackers@arkaria.postgresql.org; Sat, 21 Mar 2026 05:55:48 +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.96) (envelope-from ) id 1w3pJL-0091Uk-2A for pgsql-hackers@lists.postgresql.org; Sat, 21 Mar 2026 05:55:48 +0000 Received: from fhigh-a4-smtp.messagingengine.com ([103.168.172.155]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w3pJK-00000000HTK-1EjL for pgsql-hackers@lists.postgresql.org; Sat, 21 Mar 2026 05:55:47 +0000 Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfhigh.phl.internal (Postfix) with ESMTP id 7D9F61400199; Sat, 21 Mar 2026 01:55:45 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-02.internal (MEProxy); Sat, 21 Mar 2026 01:55:45 -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=1774072545; x=1774158945; bh=vEdNE9jLlo 9HsgKCEK9JD2vFNKuMvd0x51yx3EPRoSM=; b=Bgboe8aecpozDv4g0m/jAL5ZCT /F/Xc2aWNc9/FZEao0NHj1PWigRXjzTFw44xe6w6iZqOO4UfRZrMxMcxODx8pTz8 4FwPsER+DHPsWax6FKdpp43IutIqFFS230UrpZ+tqOirN/r/9t9PSqy3KrEyz/V1 TJ31HQh2plFFLCbR+C+36KCOB/HIjhfOx28YVewuBz4kT2tE+Cp5dwOJTI1VrtlL pDKl8SauUPLav+Sl9jhasazThG4iJ8oV2n32xe+l2oNrnqTVsT+p+rvBZjjgEec/ M3jXNt5dT93rOGw65CA4nnp+MKHkJWL4F3RhIkg65/+MlpNlJdend4WefA3g== 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= 1774072545; x=1774158945; bh=vEdNE9jLlo9HsgKCEK9JD2vFNKuMvd0x51y x3EPRoSM=; b=u3Pwpo4k00vYFPNsWI1XJfKbKZRkj+NoY8YDn+Q516acM+7HZof brSUIUJUtC0SNqk//wWywWBzSZf3N2RcRjz/h+H2YwrMTVO0m5LYx9Y9fYXNr8Q3 smeEVTZhlIJGffIs/73MxF3NU8ScSB/Argb54sGhryG4gx9A3c+auAoI9FddPLgs DhHfTr/N/2c4bkxAzx29lGYWdp3npFxhBalyKrM+EjnR0VkmC4kWWLiqMqfnSEE3 MlEsgjVlkz5IHZ50JQBeVJOJmqV9gpw+ng9ZacVsSClk/PL5NdxNjM9/vdgIBkWJ LGhTt2k5e5oRByfOZtjeyg2wTU6i7kLrRLw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdefuddvtdefucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrh hlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeggeeg fffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiidp nhgspghrtghpthhtohephedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepsggvrh htrhgrnhguughrohhuvhhothdrphhgsehgmhgrihhlrdgtohhmpdhrtghpthhtoheprghn ughrvghssegrnhgrrhgriigvlhdruggvpdhrtghpthhtohepphhgshhqlhesjhdquggrvh hishdrtghomhdprhgtphhtthhopehhthgrmhhfihgushesghhmrghilhdrtghomhdprhgt phhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehlihhsthhsrdhpohhsthhgrhgvshhqlh drohhrgh X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 21 Mar 2026 01:55:37 -0400 (EDT) Date: Sat, 21 Mar 2026 14:55:33 +0900 From: Michael Paquier To: Bertrand Drouvot Cc: Andres Freund , Jeff Davis , Greg Sabino Mullane , pgsql-hackers@lists.postgresql.org Subject: Re: Adding locks statistics Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Lo09U1TgnSNj3tsP" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Lo09U1TgnSNj3tsP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Mar 19, 2026 at 12:25:41PM +0000, Bertrand Drouvot wrote: > That's a good idea! I only moved LockTagType, LOCKTAG_LAST_TYPE, LockTagTypeNames > and LOCKTAG into a new locktag.h. I chose not to move the SET_LOCKTAG_* macros > because then we'd also need to move DEFAULT_LOCKMETHOD and USER_LOCKMETHOD that > I think are better suited in lock.h. While looking at the full set of declarations, I've come to disagree to that: by moving the macros, we also do not need to know about the internal field names of LOCKTAG across multiple headers. > I did not check if there are any other files that could benefit of using > locktag.h instead of lock.h but that's something I'll do and open a dedicated > if any (once locktag.h is in the tree). I have checked after that, and did not spot an area (except your patch of course). And applied this part. > Not sure as we already have multixact-stats. Ah, right. I did not notice this one. This existing name sounds OK by me, then. -- Michael --Lo09U1TgnSNj3tsP Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmm+MtUACgkQnvQgOdby QH2CqA/7BBtxyjYl5fO+oK/DPrqizLkNFgiTQU48TUQVDZnqEz/CWLf1ObM1L9Tf 3c/m3f64xXVU4K6n9hgBa0fRdw0mObmVV8dxld8DYsK4GdaxWQ6HFYwFUfl9+GBd evxLpk/RkOwTyxnujJwSaHOCWqpAB+q50SylKMUtmgMzzdnpEAdltV3ksMmthb8r K5Rw6ZjXanZkb3nhNoIiP6XnRmNT4rKFIMqhvPZJX0u9RBclEgzuRWJ5iPT9f5vz dmXZAPEQHZxpgvrnrvmteZlgjeTOEQjDdqHeXKMT+kUzWQ6GNR1dp9/ZWQeOy44P NWziDKFiSL4eZYqsG+foe+VGA9vyHYgtBi41MWJbuXNJrqvjXm7HB6J1NUJp3hZR vZ0yOLeLmtNb+cUWMBj91PKdLhbKxbyNl4EoSEpdORnNldJEckTbDMl54iGWIhLg I6iBe0uetVLbqbAODRaOfeCFWwSnwWlUPvYl4PZ4CSv6qOjr8shWeqm9EBfM+0nO vOuE6V7n6ShqwoNpsmHiQH+BOJm3vYTQ4h8HgnP8npmKvTMYsmk+RWC1NxH7X/cu xFZQiXs8CxWi7JdC3S8bmj23xRRdn5uDgppedXIeTwUjaXE5NlYr3RvkKJluwd8R XKLK/emadBIaJmJOpb10tKp7AQjqGNlNKEvlwuhAGtw1WyyDSrY= =QPDi -----END PGP SIGNATURE----- --Lo09U1TgnSNj3tsP--