Re: [PATCH] Fix severe performance regression with gettext 0.20+ on Windows - Mailing list pgsql-hackers

From Thomas Munro
Subject Re: [PATCH] Fix severe performance regression with gettext 0.20+ on Windows
Date
Msg-id CA+hUKGK_cZkYDFJ7SgPfS_TxqFczM_HpNyLxg9vJdMrg1jum+Q@mail.gmail.com
Whole thread Raw
In response to [PATCH] Fix severe performance regression with gettext 0.20+ on Windows  (Bryan Green <dbryan.green@gmail.com>)
List pgsql-hackers
On Wed, Dec 10, 2025 at 1:45 PM Bryan Green <dbryan.green@gmail.com> wrote:
> 1. Locale format mismatch
>    gettext 0.20.1+ introduced a get_lcid() function that expects Windows
> locale format ("English_United States.1252") rather than POSIX format
> ("en_US"). This function enumerates all Windows locales (~259) until a
> match is found, then uses the resulting LCID to determine the catalog path.

I'm surprised there isn't a fast path that skips all that deprecated
(?) stuff when you use BCP 47 language codes...



pgsql-hackers by date:

Previous
From: vignesh C
Date:
Subject: pg_dump crash due to incomplete ordering of DO_SUBSCRIPTION_REL objects
Next
From: Tom Lane
Date:
Subject: Re: PRI?64 vs Visual Studio (2022)