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 1w2m45-000am9-1E for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Mar 2026 08:15:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w2m44-008k55-1C for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Mar 2026 08:15:40 +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 1w2m43-008k4x-2u for pgsql-hackers@lists.postgresql.org; Wed, 18 Mar 2026 08:15:40 +0000 Received: from fhigh-b1-smtp.messagingengine.com ([202.12.124.152]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w2m40-00000000tea-3Osm for pgsql-hackers@lists.postgresql.org; Wed, 18 Mar 2026 08:15:39 +0000 Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfhigh.stl.internal (Postfix) with ESMTP id 7240A7A00FC; Wed, 18 Mar 2026 04:15:34 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-05.internal (MEProxy); Wed, 18 Mar 2026 04:15:34 -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=1773821734; x=1773908134; bh=ltBZOW7WG7 zwRRl10xfIGlT6FjNpdE/SDRX2fvQB+d0=; b=RwXvl1Lrf5hcpMY8s2fVaIPB41 twPh6h5PooJumGDxEIiBa41bbhjsRnHGKt6Gup80SSypdPWclYwfcn7txYmOTGww T7z2am44QCZlvNVicOS0uVDm4B3fqs3ofT34yCoZvOYGh30KHNyG3tde4GvnIw1x jnl2a7GFBQvowRfpWz8fJFDshRElNJkh7Dh8vXaC1lWA+Bd9SrBNBvotRjtaWufj Uem43uCKmzqnuzEwaCN3unSr2oQ8sLJBPTvJzED2CA+belY/SecaKS4t/FJ/Sfaf NVS1g47g4skKqAsqfCla61F0AwQW7g61IkkfUU4Rcu6TKmUxaXk+5ana4ZIA== 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= 1773821734; x=1773908134; bh=ltBZOW7WG7zwRRl10xfIGlT6FjNpdE/SDRX 2fvQB+d0=; b=TAXwo9XY1MovKlviSFEiS9iNnPuhHKTtCLhevC/LSipPehnEiSb CAxKB7jWohAmtxgDzRlRbb+XZ3vjgwHvsyyK0SpYr0+jfODiY2ZwECDgYqrBSaDw YsgI6v+iUqhIfpAi5Qz7f+N8yP4iW6Riteesnx0XINh7MHSlqmU/4NCo+TGAlEQz rWlRJxDiAGh39Cz8JgPl3ocMYpFQVNhKRz6fPeg01tZFpJC+ncuSOl3hd5OkVTWm 3/bCJiGHX2t5XAUYxINhUqB4LBiTZnk83qdNFe9qV2tfqD8LrG+aFcgkK6EQKsWS N7ccrI++xNhImQEwUg5ekO0O2vR8capXBBA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdeftdefieefucetufdoteggodetrf 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; Wed, 18 Mar 2026 04:15:32 -0400 (EDT) Date: Wed, 18 Mar 2026 17:15:27 +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="FyHEoOC59dxN3D2E" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --FyHEoOC59dxN3D2E Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 18, 2026 at 04:36:04AM +0000, Bertrand Drouvot wrote: >> So, we're back to what we were discussing before the split. As in v7, 00= 03 is >> adding the new GUC. So that we can see what having a new GUC implies in = ProcSleep() >> and we can just get rid of 0003 if we think the GUC is not worth the ext= ra complexity >> (I don't have a strong opinion on it but tempted to think that the extra= GUC is >> not worth it). >=20 > PFA, a rebase due to fd6ecbfa75ff. Looking again at this patch, all the fields that you are adding are in non-critical paths, so it looks fine by me to begin with this data set. We may want to document that for future readers of the code to not add counter increments in the fast code paths, where performance could matter. Let's also drop 0003 with the GUC. log_lock_waits is enabled by default and we are in a wait path which would not be performance-critical. Regarding the isolation test, the new permutations add 4 pg_sleep() calls at 500ms each, making the stats test longer. It also looks like the outputs are the same for the two alternate expected files? Do you think that it could be possible to move these tests to a new file, perhaps cutting a bit the sleeps to make it faster? -- Michael --FyHEoOC59dxN3D2E Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmm6Xx8ACgkQnvQgOdby QH1QUw/+M/fmc02OLu+uPEB8sKkaNWNF8vhaKRhtEnLFfFVw3zDvVi/xjdFjAh07 DLmnKxdWo/n8GbXm1LtbypG3X437CgKR+XqR/QB40JR/BdFffCFzdAWnkT+XB/Cz PTId+o3/O7nFAlP2YnadPzcN8vcVM3jzaP335VY7+skJB1RyzSh88euH+efonu0B Ef93uj1bX7QbvqLt92OZqjijzJPokc9T90EiEwMG+Qp0jJbIp7KfYXX9UU3tNers 66XE3AVJ7i4reAz4Ua0boyVWEACmPAOVaDxjyXuJUCAKPBkxQQBm97W5H5V4a/p9 PQjAjuaNR98Ms2qStJaI7mp4V9jsy/A0mxT7vKIWK9c4pUjOAO/YezCbkzYRw/gc rnQhZXxKZUOltrBjCgCZ4tBS8h3p8pU08VRwspT7dmymOjEpZiLdpiVCUa6Z5AoQ yIYpKLjIbyON5RAxZjHQeO4VEgdArJqxTbNmCmXOlOsnVEkJ9N5/ntzChzUImorD 9vCnESkCpPOvE372gvF92kaQ6o8dQw9M8QGF2YsBqDkdSLJpXMWUAuyjiFxmnpBG 73/w/JzasYJSx/f+ck04DEzuJhx0+eHQecsu2MRkuG73Bt6jCXZF3hK8MEEBe1KJ tNua2CnIzMz6mqgVQituytWkDHyK1SjgdTQmWeis3G2wINlowp4= =FTuu -----END PGP SIGNATURE----- --FyHEoOC59dxN3D2E--