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 1kkCJD-0003DF-4L for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Dec 2020 20:31:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kkCJC-0006RN-2G for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Dec 2020 20:31:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kkCJB-0006RF-RV for pgsql-hackers@lists.postgresql.org; Tue, 01 Dec 2020 20:31:33 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kkCJ9-000274-9Z for pgsql-hackers@lists.postgresql.org; Tue, 01 Dec 2020 20:31:33 +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 0B1KVOrL1501459; Tue, 1 Dec 2020 15:31:24 -0500 From: Tom Lane To: David Rowley cc: Andreas Seltenreich , pgsql-hackers@lists.postgresql.org Subject: Re: [sqlsmith] Failed assertion during partition pruning In-reply-to: <919903.1606603948@sss.pgh.pa.us> References: <87sg8tqhsl.fsf@aurora.ydns.eu> <919903.1606603948@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Sat, 28 Nov 2020 17:52:28 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1501457.1606854684.1@sss.pgh.pa.us> Date: Tue, 01 Dec 2020 15:31:24 -0500 Message-ID: <1501458.1606854684@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I wrote: > What it looks like to me is that the code for setting up run-time > partition pruning has failed to consider the possibility of nested > partitioning: it's expecting that every partitioned table will have > at least one direct child that is a leaf. I'm not sure though > whether just the Assert is wrong, or there's more fundamental > issues here. After looking into the git history I realized that this assertion is quite new, stemming from David's a929e17e5a8 of 2020-11-02. So there's something not right about that. regards, tom lane