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-10 18:09:35
Message-ID: 5c31bf3571d2a0c3b550f7d57614ec6791d050c6.camel@j-davis.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
v3-0001-initdb-add-default-locales-for-builtin-and-ICU-pr.patch text/x-patch 8.7 KB
v3-0002-initdb-add-PG_LOCALE_PROVIDER-environment-variabl.patch text/x-patch 3.3 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeff Davis 2025-10-10 18:28:42 Re: new environment variable INITDB_LOCALE_PROVIDER
Previous Message Robert Haas 2025-10-10 18:02:35 Re: RFC: extensible planner state