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 1sHWrM-008fUI-Kv for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Jun 2024 22:54:29 +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 1sHWrK-009AJO-1Y for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Jun 2024 22:54:26 +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 1sHWrJ-009AI0-7q for pgsql-hackers@lists.postgresql.org; Wed, 12 Jun 2024 22:54:26 +0000 Received: from fhigh4-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.94.2) (envelope-from ) id 1sHWrH-0011nt-7K for pgsql-hackers@postgresql.org; Wed, 12 Jun 2024 22:54:24 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfhigh.nyi.internal (Postfix) with ESMTP id DE74E11400AE; Wed, 12 Jun 2024 18:54:21 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 12 Jun 2024 18:54:21 -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=1718232861; x=1718319261; bh=K/9CIkzs0R M93nsg+vZj+4RWXfRaEn8X8HFWh3vvBt4=; b=ipmeDLvuFA4qW1QamykhPUQajt doKakALZ2jvCpSxX0mYsnas/WPKlrW6XRleRRbs2U8K6BxzCy0BIcrRzP0IqD0TI QHQnudG0VoecZpQx4eRaJdnD+9TMIBnGsmF5lvXFAFNH0WecwLeFVxjxKKMa9TKT FNaTxkJNNdGZ8pRx07KjxhaSBHg6VsrjqjffDDTbRZbCmr4mRZj+Z+cAy97SBbcX nDh4mjSVGJHXCKR1+nBbWi4C8RWVbvebzIjlupeG+WmeSktL+NukmD+CJYSUhZK9 Cv5V14adwC68APcgicT1MrMuqBTvdICbAQUGv/RHp4cIlkH6y6+otEMwlE3A== 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=1718232861; x=1718319261; bh=K/9CIkzs0RM93nsg+vZj+4RWXfRa En8X8HFWh3vvBt4=; b=UhzkgpuhIDpVdV5gFO50cp4T0hSJDoDkV32Vn+IDKGOV krCuSYj3wOgS/j0ke+7adzL8Hx30ur2LasYqF6xIhITYXcitmAGRkvWzpcTQsOZz Om0dyxlJvImHRXbDRfIKTQWgNR0SzDkMmrMIGxhyiN47U5fKyse1Rq44z8mw8XMV jwDxcbPsnXjSwGHpRYahnhIz7yoxDHd64RfqLMLjjkk2Os4Qr0pG+CgclZkVZJbG 40Peq/+InTCay8R0kh7fJrWNkerJFU1xI8HqVZBxS4r2bVkRPwekfkgPvm9u+vuB NkxsVuTAfO9YmqJTbG9DHt/IVFmAMgok7GXN7cC96Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfeduhedgudeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeg geegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 12 Jun 2024 18:54:18 -0400 (EDT) Date: Thu, 13 Jun 2024 07:54:07 +0900 From: Michael Paquier To: Noah Misch Cc: Robert Haas , pgsql-hackers@postgresql.org, Tom Lane , Smolkin Grigory Subject: Re: race condition in pg_class Message-ID: References: <20240512232923.aa.nmisch@google.com> <20240605181706.fe.nmisch@google.com> <20240611021927.30.nmisch@google.com> <20240612175452.de.nmisch@google.com> <20240612193223.fe.nmisch@google.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="sI78wh8auvHiLsuF" Content-Disposition: inline In-Reply-To: <20240612193223.fe.nmisch@google.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --sI78wh8auvHiLsuF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 12, 2024 at 12:32:23PM -0700, Noah Misch wrote: > On Wed, Jun 12, 2024 at 02:08:31PM -0400, Robert Haas wrote: >> Personally, I think the fact that injection point wait events were put >> under Extension is a design mistake that should be corrected before 17 >> is out of beta. Well, isolation tests and the way to wait for specific points in them is something I've thought about when working on the initial injpoint infrastructure, but all my ideas went down to the fact that this is not specific to injection points: I've also wanted to be able to cause an isolation to wait for a specific event (class,name). A hardcoded sleep is an example. Even if I discourage anything like that in the in-core tests because they're slow on fast machines and can be unreliable on slow machines, it is a fact that they are used by out-of-core code and that extension developers find them acceptable. > Works for me. I don't personally have a problem with the use of Extensio= n, > since it is a src/test/modules extension creating them. That's the original reason why Extension has been used in this case, because the points are assigned in an extension. > Yes, the last line does refer to that. Updated table: >=20 > STRATEGY | Paquier | Misch | Haas > -------------------------------------------------------- > new "Injection Point" wait type | maybe | yes | yes > INJECTION_POINT(...) naming | yes | yes | no > isolation spec says event names | yes | no | yes >=20 > I find that's adequate support for the first line. If there are no objec= tions > in the next 24hr, I will implement that. OK. That sounds like a consensus to me, useful enough for the cases at hand. -- Michael --sI78wh8auvHiLsuF Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmZqJw8ACgkQnvQgOdby QH3BVxAAp6xPwdzY6uMldwiP2vwEbHKkOsI6yqhSkLogBWBmD23w11o5YEB7yL6z hi0BjhdKje62n/R2INtPi74dI3IdeK45+FiIo+BeajnfqawjyjJnwUEEU8SHlSlN euiO2almuY0Hic0fArsUDOw91WZf5Z2JLlNfGDFm4yvKNcgVo4vmbTEXr0JzIYGq NzerI5WcQAiQwt6URGIw/LSCItyxWm2B6Z9pWsrcKk8EYZA7pt+XE608jiEfT4Cj uABMlINYL6MbEfXCF0mRXXzT2dldPN+aStG9loxupGN1KlfbgzCxqpFwIeMrb0kc 9sXoZRQKD84R53SynRNOJC5lDzX1ONGExb55Iqddp7w2SXUdGOMXdhFfIs0q3Iyy sfOq+cauNlKEe6jYZFaB1tUDRer1+oaRox04YyaDWN+n7HKxLJrFlR+Ydz8LGicD O9UDDRqCFIgb/fzEgVrXkd1TUFapsP9w2vNlNfaMneNeq4x2GmX1la/HYGceV/68 nYtAusjAiuemFzmwBbYm7bQof191WXjolC6wS+fTYky5GQNVWzifxxOPvB92dKV4 eMzF/82ivOg6SoGBpk6bPCinvWAAIZwq2CpXCn1E9DCqBe5nsIVvg3HR72ZVgPcK MLaI3V//AiUf1T+ESe3oT8E8htm5DiwlkI6TzL0wiJZrgTtvaI4= =kPr6 -----END PGP SIGNATURE----- --sI78wh8auvHiLsuF--