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 1ujrTA-00CrdS-TV for pgsql-bugs@arkaria.postgresql.org; Thu, 07 Aug 2025 03:39:08 +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 1ujrT8-002SIf-IM for pgsql-bugs@arkaria.postgresql.org; Thu, 07 Aug 2025 03:39:06 +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 1ujrT8-002SIR-34 for pgsql-bugs@lists.postgresql.org; Thu, 07 Aug 2025 03:39:06 +0000 Received: from fout-a3-smtp.messagingengine.com ([103.168.172.146]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1ujrT5-0019VC-0f for pgsql-bugs@lists.postgresql.org; Thu, 07 Aug 2025 03:39:05 +0000 Received: from phl-compute-10.internal (phl-compute-10.internal [10.202.2.50]) by mailfout.phl.internal (Postfix) with ESMTP id 92E10EC00A5; Wed, 6 Aug 2025 23:39:02 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-10.internal (MEProxy); Wed, 06 Aug 2025 23:39:02 -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=fm3; t=1754537942; x=1754624342; bh=IWNTZ9aSCd wTRMnn5wl1wjMNYUlqNQo614KYkEyl9wo=; b=l3SCbsEMVvsOc7hsH+kUFG8fGu MvDrtqiaU81kM7VeK1txj0z8qtw71WHvJVuis4cbxDQ4yCuY4Ay4jFLZIAv5KpSs KmY4ZnozRNqCIQ+vPPC0cxek1AnW5X1uETeuNfLq4UB7OIGqALalWxNNgPCrpGA/ KI8pXbs8BApjTR1g4THPbC8or5ZrJs9cxp33LqzbVwClygQWc6IFf1bTaqpKVHpY HfWampHegC/E5i4kze661dDYENdnOYcuhtUI2tJQlTNbbkK2RKKNPqC/phTq1xbt BF3k0T4467Hm8x9OD9c30Jo429m/d5TA8PK1pIiQIunsHH8OlL07lRUUvLQA== 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=fm3; t= 1754537942; x=1754624342; bh=IWNTZ9aSCdwTRMnn5wl1wjMNYUlqNQo614K YkEyl9wo=; b=oCkkGqxaFig9vBiKV8M90RVvjibrWkW1Y1rWrwv7HjBuRoWhF9G 7IeMQlFx5cjeadq4kNsGrFJQJeIdP2Iy72PpG+saCR6FCcQZCa1Fr1aYzdiLdPlt 4k/e7KZZd9456hXjomR85lKEY3spur2leV54ALR+IuNbFIWf2wnSWVK622mbnfUB OLQJmXu3l28xR5YLNmZagU5YGs71n/3s6NoJ21CAJdmwdjliVynVuRg4+D/JU7VE 30B5rMYXvmKWWHlx7Xk3aON+SVe40Lr7YUcykVlEp3f8fndd2VlcMLC7ghEl3pHl V/Tgaust70U6AFajAM2uqe9GBxckMlzpYHw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdduudelkeejucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrh hlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeggeeg fffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiidp nhgspghrtghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepshgrfi gruggrrdhmshhhkhesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdgsuhhg sheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthhtohepkhhrihhsth hirghnlhgvjhgrohesghhmrghilhdrtghomh X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 6 Aug 2025 23:38:59 -0400 (EDT) Date: Thu, 7 Aug 2025 12:38:55 +0900 From: Michael Paquier To: Masahiko Sawada Cc: PostgreSQL mailing lists , kristianlejao@gmail.com Subject: Re: TRAP: failed Assert("outerPlan != NULL") in postgres_fdw.c Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="+nt9rq1IbwK4qDuh" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --+nt9rq1IbwK4qDuh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Aug 05, 2025 at 11:00:54AM -0700, Masahiko Sawada wrote: > The attached patch includes the draft fix and regression tests (using > injection points). +$psql_session->query_safe(qq[ + select injection_points_set_local(); + select injection_points_attach('heapam_lock_tuple-before-lock', 'wait'); +]); It seems to me that an isolation test would be a better fit here. TAP tests are usually a good fit for injection points if you need to do direct node manipulations, like restarts or stops. The whole test posted only does SQL-ish things, and you could rely on a loopback server as we do in the SQL tests of postgres_fdw? -- Michael --+nt9rq1IbwK4qDuh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmiUH88ACgkQnvQgOdby QH0z+g//abA/+ISlW8HnzbDRXuG81Rmsr6ErQYTnxuaf+5kXLI/AB5mlFPIzIAwW dOIAUQAD1H4G0vAzI7Zrw6oXy4aUK07kQkuiuKKaweX5Qj/F6Kl3zsX8EZwVj6ye OuyKMYdcmK/5EOwMrsyy98/7DPjYQYcLMtLyeUf3dE0vc7dhJ4V5i0/sCZ/IcFZV t1tMEshc77lYQzIKl2B0SCkEG64xGGXmsvjndUkkTLwHYacKZXpAKHg+FWDgvy+t IGjXg/ZBh2RBxOm0t/sRIuGh4x6jxAJKHSaCQh7zcxRnbAMc1htDDUkElm+xJNFk G1XbTmCOG1hdcWUH71Tbayu8lE/HobGN4/7r4SvvnTYQejm7yUSNVLGZxZLwYnGG t8LM7bYIO6CX1nggOCe5JKHW/rkAIZyVNk0ie7dkfijf3+zZfxQLg3Q6q1wwaKLu edRnCz4qgChBfvISZVbyA0QRDtE3r/2Bn3Z6Zc+F5cHlBDnSzrVv81Jy5wvXJrLt 7ZKPlTNhy0l1E1q8J5WxihDEMBo4AhpeFBTQKiuzSUySrtMb/hbjarghBPL5ycC+ afq398v2n62l/WoFs2/9dF7Y0M/OaIp7sciSpN4AljXFFBP6R2n0A8nabEpzBktm 45AlPFy2Zp6VEGY40FIyoFflYgPMAXIYVm0iGOQOzP6iS6rN2WM= =NEvp -----END PGP SIGNATURE----- --+nt9rq1IbwK4qDuh--