Re: new environment variable INITDB_LOCALE_PROVIDER

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: Peter Eisentraut <peter(at)eisentraut(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: new environment variable INITDB_LOCALE_PROVIDER
Date: 2025-10-17 22:23:01
Message-ID: 1bcdb72652af6cc3e0bff59cceb5ce749007f734.camel@j-davis.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2025-10-17 22:49:56 Re: Optimizing ResouceOwner to speed up COPY
Previous Message Masahiko Sawada 2025-10-17 22:08:07 Re: Question about InvalidatePossiblyObsoleteSlot()