Re: Remaining dependency on setlocale() - Mailing list pgsql-hackers

From Jeff Davis
Subject Re: Remaining dependency on setlocale()
Date
Msg-id ad99dba1cc6f2f3b27bb765b29f95e7eca691666.camel@j-davis.com
Whole thread Raw
In response to Re: Remaining dependency on setlocale()  (Thomas Munro <thomas.munro@gmail.com>)
Responses Re: Remaining dependency on setlocale()
List pgsql-hackers
On Thu, 2024-08-15 at 10:43 +1200, Thomas Munro wrote:
> So I think the solution could perhaps be something like: in some
> early
> startup phase before there are any threads, we nail down all the
> locale categories to "C" (or whatever we decide on for the permanent
> global locale), and also query the "" categories and make a copy of
> them in case anyone wants them later, and then never call setlocale()
> again.

+1.

Regards,
    Jeff Davis




pgsql-hackers by date:

Previous
From: Jeff Davis
Date:
Subject: Re: tiny step toward threading: reduce dependence on setlocale()
Next
From: Tom Lane
Date:
Subject: Re: Opinion poll: Sending an automated email to a thread when it gets added to the commitfest