Re: Support LIKE with nondeterministic collations

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: Daniel Verite <daniel(at)manitou-mail(dot)org>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Support LIKE with nondeterministic collations
Date: 2024-05-02 13:38:32
Message-ID: b0ff0233-b9e2-48ef-ac27-f69bca73f8f4@eisentraut.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 30.04.24 14:39, Daniel Verite wrote:
> postgres=# SELECT '.foo.' like '_oo' COLLATE ign_punct;
> ?column?
> ----------
> f
> (1 row)
>
> The first two results look fine, but the next one is inconsistent.

This is correct, because '_' means "any single character". This is
independent of the collation.

I think with nondeterministic collations, the single-character wildcard
is often not going to be all that useful.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Euler Taveira 2024-05-02 13:58:40 Re: EXPLAN redundant options
Previous Message David G. Johnston 2024-05-02 13:36:34 Re: EXPLAN redundant options