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 1sFMQZ-001Zsp-6O for pgsql-hackers@arkaria.postgresql.org; Thu, 06 Jun 2024 23:21:52 +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 1sFMPZ-0054tc-Oj for pgsql-hackers@arkaria.postgresql.org; Thu, 06 Jun 2024 23:20:50 +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.94.2) (envelope-from ) id 1sFMPY-0054tR-Kl for pgsql-hackers@lists.postgresql.org; Thu, 06 Jun 2024 23:20:50 +0000 Received: from fout5-smtp.messagingengine.com ([103.168.172.148]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sFMPW-0004Mo-MZ for pgsql-hackers@postgresql.org; Thu, 06 Jun 2024 23:20:48 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfout.nyi.internal (Postfix) with ESMTP id 2027F1380092; Thu, 6 Jun 2024 19:20:45 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 06 Jun 2024 19:20: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=1717716045; x=1717802445; bh=wGZ2GrlIt/ 8Ns7AJhWyMPrBanAHLHIOo2DbdbiyhnNw=; b=Y/xs9/Qoq2ki2lwKxDASiPP1Rx 1BFdCQ043PwoGCA6OGv6sB6qDufe+VhWf+R71y6kg+AL7qOn4VQPi879CjNBXu/L /vZGA1x5KHUZEn+NQkq1DQHhBSxRgjfmed0KF3JMwX1uZucAzedb4d2N1sPjbJ4w 5Q+fbN+eGF+awXKjTfV4S0SiW9tCUt+irr0Yu4pMgzW4iNPCCY/RNngQktk/K7DU ltQzXV1tN+MG9bmuZOYTgh3gI6miUxjjfw6iVSwcL4dls7fcmEIocB/rzifkCqW/ A+XpprwQvZfBWmKFQMxmXnvkynJ95delE8NwCiNPSf54RwemAiiTOGO/EjnQ== 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-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1717716045; x=1717802445; bh=wGZ2GrlIt/8Ns7AJhWyMPrBanAHL HIOo2DbdbiyhnNw=; b=EzlsZ/W/ZL4wG8IxEhy3fu8x8VBUhxQQqGHVg7c6EbVU YSH45aWpTl2N8gCmCTxRTSR4bZ+M/U6sNr9eyfrqgrm4srYmzzkpcIKUkfxi6ZSo qasTzds0OTYfPLSIyvq4u/jvx3HNKM21jTDa87yzU850GHiSWgYBeiauDcWhVc56 8TSVnnCnfALR3Cub9mU48yrsmWQ9C9PUew5sQkQ+rFXZdkf5WgKYGHCIGifv1rKG ib8yHe0Op7Q9RXh6p73+OvpEYpT+R0I8dXcq8nT0TfeNjLEx0I4rDlMrTxaXrVJJ pyyXt3PbP+nS/d5G8W0pkdCjgnJlBpqhy2sAfTeOZQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdelledgvdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeg geegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 6 Jun 2024 19:20:42 -0400 (EDT) Date: Fri, 7 Jun 2024 08:20:21 +0900 From: Michael Paquier To: Robert Haas Cc: Noah Misch , pgsql-hackers@postgresql.org, Tom Lane , Smolkin Grigory Subject: Re: race condition in pg_class Message-ID: References: <20231027044404.7e.nmisch@google.com> <20231027184832.9b.nmisch@google.com> <1596629.1698435146@sss.pgh.pa.us> <20231027214946.79.nmisch@google.com> <1617596.1698446455@sss.pgh.pa.us> <20231027232612.99.nmisch@google.com> <20231102030915.d3.nmisch@google.com> <20240512232923.aa.nmisch@google.com> <20240605181706.fe.nmisch@google.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="PmGqFv0zPZMeiGEy" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --PmGqFv0zPZMeiGEy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Jun 06, 2024 at 09:48:51AM -0400, Robert Haas wrote: > It's not this patch set's fault, but I'm not very pleased to see that > the injection point wait events have been shoehorned into the > "Extension" category - which they are not - instead of being a new > wait_event_type. That would have avoided the ugly wait-event naming > pattern, inconsistent with everything else, introduced by > inplace050-tests-inj-v1.patch. Not sure to agree with that. The set of core backend APIs supporting injection points have nothing to do with wait events. The library attached to one or more injection points *may* decide to use a wait event like what the wait/wakeup calls in modules/injection_points do, but that's entirely optional. These rely on custom wait events, plugged into the Extension category as the code run is itself in an extension. I am not arguing against the point that it may be interesting to plug in custom wait event categories, but the current design of wait events makes that much harder than what core is currently able to handle, and I am not sure that this brings much at the end as long as the wait event strings can be customized. I've voiced upthread concerns over the naming enforced by the patch and the way it plugs the namings into the isolation functions, by the way. -- Michael --PmGqFv0zPZMeiGEy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmZiRDUACgkQnvQgOdby QH0iFw//SHwb3tUQikMs9yKJJ90qqiRCnM4uobSGtrubiXefLYJJktVqp+2LN5NF qSUcK3wSWgsMH24coKKsmEab2NAeLKsOxkg85ZuNyEYz/dozLLuPEhYhnWtJ81dG teWEl9Q0f9GFZDh0XG98cGCOmHn5TAUTNmbBPiL7K9qs58D1RrzuXC+X3oSmEGg8 SjqlljxBl71IiLhdKerYfarBgN9mqlVXr1jZs8o7S1sXiRrDTp1Hrj5JPtZGiL/S k5dQ+JovyjlZvOqb0Ii/cIINn2cGXvxg78lLzabSX/h0YPRar309aaACbyvz8V+d G72mWmrJoUCcK37Kwp7kci/IXJb4XG7W+GQK9KfzoEGnWkIN8GKLpFpvJuffZvbo U8V8KxZfE40zvb9n6mkBb36xdt2FiaPrtJ6tBRU7bOb4UpG4RfOnWEspVxnnmyIi ZV4Dvh+nPUoIM48ZQhc5G3PGzQFcB8hvxBB3IikhJ/3uTNSdVpGkHTtaNiLUf8Uh +5e/X+SGGE/oDXvFDkiJL9dCskC8eEFJpp0juFNPYUAP/LIQvnIM40VfOBbXtXTi nXGpLjmE6WLMgybqmgpHBqlSbN6DsxL9TfvRRGB2otJDqDUq9G7As9ccd2tFYN29 FQzWTLK/BNs/wriG8DWsUvQHqsZplVTQhalwtGpF/E217yahVvA= =aDKq -----END PGP SIGNATURE----- --PmGqFv0zPZMeiGEy--