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 7F9BFA6F-9BC6-4A27-BFA1-2F01682BD644@enterprisedb.com
Whole thread Raw
In response to Assert triggered during RE_compile_and_cache  (Mark Dilger <mark.dilger@enterprisedb.com>)
Responses Re: Assert triggered during RE_compile_and_cache
List pgsql-hackers

> On Aug 5, 2021, at 1:38 PM, Mark Dilger <mark.dilger@enterprisedb.com> wrote:
>
> +select 'vyrlvyrlwvqko' ~ '(?:(?:((.))))((\2)\1.){0,0}?';

I've boiled it down a bit more:

+select '' ~ '()\1{0}';
+ ?column?
+----------
+ t
+(1 row)
+
+select '' ~ '()(\1){0}';
+ ?column?
+----------
+ t
+(1 row)
+
+select '' ~ '(())\2{0}';
+ ?column?
+----------
+ t
+(1 row)
+
+select '' ~ '(())(\2){0}';
+server closed the connection unexpectedly
+   This probably means the server terminated abnormally
+   before or while processing the request.
+connection to server was lost

Any ideas?

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






pgsql-hackers by date:

Previous
From: Mark Dilger
Date:
Subject: Assert triggered during RE_compile_and_cache
Next
From: Mark Dilger
Date:
Subject: Re: Another regexp performance improvement: skip useless paren-captures