pg.ddx.io pgsql-hackers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mark Dilger <mark.dilger@enterprisedb.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: Assert triggered during RE_compile_and_cache
Date: Sun, 08 Aug 2021 14:44:02 -0400
Message-ID: <3188079.1628448242@sss.pgh.pa.us> (raw )
In-Reply-To: <059A9825-0101-42B0-9E1C-0F71C2E13E96@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 >
<2437330.1628205382@sss.pgh.pa.us >
<2442241.1628208783@sss.pgh.pa.us >
<2822987.1628372679@sss.pgh.pa.us >
<2860330.1628384606@sss.pgh.pa.us >
<AB203EEC-6EB0-49BC-9585-736C40104895@enterprisedb.com >
<3183669.1628443776@sss.pgh.pa.us >
<A21126F3-4692-4040-8A18-805C5117C8C4@enterprisedb.com >
<69308827-2F4E-426A-BE94-BD3EE11DFC1F@enterprisedb.com >
<059A9825-0101-42B0-9E1C-0F71C2E13E96@enterprisedb.com >
Mark Dilger <mark.dilger@enterprisedb.com> writes:
> There are a few changes which appear correct to me, but I don't know if you expected them:
> select regexp_match('hko', '((((?<!.))))(.(\3)(\1.))');
> - regexp_match
> ---------------
> -
> + regexp_match
> +--------------------
> + {"","","",hk,"",k}
> (1 row)
Yes, this one is a consequence of 4aea704a5 (Fix semantics of regular
expression back-references). The lookbehind constraint should not be
applied within the back-ref.
> select 'nigqvigqvee' !~ '(())((\2)\2)(?:([^\W]))';
> -ERROR: invalid regular expression: invalid escape \ sequence
> + ?column?
> +----------
> + f
> +(1 row)
> +
and this one of 2a0af7fe4 (Allow complemented character class escapes
within regex brackets).
> select regexp_replace('tl', '.{0}?(((?<![^][^]{1}?)))(.)\2{6}?', 'jx', 'mt');
> regexp_replace
> ----------------
> - tl
> + jxl
> (1 row)
This looks like also a consequence of 4aea704a5.
regards, tom lane
view thread (17+ messages)
Message-ID: <3188079.1628448242@sss.pgh.pa.us>
Permalink: ../3188079.1628448242@sss.pgh.pa.us/
Also on: postgresql.org/message-id/3188079.1628448242@sss.pgh.pa.us
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, mark.dilger@enterprisedb.com
Subject: Re: Assert triggered during RE_compile_and_cache
In-Reply-To: <3188079.1628448242@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox