Assert failure with ICU support - Mailing list pgsql-bugs

From Richard Guo
Subject Assert failure with ICU support
Date
Msg-id CAMbWs49Q6UoKGeT8pBkMtJGJd+16CBFZaaWUk9Du+2ERE5g_YA@mail.gmail.com
Whole thread Raw
Responses Re: Assert failure with ICU support
Re: Assert failure with ICU support
List 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

pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #17903: There is a bug in the KeepLogSeg()
Next
From: Tom Lane
Date:
Subject: Re: Assert failure with ICU support