Re: where is the locale set for each server instance? - Mailing list pgsql-general

From Palle Girgensohn
Subject Re: where is the locale set for each server instance?
Date
Msg-id 2EC5C4BE12F384BDB09D2BD6@palle.girgensohn.se
Whole thread Raw
In response to Re: where is the locale set for each server instance?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: where is the locale set for each server instance?
List pgsql-general

--On söndag, mars 13, 2005 17.01.31 -0500 Tom Lane <tgl@sss.pgh.pa.us>
wrote:

> Palle Girgensohn <girgen@pingpong.net> writes:
>> So, I'm trying to find out where LC_COLLATE is overridden. Any tips?
>
> access/transam/xlog.c (which is the only file that touches pg_control,
> I believe).

OK, seems my problem is with ICU. The xlog.c:ReadConfigFile() is not run
for each backend, it seems, I assume it is forked after that. Seems ICU
cannot "remember" a setDefault(locale) call for some reason. I'll just have
to do a setlocale(LC_COLLATE, NULL) when I need one, I guess... It'll work
fine.

Thanks!

Palle


pgsql-general by date:

Previous
From: Greg Stark
Date:
Subject: Re: [PATCHES] A way to let Vacuum warn if FSM settings are low. [final?]
Next
From: Tom Lane
Date:
Subject: Re: where is the locale set for each server instance?