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 1qeBbK-0061S2-3Z for pgsql-bugs@arkaria.postgresql.org; Thu, 07 Sep 2023 09:47:02 +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 1qeBbI-00HWub-Mm for pgsql-bugs@arkaria.postgresql.org; Thu, 07 Sep 2023 09:47:00 +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 1qeBbH-00HWuJ-VZ for pgsql-bugs@lists.postgresql.org; Thu, 07 Sep 2023 09:47:00 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qeBbD-003E73-Uh for pgsql-bugs@lists.postgresql.org; Thu, 07 Sep 2023 09:46:58 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 048963200302; Thu, 7 Sep 2023 05:46:53 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 07 Sep 2023 05:46:54 -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:sender :subject:subject:to:to; s=fm1; t=1694080013; x=1694166413; bh=Fu EasUfAgTBernUdmngXrlHL0a9MXKkHziLTFUWBiQQ=; b=fEhaTtqxPUnL0JVhNu pwTEMgE4OL/A9xO5kkznu5iamZLElioNAHm1E2BwNJdyMom8Prm31HRAo+Qkf1jE dVej44p4lXq8WUMrQw3wd1ZLir5UXPoRRcW5uS9JErnuiDN/VDew1gOw+0K9UcE3 vQY4ECAblMGkdG43nLf/Dc8YBgm8knu8mYuEsr0DXXkS6pokhbzx/Fe7Rpw6WVw4 0+69BLhXhG2KbwVyblbg9obpRwqhKs8NLCFGSTKTXeKr5vSN/NSe1TKjV6KrNuQq 98gcGnssVvgZrXm77jm4GmbW7JL2o69MwVtjDaqYwk4mkRfu5yr9jYAjnqCEvxPj c8VA== 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:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1694080013; x=1694166413; bh=FuEasUfAgTBer nUdmngXrlHL0a9MXKkHziLTFUWBiQQ=; b=1mZdMVzqSeE8ewNgP0OYeBMm4qanz CdaNBfUG5T4AE7KA3JNOuWQea3DBJHghU+WoB0GJRNxHkzeK65CQKtf815Cs8qn3 oC6+8k3z+b3aU6d0lHs593OT9xI51wMEmrlyNVfVzLkQ1KsnegfOj5reqEgtXStq wPokhEvT4iWmQ+pxAr7cERwbpC/tl+Ne1VHGA73bnt3yNa7YUdWTgG2ZEUS8+7KV Ok+mFok5TV9fOoar7VK/tZU3hw7xnPhVf8tNa582v6AYxi/PeIQHpQPHHEqNETqB ibwvPQzRvL5kVsLFLT7lmOwTDeExcVdIO1jtUKEObherWjUhO/IsRuW2w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudehhedgvddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdlfeehmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepjeejtdelleeggeelffduhfej tdeuvdekkeethffhuedvvdeuudeugeefudevtdeinecuffhomhgrihhnpehgihhthhhusg drtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm pehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 7 Sep 2023 05:46:51 -0400 (EDT) Date: Thu, 7 Sep 2023 18:46:43 +0900 From: Michael Paquier To: Lepikhov Andrei Cc: Richard Guo , Tom Lane , fuboat@outlook.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18077: PostgreSQL server subprocess crashed by a SELECT statement with WITH clause Message-ID: References: <18077-b9db97c6e0ab45d8@postgresql.org> <694541.1693600870@sss.pgh.pa.us> <1237514.1693879473@sss.pgh.pa.us> <3f7bcdb7-c263-4c06-a138-140f5c3898ed@app.fastmail.com> <3933834e-b657-4ad1-bf4e-5f3fbba7ba14@app.fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="y9uAKX4aLZNHTj9M" Content-Disposition: inline In-Reply-To: <3933834e-b657-4ad1-bf4e-5f3fbba7ba14@app.fastmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --y9uAKX4aLZNHTj9M Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 07, 2023 at 03:25:36PM +0700, Lepikhov Andrei wrote: > I invented a dummy extension "pg_extension" [1], commit 4199a0c, > which adds CustomScan over the first non-parameterized HashJoin at > the pathlist.=20 > The example presented in my letter earlier causes the ERROR on > CTE. Moreover, if you remove the word 'materialized', you will find > the same error on Subquery. >=20 > [1] https://github.com/danolivo/pg_extension/tree/main Digressing a bit here about this point.. In the long-term I think that it would be a good idea to have a template module in src/test/modules/ that shows how to use a CustomScan so as it is able to demonstrate how this stuff works, and to check if it is works as intended. With regression tests, of course. -- Michael --y9uAKX4aLZNHTj9M Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmT5nAMACgkQnvQgOdby QH0tOxAAmyShYFJjzJJA9DBFecLkyLy5WkTkXPykErkHSllbic0mkmwWtB/GTh37 Lr1NEOZPZ27Jk33qoqqFiGWouwjRQmyFRAFio4QQb2XAI+whHPGJFqWH2BeKoOMR gdE1v7ApBc484SqHvcbbI1XnfWcSOmcHTsf29qt4H3kWp+rxlNil3Z5z0CgBstHl /fcTsvcavRv5HPsRTFkhbmMLojmZIuNmWVzSId1SRQGER7fCZR2rNwVZWppaAGtM WgRv8F+upSCjlIc2ETMVs7F1qWluLHK9lIo/DbCdy4rLd2APSozuxv/Qan8/Zj5r UK12bYgtn10gevrk86W1PtScihCwgI0yeV+BULedREw8V10A96c/Q2tJSQcTN0FA LV2XAcyuDBG10DcvmII+xul3YrdAeKMhSLaDTYvPbHWMYsLzMxKeFXnFVp2NfkWj yVd5rD/dNWhScs8D/FYT+DbRc3nukzvRBvwSRMWvkYcPpYJXB21Dht+i8ynXMG4r eZaph1TiN/GdDrHu3cKWls67vRGAVZL0tt79eRgsI/mkPI4WJqYWazYWn7UxzJU/ dYfbvygxRWnAYFXsKj7fuhsYeXjVUtWySsrMPMiKmWvomnM9DoM4R5gjyPAsi3Y1 OfuMRJTZJ/j5+lxa9l0jtPLpqELUhQEExYgrIWUrv5cGFF93RKs= =M5E6 -----END PGP SIGNATURE----- --y9uAKX4aLZNHTj9M--