Re: BUG #19681: ILIKE rejected on nondeterministic collations while LIKE works

From: Nitin Motiani <nitinmotiani(at)google(dot)com>
To: 303677365(at)qq(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19681: ILIKE rejected on nondeterministic collations while LIKE works
Date: 2026-09-12 15:50:26
Message-ID: CAH5HC97wW6bpGHiWCVW7K2SG5w=rZPdjZCnnoQW9AuoD+i+kPw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Thu, Sep 10, 2026 at 5:38 PM PG Bug reporting form
<noreply(at)postgresql(dot)org> wrote:
>
> The following bug has been logged on the website:
>
>
> The documentation (func-matching.sgml) states that LIKE supports
> nondeterministic collations and that SIMILAR TO / POSIX regex do not — but
> says nothing about ILIKE. Meanwhile ILIKE's documented definition is exactly

I see that this doc
https://www.postgresql.org/docs/18/functions-matching.html#FUNCTIONS-LIKE
says that ILIKE doesn't support non-deterministic-collations.

"The key word ILIKE can be used instead of LIKE to make the match
case-insensitive according to the active locale. (But this does not
support nondeterministic collations.)"

So this looks like it is working as intended.

Thanks
Nitin Motiani
Senior Software Engineer,
Google

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Ayush Tiwari 2026-09-12 16:45:36 Re: BUG #19684: Assertion in tuplesort_begin_heap() falsified by parallel plan with sort
Previous Message Ayush Tiwari 2026-09-12 15:50:02 Re: BUG #19631: currtid2() on a view with GROUP BY ctid crashes with XX000