Re: Day and month name localization uses wrong locale category

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Day and month name localization uses wrong locale category
Дата
Msg-id 6207.1164387516@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Day and month name localization uses wrong locale category  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: Day and month name localization uses wrong locale category  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> What's concerning me about the way this is written is that it calls 
> setlocale() for each formatting instance, which will be very slow.

Perhaps, the first time the info is needed, do setlocale(), ask strftime
for the 12+7 strings we need and save them away, then revert to C locale
and proceed from there.
        regards, tom lane


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

Предыдущее
От: Bernd Helmle
Дата:
Сообщение: Weird behavior in psql with \copy
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Day and month name localization uses wrong