Assert failure with ICU support

From: Richard Guo <guofenglinux(at)gmail(dot)com>
To: PostgreSQL mailing lists <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Assert failure with ICU support
Date: 2023-04-19 10:30:10
Message-ID: CAMbWs49Q6UoKGeT8pBkMtJGJd+16CBFZaaWUk9Du+2ERE5g_YA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

I happened to run into an assert failure by chance with ICU support.
Here is the query:

SELECT '1' SIMILAR TO '\൧';

The failure happens in lexescape(),

default:
assert(iscalpha(c));
FAILW(REG_EESCAPE); /* unknown alphabetic escape */
break;

Without ICU support, the same query just gives an error.

# SELECT '1' SIMILAR TO '\൧';
ERROR: invalid regular expression: invalid escape \ sequence

FWIW, I googled a bit and '൧' seems to be number 1 in Malayalam.

Thanks
Richard

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2023-04-19 15:42:20 Re: Assert failure with ICU support
Previous Message PG Bug reporting form 2023-04-19 10:26:13 BUG #17903: There is a bug in the KeepLogSeg()