Re: dangers of setlocale() in backend (was: problem with float8 input format)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: dangers of setlocale() in backend (was: problem with float8 input format)
Дата
Msg-id 23129.966100201@sss.pgh.pa.us
обсуждение исходный текст
Ответ на dangers of setlocale() in backend (was: problem with float8 input format)  (Louis-David Mitterrand <cunctator@apartia.ch>)
Список pgsql-general
Louis-David Mitterrand <cunctator@apartia.ch> writes:
>> IMPORTANT: changing the backend's locale on-the-fly is an EXTREMELY
>> DANGEROUS thing to do, and I strongly recommend that you find another
>> way to solve your problem.

> The "problem" I am trying to solve is to send e-mail notifications to
> auction bidders in their own language with the proper number formatting,
> etc. From what you are saying I'll probably have to move these
> notifications to the mod_perl layer of the application.

Well, you could fork a subprocess to issue the mail and change locale
only once you're safely inside the subprocess.

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: "Byron Nikolaidis"
Дата:
Сообщение: Re: ClassNotFoundException
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Optimizer confusion?