pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas Joseph Krogh <andreas@visena.com>
To: pgsql-general@postgresql.org
Subject: Re: PG-10 + ICU and abbreviated keys
Date: Mon, 13 Nov 2017 21:48:01 +0100 (CET)
Message-ID: <VisenaEmail.56.2bbb07f22fccd3a7.15fb720bc0b@tc7-visena> (raw)
In-Reply-To: <CAH2-Wzku66XUpQCmBppDT2EJAAvmW3DZt-z2+Y5HNmEkm3gOxQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>

På mandag 13. november 2017 kl. 21:40:47, skrev Peter Geoghegan <pg@bowt.ie 
<mailto:pg@bowt.ie>>:
On Mon, Nov 13, 2017 at 11:48 AM, Andreas Joseph Krogh
 <andreas@visena.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.
 
 
Ok, is there a way I can get a list of ICU-collations?
 
 
> 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.
 
Ok, thanks.
 
Looking forward to this being a per-database setting so it's (hopefully) more 
transparent.
 
-- Andreas Joseph Krogh
CTO / Partner - Visena AS
Mobile: +47 909 56 963
andreas@visena.com <mailto:andreas@visena.com>
www.visena.com <https://www.visena.com;
 <https://www.visena.com;


 

view thread (12+ messages)  latest in thread

Message-ID: <VisenaEmail.56.2bbb07f22fccd3a7.15fb720bc0b@tc7-visena>
Permalink:  ../VisenaEmail.56.2bbb07f22fccd3a7.15fb720bc0b@tc7-visena/
Also on:    postgresql.org/message-id/VisenaEmail.56.2bbb07f22fccd3a7.15fb720bc0b@tc7-visena

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: andreas@visena.com
  Subject: Re: PG-10 + ICU and abbreviated keys
  In-Reply-To: <VisenaEmail.56.2bbb07f22fccd3a7.15fb720bc0b@tc7-visena>
  References: <CAH2-Wzku66XUpQCmBppDT2EJAAvmW3DZt-z2+Y5HNmEkm3gOxQ@mail.gmail.com> <VisenaEmail.56.2bbb07f22fccd3a7.15fb720bc0b@tc7-visena>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox