Re: PG-10 + ICU and abbreviated keys

From: Peter Geoghegan <pg(at)bowt(dot)ie>
To: Andreas Joseph Krogh <andreas(at)visena(dot)com>
Cc: "Psql_General (E-mail)" <pgsql-general(at)postgresql(dot)org>
Subject: Re: PG-10 + ICU and abbreviated keys
Date: 2017-11-13 20:40:47
Message-ID: CAH2-Wzku66XUpQCmBppDT2EJAAvmW3DZt-z2+Y5HNmEkm3gOxQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Nov 13, 2017 at 11:48 AM, Andreas Joseph Krogh
<andreas(at)visena(dot)com> wrote:
> Ok, so I have to explicitly specify like this:
>
> create table test(id serial primary key, name varchar collate "nb_NO" not null);

That doesn't look like an ICU locale. You may mean "nb-NO-x-icu". But
otherwise, yes.

> Will ICU be used here as long as PG is compiled with ICU-suppoert, as the debian-packages are, or do I have to specify collation-provider?

If you did initdb with a version with ICU support, the ICU collations
should be there.

> Do I have to explicitly specify collation when using ORDER by on that column for index and abbreviated keys to be used?

Only if you didn't define the column with a per-column collation initially.

--
Peter Geoghegan

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Geoghegan 2017-11-13 20:46:08 Re: PG-10 + ICU and abbreviated keys
Previous Message Thomas Rosenstein 2017-11-13 20:11:55 Logical replication + before trigger = ERROR: attempted to lock invisible tuple