Re: Support LIKE with nondeterministic collations - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Support LIKE with nondeterministic collations
Date
Msg-id b0ff0233-b9e2-48ef-ac27-f69bca73f8f4@eisentraut.org
Whole thread Raw
In response to Re: Support LIKE with nondeterministic collations  ("Daniel Verite" <daniel@manitou-mail.org>)
Responses Re: Support LIKE with nondeterministic collations
List 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.




pgsql-hackers by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: EXPLAN redundant options
Next
From: "Euler Taveira"
Date:
Subject: Re: EXPLAN redundant options