Re: new environment variable INITDB_LOCALE_PROVIDER - Mailing list pgsql-hackers

From Jeff Davis
Subject Re: new environment variable INITDB_LOCALE_PROVIDER
Date
Msg-id 1bcdb72652af6cc3e0bff59cceb5ce749007f734.camel@j-davis.com
Whole thread Raw
In response to Re: new environment variable INITDB_LOCALE_PROVIDER  (Peter Eisentraut <peter@eisentraut.org>)
List pgsql-hackers
On Fri, 2025-10-17 at 17:04 +0200, Peter Eisentraut wrote:
> But that patch adds a nontrivial amount of new logic and contains no
> documentation, and some of the additional information is spread over
> other threads, so I don't have the whole picture.

That logic is there because there are still ways that LC_CTYPE matters
even when the provider is builtin or ICU, which means we need to make
an effort to get the LC_CTYPE from the environment and deal with the
problem cases.

I'm trying to eliminate the need for LC_CTYPE at all when
datlocprovider<>'c', and then we can just set datcollate and datctype
to NULL. I think it's possible, and I'll keep working on that. Perhaps
you'd like to see more progress in that direction before we commit this
patch?

Regards,
    Jeff Davis




pgsql-hackers by date:

Previous
From: Masahiko Sawada
Date:
Subject: Re: Question about InvalidatePossiblyObsoleteSlot()
Next
From: Tomas Vondra
Date:
Subject: Re: Optimizing ResouceOwner to speed up COPY