Re: Assert triggered during RE_compile_and_cache

From: Mark Dilger <mark(dot)dilger(at)enterprisedb(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Assert triggered during RE_compile_and_cache
Date: 2021-08-08 17:28:55
Message-ID: 653CCDC0-C99A-4F9A-A38C-CC4F2D0B4557@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On Aug 8, 2021, at 10:15 AM, Mark Dilger <mark(dot)dilger(at)enterprisedb(dot)com> wrote:
>
> But these next two look to me correct before the patch and wrong after:
>
> select regexp_matches('ircecpbgyiggvtruqgxzigxzigxzisdbkuhbkuhrvl', '(((.)))(?:(\3))[^\f]');
> regexp_matches
> ----------------
> -(0 rows)
> + {g,g,g,g}
> +(1 row)
>
> select regexp_matches('fhgxnvbvjaej', '(((.)).)((\3)((.)))', 'csx');
> - regexp_matches
> -----------------
> -(0 rows)
> + regexp_matches
> +-------------------
> + {vb,v,v,vj,v,j,j}
> +(1 row)

Scratch that. On further thought, these also look correct. I wasn't doing the capturing in my head correctly. So I think the patch is working! I'll test a bit longer.

Is this patch (alternate-backref-corner-case-fix-1.patch) the current state of your patch set? I'd like to be sure I'm testing your latest work. Thanks.


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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2021-08-08 17:29:36 Re: Assert triggered during RE_compile_and_cache
Previous Message Mark Dilger 2021-08-08 17:15:28 Re: Assert triggered during RE_compile_and_cache