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 1pDXs3-0001V5-RD for pgsql-bugs@arkaria.postgresql.org; Thu, 05 Jan 2023 21:33:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pDXs2-0006mK-5r for pgsql-bugs@arkaria.postgresql.org; Thu, 05 Jan 2023 21:33:54 +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 1pDXs1-0006mB-U7 for pgsql-bugs@lists.postgresql.org; Thu, 05 Jan 2023 21:33:53 +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 1pDXrz-0001An-OL for pgsql-bugs@lists.postgresql.org; Thu, 05 Jan 2023 21:33:52 +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 305LXme92828935; Thu, 5 Jan 2023 16:33:48 -0500 From: Tom Lane To: Andres Freund cc: xinwen@stu.scu.edu.cn, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17737: An assert failed in execExprInterp.c In-reply-to: <2811897.1672951803@sss.pgh.pa.us> References: <17737-55a063e3e6c41b4f@postgresql.org> <2811897.1672951803@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Thu, 05 Jan 2023 15:50:03 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2828933.1672954428.1@sss.pgh.pa.us> Date: Thu, 05 Jan 2023 16:33:48 -0500 Message-ID: <2828934.1672954428@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I wrote: > I'm kind of baffled as to how it's escaped detection for this long; > maybe the assertion is overly tight, and the case actually works > in non-assert builds? A quick test says that indeed this example works in a non-assert build. So that may explain the lack of previous reports. Whether it'd be okay to weaken this check across-the-board isn't clear to me. regards, tom lane