| From: | Pavel Křehula <pavel(dot)krehula(at)nlm(dot)cz> |
|---|---|
| To: | "Igal Sapir" <igal(at)lucee(dot)org>, "Psql_General (E-mail)" <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: Case Insensitive Comparison with Postgres 12 |
| Date: | 2019-10-09 07:10:36 |
| Message-ID: | emea6bc853-e092-4e8e-bf6f-854952b87f80@pavel6 |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Hello,
use correct locale identifier, in your case it should be:
create collation "case_insensitive" (provider=icu,
locale="en-US-u-ks-level2", deterministic = false);
See
http://www.unicode.org/reports/tr35/tr35-collation.html#Setting_Options
for available options.
--
Pavel
Dne 09.10.2019 0:51:52, "Igal Sapir" <igal(at)lucee(dot)org> napsal:
>I am trying to test a simple case insensitive comparison. Most likely
>the collation that I chose is wrong, but I'm not sure how to choose the
>correct one (for English/US?). Here is my snippet:
>
>create collation case_insensitive(
> provider=icu, locale='en-US-x-icu', deterministic=false
>);
>select 'Abc' = 'abc' collate case_insensitive;
>
>I expected true but am getting false.
>
>Any thoughts?
>
>Thanks,
>
>Igal
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Wim Bertels | 2019-10-09 07:19:29 | Re: Case Insensitive Comparison with Postgres 12 |
| Previous Message | Guy Burgess | 2019-10-09 02:59:33 | Transition tables for column-specific UPDATE triggers |