From: Jeff Davis <pgsql@j-davis.com>
To: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: pgsql: Use ICU by default at initdb time.
Date: Fri, 10 Mar 2023 06:38:17 -0800
Message-ID: <dbda1a9137aeab0f441104f212696b1c2d50d5f1.camel@j-davis.com> (raw)
In-Reply-To: <dab5ce1a-0f1d-38cd-1cb4-f2b0b2d229e0@enterprisedb.com>
References: <E1paLfy-002jGI-D8@gemulon.postgresql.org>
<d191d5841347301a8f1238f609471ddd957fc47e.camel@j-davis.com>
<dab5ce1a-0f1d-38cd-1cb4-f2b0b2d229e0@enterprisedb.com>
On Fri, 2023-03-10 at 10:59 +0100, Peter Eisentraut wrote:
> I think originally the locale forced the encoding. With ICU, we have
> a
> choice. We could either stick to the encoding suggested by the OS,
> or
> pick our own.
We still need LC_COLLATE and LC_CTYPE to match the database encoding
though. If we get those from the environment (which are connected to an
encoding), then I think we need to get the encoding from the
environment, too, right?
> Arguably, if we are going to nudge toward ICU, maybe we should nudge
> toward UTF-8 as well.
The OSes are already doing a pretty good job of that. Regardless, we
need to remove the dependence on LC_CTYPE and LC_COLLATE when the
provider is ICU first (we're close to that point but not quite there).
Regards,
Jeff Davis
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-committers@postgresql.org
Cc: pgsql@j-davis.com, peter.eisentraut@enterprisedb.com, pgsql-hackers@postgresql.org
Subject: Re: pgsql: Use ICU by default at initdb time.
In-Reply-To: <dbda1a9137aeab0f441104f212696b1c2d50d5f1.camel@j-davis.com>
References: <E1paLfy-002jGI-D8@gemulon.postgresql.org> <d191d5841347301a8f1238f609471ddd957fc47e.camel@j-davis.com> <dab5ce1a-0f1d-38cd-1cb4-f2b0b2d229e0@enterprisedb.com> <dbda1a9137aeab0f441104f212696b1c2d50d5f1.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