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 1l5cdh-0003Gy-14 for pgsql-hackers@arkaria.postgresql.org; Fri, 29 Jan 2021 22:53:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l5cdA-0001HD-AP for pgsql-hackers@arkaria.postgresql.org; Fri, 29 Jan 2021 22:52:44 +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 1l5cdA-0001GT-3j for pgsql-hackers@lists.postgresql.org; Fri, 29 Jan 2021 22:52:44 +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 1l5cd7-0001Or-WE for pgsql-hackers@lists.postgresql.org; Fri, 29 Jan 2021 22:52:43 +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 10TMqb5c2830052; Fri, 29 Jan 2021 17:52:37 -0500 From: Tom Lane To: Zhihong Yu cc: David Rowley , Andreas Seltenreich , PostgreSQL Developers Subject: Re: [sqlsmith] Failed assertion during partition pruning In-reply-to: References: <87sg8tqhsl.fsf@aurora.ydns.eu> <919903.1606603948@sss.pgh.pa.us> <1501458.1606854684@sss.pgh.pa.us> <2823553.1611952106@sss.pgh.pa.us> Comments: In-reply-to Zhihong Yu message dated "Fri, 29 Jan 2021 14:42:49 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2830050.1611960757.1@sss.pgh.pa.us> Date: Fri, 29 Jan 2021 17:52:37 -0500 Message-ID: <2830051.1611960757@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Zhihong Yu writes: > I wonder if the (failed) assertion should be converted to an if statement: As I said, I'm now thinking it's not the Assert that's faulty. If I'm right about that, it's likely that the mistaken labeling of these paths has other consequences beyond triggering this assertion. (If it has none, I think we'd be better off to remove these Path fields altogether, and re-identify the parent rels here from the RelOptInfo data.) regards, tom lane