Case Insensitive Comparison with Postgres 12

From: Igal Sapir <igal(at)lucee(dot)org>
To: "Psql_General (E-mail)" <pgsql-general(at)postgresql(dot)org>
Subject: Case Insensitive Comparison with Postgres 12
Date: 2019-10-08 22:51:52
Message-ID: CA+zig0-9TpMC6cmi9Vz5sGM5abhh0XF7H+xokjcRUSSmtV4aYQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Morris de Oryx 2019-10-09 02:55:53 Re: Case Insensitive Comparison with Postgres 12
Previous Message Ron 2019-10-08 20:46:36 Re: Declarative Range Partitioning Postgres 11