Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1phEED-00009l-5k for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Mar 2023 18:39:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1phEEC-0003sB-1O for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Mar 2023 18:39:28 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1phEEB-0003s2-OD for pgsql-hackers@lists.postgresql.org; Tue, 28 Mar 2023 18:39:27 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1phEE9-0005QZ-Fo for pgsql-hackers@lists.postgresql.org; Tue, 28 Mar 2023 18:39:26 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 32SIdLD53649818; Tue, 28 Mar 2023 14:39:21 -0400 From: Tom Lane To: Alvaro Herrera cc: Pg Hackers Subject: Re: "variable not found in subplan target list" In-reply-to: <20230328181930.s7xbr326635y4sfc@alvherre.pgsql> References: <20230328181930.s7xbr326635y4sfc@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Tue, 28 Mar 2023 20:19:30 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3649816.1680028761.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 28 Mar 2023 14:39:21 -0400 Message-ID: <3649817.1680028761@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alvaro Herrera writes: > So I'm back home and found a couple more weird errors in the log: > ERROR: mismatching PartitionPruneInfo found at part_prune_index 0 > DETALLE: plan node relids (b 1), pruneinfo relids (b 36) This one reproduces for me. > select = > pg_catalog.pg_stat_get_buf_fsync_backend() as c9 = > from = > public.tenk2 as ref_0 > where (ref_0.stringu2 is NULL) = > and (EXISTS ( > select 1 from fkpart5.fk1 as ref_1 > where pg_catalog.current_date() < (select pg_catalog.max(fille= r3) from public.mcv_lists))) ; > ERROR: subplan "InitPlan 1 (returns $1)" was not initialized > CONTEXTO: parallel worker Hmph, I couldn't reproduce that, not even with other settings of debug_parallel_query. Are you running it with non-default planner parameters? > select 1 as c0 > ... > ERROR: could not find commutator for operator 53286 I got a slightly different error: ERROR: missing support function 1(195306,195306) in opfamily 1976 where regression=3D# select 195306::regtype; = regtype = ------------ int8alias1 (1 row) So that one is related to the intentionally-somewhat-broken int8 opclass configuration that equivclass.sql leaves behind. I've always had mixed emotions about whether leaving that set up that way was a good idea or not. In principle nothing really bad should happen, but it can lead to confusing errors like this one. Maybe it'd be better to roll that back? regards, tom lane