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 1mBmbD-0004Av-OR for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Aug 2021 23:16:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mBmbC-00080Q-N5 for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Aug 2021 23:16:26 +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 1mBmbC-00080I-Fc for pgsql-hackers@lists.postgresql.org; Thu, 05 Aug 2021 23:16:26 +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 1mBmbA-0006Un-FQ for pgsql-hackers@postgresql.org; Thu, 05 Aug 2021 23:16:25 +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 175NGM7q2437331; Thu, 5 Aug 2021 19:16:22 -0400 From: Tom Lane To: Mark Dilger cc: PostgreSQL-development Subject: Re: Assert triggered during RE_compile_and_cache In-reply-to: <29C525E6-A912-459F-BE27-217F25F76B5E@enterprisedb.com> References: <0203588E-E609-43AF-9F4F-902854231EE7@enterprisedb.com> <7F9BFA6F-9BC6-4A27-BFA1-2F01682BD644@enterprisedb.com> <2426993.1628201727@sss.pgh.pa.us> <29C525E6-A912-459F-BE27-217F25F76B5E@enterprisedb.com> Comments: In-reply-to Mark Dilger message dated "Thu, 05 Aug 2021 15:22:57 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2437329.1628205382.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 05 Aug 2021 19:16:22 -0400 Message-ID: <2437330.1628205382@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Mark Dilger writes: > I have now found lots of cases of this failure. I *believe* the backref= erence is always greater than 1, and it is always in a capture group which= then has the {0} or {0,0} applied to it. Hm. I thought that this might be an old issue, but I'm not seeing the crash in pre-v14 branches. That means it's some bug introduced in the performance improvements I did a few months ago. Open item added. regards, tom lane