From: Jeff Davis <pgsql@j-davis.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: ICU locale validation / canonicalization
Date: Mon, 13 Feb 2023 10:52:11 -0800
Message-ID: <fbd5a2d84269378442e2049836e154d2caa225a8.camel@j-davis.com> (raw)
In-Reply-To: <CA+TgmoYmeGJaW=Py9tAZtrnCP+_Q+zRQthv=zn_HyA_nqEDM-A@mail.gmail.com>
References: <11b1eeb7e7667fdd4178497aeb796c48d26e69b9.camel@j-davis.com>
<CA+Tgmob6mDjCCA-BL2oFOpdRdijkkVrQ09DuMBi0rV_2omPVmA@mail.gmail.com>
<fccd3064fa38285d2b71c2cc46a3eae8e5c6d4fb.camel@j-davis.com>
<CA+TgmoYJ7usps=Ln6fBisgGyVcgjwXxDxYhFyc=b+iZ1XRaU6A@mail.gmail.com>
<33acfc3a772224d668042bd2cbef88e91704ce25.camel@j-davis.com>
<CA+TgmoYmeGJaW=Py9tAZtrnCP+_Q+zRQthv=zn_HyA_nqEDM-A@mail.gmail.com>
On Fri, 2023-02-10 at 22:50 -0500, Robert Haas wrote:
> The fact that you're figuring out how it all works from reading the
> source code does not give me a warm feeling.
Right. On the other hand, the behavior is quite well documented, it was
just the keyword that was undocumented (or I didn't find it).
> > But it seems like a better place for us than libc for the reasons I
> > mentioned in the other thread.
>
> It may be. But sometimes I feel that's not setting our sights very
> high. :-(
How much higher could we set our sights? What would the ideal collation
provider look like?
Those are good questions, but please let's take those questions to the
thread about ICU as a default.
The topic of this thread is:
Given that we are already offering ICU support, should we canonicalize
the locale string stored in the catalog? If so, should we use the ICU
format locale IDs, or BCP 47 language tags?
Do you have an opinion on that topic? If not, do you need additional
information?
--
Jeff Davis
PostgreSQL Contributor Team - AWS
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-hackers@postgresql.org
Cc: pgsql@j-davis.com, robertmhaas@gmail.com
Subject: Re: ICU locale validation / canonicalization
In-Reply-To: <fbd5a2d84269378442e2049836e154d2caa225a8.camel@j-davis.com>
References: <11b1eeb7e7667fdd4178497aeb796c48d26e69b9.camel@j-davis.com> <CA+Tgmob6mDjCCA-BL2oFOpdRdijkkVrQ09DuMBi0rV_2omPVmA@mail.gmail.com> <fccd3064fa38285d2b71c2cc46a3eae8e5c6d4fb.camel@j-davis.com> <CA+TgmoYJ7usps=Ln6fBisgGyVcgjwXxDxYhFyc=b+iZ1XRaU6A@mail.gmail.com> <33acfc3a772224d668042bd2cbef88e91704ce25.camel@j-davis.com> <CA+TgmoYmeGJaW=Py9tAZtrnCP+_Q+zRQthv=zn_HyA_nqEDM-A@mail.gmail.com> <fbd5a2d84269378442e2049836e154d2caa225a8.camel@j-davis.com>
* 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