Re: BUG #18708: regex problem: (?:[^\d\D]){0} asserts with "lp->nouts == 0 && rp->nins == 0"

Aleksander Alekseev <aleksander@timescale.com>

From: Aleksander Alekseev <aleksander@timescale.com>
To: pgsql-bugs@lists.postgresql.org
Cc: Tom Lane <tgl@sss.pgh.pa.us>, dhyan@nataraj.su
Date: 2024-11-15T12:53:36Z
Lists: pgsql-bugs
Hi,

> Well... at least it's consistent with the current naming e.g.
> HASCANTMATCH. I suggest keeping it as is.

Oh I wrote something stupid, HASCANTMATCH is part of the patch.

In any case, IMO the name is OK.

-- 
Best regards,
Aleksander Alekseev



Commits

  1. Fix recently-exposed portability issue in regex optimization.

  2. Avoid assertion due to disconnected NFA sub-graphs in regex parsing.

  3. Fix recovery conflict SIGUSR1 handling.

  4. Redesign interrupt/cancel API for regex engine.

  5. Use MemoryContext API for regex memory management.

  6. Invent "rainbow" arcs within the regex engine.