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.96) (envelope-from ) id 1x3axn-006X0J-39 for pgsql-bugs@arkaria.postgresql.org; Mon, 07 Sep 2026 15:08:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1x3axm-0028nq-1h for pgsql-bugs@arkaria.postgresql.org; Mon, 07 Sep 2026 15:08: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.96) (envelope-from ) id 1x3axm-0028nf-0t for pgsql-bugs@lists.postgresql.org; Mon, 07 Sep 2026 15:08:50 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1x3axk-00000004RpJ-2OTR for pgsql-bugs@lists.postgresql.org; Mon, 07 Sep 2026 15:08:49 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.18.1/8.18.1) with ESMTP id 687F8dSM232571; Mon, 7 Sep 2026 11:08:39 -0400 From: Tom Lane To: Richard Guo cc: 10215501441@stu.ecnu.edu.cn, Robert Haas , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #19653: "variable not found in subplan target list" during planning with parallel parameterized nested loop, In-reply-to: References: <19653-9352cc6ba17b662f@postgresql.org> <1564958.1788530496@sss.pgh.pa.us> <1570204.1788535631@sss.pgh.pa.us> <116500.1788717110@sss.pgh.pa.us> <157316.1788751833@sss.pgh.pa.us> Comments: In-reply-to Richard Guo message dated "Mon, 07 Sep 2026 17:27:47 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <232569.1788793719.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Mon, 07 Sep 2026 11:08:39 -0400 Message-ID: <232570.1788793719@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Richard Guo writes: > On Mon, Sep 7, 2026 at 12:30 PM Tom Lane wrote: >> Yeah, I tried adjusting things like that and the regression tests >> immediately crashed. So now I think we have to do it as you have it; >> but maybe the comment could be improved to explain that we need to >> match both Vars having the child relid and PHVs having top-parent >> relids. > Done in the attached. This version LGTM. regards, tom lane