Re: Assert triggered during RE_compile_and_cache - Mailing list pgsql-hackers

From Mark Dilger
Subject Re: Assert triggered during RE_compile_and_cache
Date
Msg-id 29C525E6-A912-459F-BE27-217F25F76B5E@enterprisedb.com
Whole thread Raw
In response to Re: Assert triggered during RE_compile_and_cache  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Assert triggered during RE_compile_and_cache  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers

> On Aug 5, 2021, at 3:15 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> I don't immediately see what's different about your failing case
> versus the not-failing ones.

I have now found lots of cases of this failure.  I *believe* the backreference is always greater than 1, and it is
alwaysin a capture group which then has the {0} or {0,0} applied to it. 

You can find lots of cases using the attached regex generating script I whipped up for testing your work.  (Note this
isjust a quick and dirty tool for hacking, not anything refined.) 



—
Mark Dilger
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company




Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Assert triggered during RE_compile_and_cache
Next
From: Mark Dilger
Date:
Subject: Re: Accidentally dropped constraints: bug?