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 1rSQAq-00Dev5-G1 for pgsql-bugs@arkaria.postgresql.org; Tue, 23 Jan 2024 23:27:21 +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 1rSQAp-0002ae-Gp for pgsql-bugs@arkaria.postgresql.org; Tue, 23 Jan 2024 23:27:19 +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.94.2) (envelope-from ) id 1rSQAn-0002aG-JX for pgsql-bugs@lists.postgresql.org; Tue, 23 Jan 2024 23:27:19 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rSQAj-003NKf-Ti for pgsql-bugs@lists.postgresql.org; Tue, 23 Jan 2024 23:27:16 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 1134E3200AC1; Tue, 23 Jan 2024 18:27:09 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 23 Jan 2024 18:27:10 -0500 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=fm3; t=1706052429; x=1706138829; bh=SLJi5/+gpa TnmwbumNCdnYgyyxlWJ3ruZqXiY2oltYA=; b=StgrhCi9FEP7cSYkw/HTwAqayJ urUDW1Fgf/Rhdb10baxAIqwYMxK7Sbij8lC/CaG/k2Qn2KdYnO2AdzokzBjNq6Kp EvXXeevSfZ5dxawd3nrLq/ZJIHRutEljnZI312GtpPZOwoBI3NeTBqX37s3r4WxK 5vVqjtavh3uVDiU5urfmbJmqSLBG805sEyRE+v+qfsyDhAXuw0hbJetV/KNqWRV+ Q+/5OdXF3hGNfAK5bbsDw0B9nKtA2fXPoQuIJgj3DpXVsFc1yUB/hN0OheAwPAyE euG/ZpwYS1nH9Uwamd3l/Whw1G3V7Yoy51X+5gKadOMYfu6BNyzUG5R3ex9g== 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= fm3; t=1706052429; x=1706138829; bh=SLJi5/+gpaTnmwbumNCdnYgyyxlW J3ruZqXiY2oltYA=; b=Fp+rQ0KqpLHUZAEF5NxD6nMbybHeVlhuJzwj5EK4HmpB NhKDVwqKJIqMLNL9ropirxGXOB9+/3Z2ozw5MYGRmqn77Wu0JVLQkyOCWXWJkx5g BGm+f25wBO1mvQW/cgdfBN+GdtyMSYkQ9JteCQsR33vaIkvxlGANxz+BGo5NuXu5 hD5cA4zxISP2EPeoFWhHF9QigE/v5/9lzukcyKxk5Bq7RTrBfZjxnvRULq6w5h7b Z+501NdtDrw26mCpO6kN9sGRVyBK88udfqRu8lbcT542g7epw0r8AMbt3QTv1H8X Un2N1uWrBarzp/RPUlV6aKicqDG7YIWMbkXiYNSD5w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdekledgtdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeg geegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 23 Jan 2024 18:27:05 -0500 (EST) Date: Wed, 24 Jan 2024 08:26:48 +0900 From: Michael Paquier To: Heikki Linnakangas Cc: feichanghong , pgsql-bugs Subject: Re: MarkBufferDirty Assert held LW_EXCLUSIVE lock fail when ginFinishSplit Message-ID: References: <053bc845-3cb5-445e-8ea4-00f6c678ee25@iki.fi> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Fsx4rdRNwuIzRc+M" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Fsx4rdRNwuIzRc+M Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jan 23, 2024 at 09:12:25AM +0200, Heikki Linnakangas wrote: > I can see that being useful in general. It requires a bespoken callback > function, though. One nice thing about this test was that I didn't need to > write a new C module, only that snippet at the injection point and some SQL. > In more complicated tests a new C module is warranted, but I think a lot of > tests - like this gin test - can be written without it. FWIW, I don't mind if src/test/modules/injection_points/ is used as a single point across the tree as a library storing a large set of callbacks. All these don't have to be generic, and I think that we should remain a maximum flexible for bug fixing and advanced testing. I'm OK to leave the call up to the committer because it comes down to invasiveness in src/backend/ vs invasiveness in the number of callbacks or the logic inside the callbacks (sometimes it makes sense to me to also complicate more the backend), and I'm OK with what you are doing here for this thread. > Perhaps if the argument was uint64 instead of a pointer, so that the > 'injection_point' module could contain ready-made functions that do things > with the argument. I am not exactly sure to understand what you mean here. > Overall I feel we should not bother with injection point arguments for now, > though. Let's wait until we have a few more tests that would benefit from > that, and then we'll have more information on what the ideal interface would > look like. Yeah, I am not sure if that's worth having for now, but that's always good to keep in mind that the infra can be extended to handle such cases even for stable branches. -- Michael --Fsx4rdRNwuIzRc+M Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmWwSzgACgkQnvQgOdby QH2EsxAAiAS7Yqtay8+61lNmtkiuA+LFdP2ke9THS9zxcCmG2VKgapWMktR6k9Ke uFzw1Ik6or1mmMpAB2N8kUeT62ztZYRgtM/UVXzXHz/pZByRos/OvYJq8OzDdz0m bclTwkFyT6VpFd6f88Ns2jNE1OFzHwtSoys+HsH/lBScLYHi8KdmfAen+i5WpTaM GW8p/blw8OlDmx7eYVks3qrF7okAMAYcU3ugPAetLZsps1SnibsWZ7oX+wDRtnMl 6R1tkdSGsBqhjAT4RFpjoPRJ5kRgmBjEwcyg7hfZbQUHd/pqwijgdQixFZsWDo1h LkTU4Yt5hYuCyjUe/KtrXAMOMR2ofmN8qBlTWYtE+ss/s9M4U6d3sPsnjwyJm7Cb d6DbK6w21DxhwmEl2DPqtAOpm3sHMzu7rkF3Ly/n59WgfX5sorqIWhr/btHb9lFI vDVs96vGkCzKB6ngO+goZLbKmI5ILgF5gaEeqmgt3ivfza3P5DNwoENMKVPp7Zru Psclr6FwmfZGzDPc8a1y8ZOYKgpRDUBfyLNnVQiIA+ByB8x6/KSGnqWf+t7K0rCr HYeJdPlojjyfGCTuJFON84H6MosNFNm0ePGLe+GogE22P0kJVdRhJIyvE1cuBBMA +tZVdn4qQp1YjoPNoh6NElH7hpcRLEK1EjCcyCO5zuG8tCAe7rE= =ivhV -----END PGP SIGNATURE----- --Fsx4rdRNwuIzRc+M--