Can ICU be used for a database's default sort order?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)postgreSQL(dot)org
Subject: Can ICU be used for a database's default sort order?
Date: 2017-06-23 02:10:54
Message-ID: 3366.1498183854@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I tried to arrange $subject via

create database icu encoding 'utf8' lc_ctype "en-US-x-icu" lc_collate "en-US-x-icu" template template0;

and got only

ERROR: invalid locale name: "en-US-x-icu"

which is unsurprising after looking into the code, because createdb()
checks those parameters with check_locale() which only knows about
libc-defined locale names.

Is there some way I'm missing, or is this just a not-done-yet feature?

regards, tom lane

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Langote 2017-06-23 02:17:50 Re: Setting pd_lower in GIN metapage
Previous Message Kyotaro HORIGUCHI 2017-06-23 02:02:35 Re: TRUE and true