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 1wnjq6-000Y7y-1s for pgsql-hackers@arkaria.postgresql.org; Sat, 25 Jul 2026 21:23:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wnjq5-007V6T-1S for pgsql-hackers@arkaria.postgresql.org; Sat, 25 Jul 2026 21:23:21 +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 1wnjq5-007V6L-0O for pgsql-hackers@lists.postgresql.org; Sat, 25 Jul 2026 21:23:21 +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 1wnjq3-00000000Khh-1X6u for pgsql-hackers@lists.postgresql.org; Sat, 25 Jul 2026 21:23:20 +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 66PLN7qj2746011; Sat, 25 Jul 2026 17:23:07 -0400 From: Tom Lane To: Thom Brown cc: Richard Guo , pgsql-hackers@lists.postgresql.org Subject: Re: remove_useless_joins vs. bug #19560 In-reply-to: References: <1186816.1784573544@sss.pgh.pa.us> <2727652.1784997994@sss.pgh.pa.us> Comments: In-reply-to Thom Brown message dated "Sat, 25 Jul 2026 21:07:53 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2746009.1785014587.1@sss.pgh.pa.us> Date: Sat, 25 Jul 2026 17:23:07 -0400 Message-ID: <2746010.1785014587@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Thom Brown writes: > I can't get this to crash in a standard build, but with asserts, I can: Thanks for the report! I'd seen the same failed Assert("root->hasLateralRTEs") in the core tests with an earlier draft of this patch, but I thought it was resolved. Obviously not ... I'll look closer tomorrow. As for the speed question, I'd not poked at the details of Claude's claim, but I guess I should have. regards, tom lane