From: Tom Lane <tgl@sss.pgh.pa.us>
To: Daniel Verite <daniel@manitou-mail.org>
Cc: arnaud.perrier@gmail.com, Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16570: Collation not working
Date: Tue, 04 Aug 2020 18:36:52 -0400
Message-ID: <2465507.1596580612@sss.pgh.pa.us> (raw)
In-Reply-To: <23d3f3ec-5022-4535-8bd4-bb2c56456767@manitou-mail.org>
References: <23d3f3ec-5022-4535-8bd4-bb2c56456767@manitou-mail.org>
"Daniel Verite" <daniel@manitou-mail.org> writes:
> PG Bug reporting form wrote:
>> The collation to order digits after latin characters from the official
>> documentation https://www.postgresql.org/docs/12/collation.html
>>
>> CREATE COLLATION digitslast (provider = icu, locale =
>> 'en-u-kr-latn-digit');
> The doc has this caveat:
> "The examples using the k* subtags require at least ICU version 54."
> Since you're using ICU 53, the syntax mentioned above for the locale
> argument doesn't work. It doesn't error out, it's just being ignored.
It seems from this bug report that the OP copied-and-pasted *both* variants
of the example
CREATE COLLATION digitslast (provider = icu, locale = 'en-u-kr-latn-digit');
CREATE COLLATION digitslast (provider = icu, locale = 'en@colReorder=latn-digit');
without noticing the caveat (which is a good deal further down anyway).
I wonder if we could improve this by dropping the separate caveat and
writing each example like:
CREATE COLLATION digitslast (provider = icu, locale = 'en-u-kr-latn-digit');
or for ICU versions before 54,
CREATE COLLATION digitslast (provider = icu, locale = 'en@colReorder=latn-digit');
That'd be a little repetitive, but there are only five such examples,
and it'd be way harder to mistake the meaning then.
regards, tom lane
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 using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, daniel@manitou-mail.org, peter.eisentraut@2ndquadrant.com, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16570: Collation not working
In-Reply-To: <2465507.1596580612@sss.pgh.pa.us>
* 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