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 5c31bf3571d2a0c3b550f7d57614ec6791d050c6.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-10 at 11:32 +0200, Peter Eisentraut wrote:
> > * Use environment variable name PG_LOCALE_PROVIDER, which seems
> > more
> > consistent.
>
> Is this not something that could already be done using
> PG_TEST_INITDB_EXTRA_OPTS ?

1. PG_LOCALE_PROVIDER is a documented user-facing option, which will
make it easier for users to set their preferred provider in scripts,
etc.

2. This change also creates default locales for the builtin and ICU
providers, so that initdb without any other locale options will succeed
regardless of the provider.

I broke these up into two patches as v3 to make it easier to
understand.

These patches are independently useful, but also important if we ever
want to change the initdb default to builtin or ICU.

Regards,
    Jeff Davis


Attachment

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: RFC: extensible planner state
Next
From: Jeff Davis
Date:
Subject: Re: new environment variable INITDB_LOCALE_PROVIDER