Re: where is the locale set for each server instance?

From: Palle Girgensohn <girgen(at)pingpong(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: where is the locale set for each server instance?
Date: 2005-03-13 23:18:55
Message-ID: 2EC5C4BE12F384BDB09D2BD6@palle.girgensohn.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

--On söndag, mars 13, 2005 17.01.31 -0500 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
wrote:

> Palle Girgensohn <girgen(at)pingpong(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2005-03-13 23:37:24 Re: where is the locale set for each server instance?
Previous Message Greg Stark 2005-03-13 22:35:27 Re: [PATCHES] A way to let Vacuum warn if FSM settings are low. [final?]