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 1m1s2s-0004WI-Eb for pgsql-bugs@arkaria.postgresql.org; Fri, 09 Jul 2021 15:04:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m1s2o-0008Ru-Jl for pgsql-bugs@arkaria.postgresql.org; Fri, 09 Jul 2021 15:03:58 +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 1m1s2o-0008Jy-Ce for pgsql-bugs@lists.postgresql.org; Fri, 09 Jul 2021 15:03:58 +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 1m1s2l-0001WZ-II for pgsql-bugs@lists.postgresql.org; Fri, 09 Jul 2021 15:03:57 +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 169F3qAo2174512; Fri, 9 Jul 2021 11:03:52 -0400 From: Tom Lane To: Richard Guo cc: cyg0810@gmail.com, PostgreSQL mailing lists Subject: Re: BUG #17094: FailedAssertion at planner.c In-reply-to: References: <17094-bf15dff55eaf2e28@postgresql.org> <1974959.1625761759@sss.pgh.pa.us> <2032521.1625764926@sss.pgh.pa.us> Comments: In-reply-to Richard Guo message dated "Fri, 09 Jul 2021 15:17:41 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2174510.1625843032.1@sss.pgh.pa.us> Date: Fri, 09 Jul 2021 11:03:52 -0400 Message-ID: <2174511.1625843032@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Richard Guo writes: > On Fri, Jul 9, 2021 at 1:22 AM Tom Lane wrote: >>> I'm inclined to think we have to reject cases like this. > It makes sense to me we reject this case. Tested the patch and it works > as expected. Pushed, thanks for looking at it! regards, tom lane