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 1w9dKs-001bTM-0j for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Apr 2026 06:21:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w9dJq-006rRk-0b for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Apr 2026 06:20: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 1w9dJp-006rRc-0g for pgsql-hackers@lists.postgresql.org; Mon, 06 Apr 2026 06:20:18 +0000 Received: from fout-b6-smtp.messagingengine.com ([202.12.124.149]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w9dJl-00000000r7K-3mLk for pgsql-hackers@lists.postgresql.org; Mon, 06 Apr 2026 06:20:17 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfout.stl.internal (Postfix) with ESMTP id C51751D000E8; Mon, 6 Apr 2026 02:20:11 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Mon, 06 Apr 2026 02:20:12 -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=fm2; t=1775456411; x=1775542811; bh=BP3VLS8Dhc bUz1sOmaYy43MgbqlYfQt0JuaBnqum8nQ=; b=AvJeTefsOE5vwZL+O4duPxRErQ XFJWoNEEstw8dh/bNz0QEnPnThcO3BZtyN/KmVNs999WHHhmIfmoBgeYAUP4h75e dsNKM6q298zV+SHQi8oSbLUiKK4l+VO8+mlW0VTnOWugmEvmxSdcpI63ETKKFVnB rjbPf86jFo4WBq+k98ajz26STobVCLy1/3fDs6yktOpowIGCR78bLuFxS6BzxFea 57K+a2ziirYbYQdSInDISYFkKskq9gIQRq7aZTDpFi6PxEw4DZqvLHrONhk7IS3t nqQCC/OVVoejOkfOkaq892jxXRKTCt706qPHxGHGmS3VC45kkeabTHP+Gxyg== 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=fm2; t= 1775456411; x=1775542811; bh=BP3VLS8DhcbUz1sOmaYy43MgbqlYfQt0Jua Bnqum8nQ=; b=dG0R5VYLQssiqihZp0CYBeVt30Nl2V5Gb3SsNzFBmLPVWvM2ZKO cFOKXVU65HV1Riahk2HR0PNxYG9+7Lve0Y53/7pmLOePlFgd5n6xdmi4OKsS+Svk Qowv3cZVdLNl5PaSJGvEZ8DQJMM9VZ7qjRPHf5nzaqN0+Qumj8hr1uqPKA4WXTf6 FOIpuOAoDeCiEHSFuTYndoZ/wUloh+M30yUQ/146orniQCZV4gaCnSSHx44BmFcK 9Ae3ChsBcRE9sdNhs5XX/w+9pj2G2PqFxslMujU5I/U7wHEtrlTQBhyCmOJtjpUh DtSc4k23uJeehnSrwtX4PJogUfsD89Bx4Qw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdduieelhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlh cuvffnffculdefhedmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddtvden ucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprghquh hivghrrdighiiiqeenucggtffrrghtthgvrhhnpeeghfehfeekueevjeehtdfhveefleff veefteelgfejvdffieeihfdtvdegtdefjeenucffohhmrghinheptghirhhruhhsqdgtih drtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm pehmihgthhgrvghlsehprghquhhivghrrdighiiipdhnsggprhgtphhtthhopeehpdhmoh guvgepshhmthhpohhuthdprhgtphhtthhopegrnhgurhgvshesrghnrghrrgiivghlrdgu vgdprhgtphhtthhopegsvghrthhrrghnuggurhhouhhvohhtrdhpghesghhmrghilhdrtg homhdprhgtphhtthhopehpghhsqhhlsehjqdgurghvihhsrdgtohhmpdhrtghpthhtohep hhhtrghmfhhiughssehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtg hkvghrsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 6 Apr 2026 02:20:07 -0400 (EDT) Date: Mon, 6 Apr 2026 15:19:57 +0900 From: Michael Paquier To: Andres Freund Cc: Bertrand Drouvot , 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="oO+QiBsRhwn8HFVf" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --oO+QiBsRhwn8HFVf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 06, 2026 at 01:22:23AM -0400, Andres Freund wrote: > https://cirrus-ci.com/task/6253659454963712 > https://api.cirrus-ci.com/v1/artifact/task/6253659454963712/testrun/build= /testrun/test_misc/011_lock_stats/log/regress_log_011_lock_stats >=20 > [04:33:31.756](0.067s) # die: error running SQL: 'psql::1: ERROR: = could not detach injection point "deadlock-timeout-fired"' I got a way to reproduce the same error pattern with the following trick: --- a/src/backend/utils/misc/injection_point.c +++ b/src/backend/utils/misc/injection_point.c @@ -357,6 +357,8 @@ InjectionPointDetach(const char *name) int idx; int max_inuse; + pg_usleep(5 * 1000000L); + LWLockAcquire(InjectionPointLock, LW_EXCLUSIVE); Now looking at it, and for the reason why 010 for concurrent indexes does not complain.. -- Michael --oO+QiBsRhwn8HFVf Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmnTUI0ACgkQnvQgOdby QH0N0Q//Yq+VAYVwnh/M1926aiXKJg+6ivu4dowTYOIxK9jJXPJ3gtMAbXDbyGZV Vco9Ny6mO8urqQqqZ+3qy3p1hOMTZH0WHv/Oxxw3noemYXtJnPgpzTSkDl/Wx6RA OCjazucsjYMgZrCcwCdXE3FCsgq19P9rJKM9YVz2mkS5/iam/MQcRUVYJSNR7w1b bm8WI/b+AAUYn/aJGvxN+gFK7389Gzai/OvNYfXjdGsoZtRr8qM2Clyy4kA7H+o2 x6tvsS4v9MUVJMLaP5d4D94iim27ZVTe31RiMIKKHOBZwRWT6T/cxuMe4Pag4ip5 m9F7RPgIwXUhHmo68eXxXe4lthrSegVK9YDQ2sp7hDAIOKcUO1sUMIgPe0Zx3guz IKyP3mkLm3hs3c4RIwnzCugwHQaU89KtCXIDozG6TkRHbiO5EcA6Y0i1Yb5u0GKl dHXpR2JBvZG3hdn4HhWf8t6hgVLzfqiWlSchHMJ3ZdDupQtbMQHPZxs9cm3LiSjl unjeS+B1SesygjQRlo93mIa+cgShuy0SNs8bw58Hc2DD6+lXWRS3b1HnpgoBj+ql 2h7d5kiFku0YyOSclgig2oRrJI9W2+MR4HXSTHcmwWhJSFyiiZ5A2kEWAz6thPWX 9TBcjmwOrxPwIlnAJRKc2mj//6hRFtuw+WKOWcbp6H0+w0912bs= =xbME -----END PGP SIGNATURE----- --oO+QiBsRhwn8HFVf--