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 1mBleN-0002Ct-AF for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Aug 2021 22:15:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mBleK-0005dY-SW for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Aug 2021 22:15:36 +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 1mBleK-0005dQ-KY for pgsql-hackers@lists.postgresql.org; Thu, 05 Aug 2021 22:15:36 +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 1mBleE-00060j-Ex for pgsql-hackers@postgresql.org; Thu, 05 Aug 2021 22:15:35 +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 175MFRf72426994; Thu, 5 Aug 2021 18:15:28 -0400 From: Tom Lane To: Mark Dilger cc: PostgreSQL-development Subject: Re: Assert triggered during RE_compile_and_cache In-reply-to: <7F9BFA6F-9BC6-4A27-BFA1-2F01682BD644@enterprisedb.com> References: <0203588E-E609-43AF-9F4F-902854231EE7@enterprisedb.com> <7F9BFA6F-9BC6-4A27-BFA1-2F01682BD644@enterprisedb.com> Comments: In-reply-to Mark Dilger message dated "Thu, 05 Aug 2021 13:49:00 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2426992.1628201727.1@sss.pgh.pa.us> Date: Thu, 05 Aug 2021 18:15:27 -0400 Message-ID: <2426993.1628201727@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Mark Dilger writes: > +select '' ~ '(())(\2){0}'; > +server closed the connection unexpectedly > Any ideas? Huh. This seems like some deficiency in the part of parseqatom starting with /* annoying special case: {0} or {0,0} cancels everything */ if (m == 0 && n == 0) but I don't immediately see what's different about your failing case versus the not-failing ones. regards, tom lane