pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Davis <pgsql@j-davis.com>
To: Thomas Munro <thomas.munro@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Remaining dependency on setlocale()
Date: Wed, 14 Aug 2024 16:00:39 -0700
Message-ID: <ad99dba1cc6f2f3b27bb765b29f95e7eca691666.camel@j-davis.com> (raw)
In-Reply-To: <CA+hUKGK57sgUYKO03jB4VarTsswfMyScFAyJpVnYD8c+g12_mg@mail.gmail.com>
References: <4c5da86af36a0d5e430eee3f60ce5e06f1b5cd34.camel@j-davis.com>
	<1841102.1722982989@sss.pgh.pa.us>
	<CA+hUKGK7qKDHgoh1HuvMhtcpAwwVBA5BDt33vCzYYqCLfQTtzw@mail.gmail.com>
	<CA+hUKGK57sgUYKO03jB4VarTsswfMyScFAyJpVnYD8c+g12_mg@mail.gmail.com>

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






view thread (96+ messages)  latest in thread

Message-ID: <ad99dba1cc6f2f3b27bb765b29f95e7eca691666.camel@j-davis.com>
Permalink:  ../ad99dba1cc6f2f3b27bb765b29f95e7eca691666.camel@j-davis.com/
Also on:    postgresql.org/message-id/ad99dba1cc6f2f3b27bb765b29f95e7eca691666.camel@j-davis.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: pgsql@j-davis.com, thomas.munro@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: Remaining dependency on setlocale()
  In-Reply-To: <ad99dba1cc6f2f3b27bb765b29f95e7eca691666.camel@j-davis.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox