What is the effect of locale on numbers?

Поиск
Список
Период
Сортировка
От A B
Тема What is the effect of locale on numbers?
Дата
Msg-id AANLkTikC3TNq56f633hwLQVfC2hQES7WcWtto4uRVy0-@mail.gmail.com
обсуждение исходный текст
Ответы Re: What is the effect of locale on numbers?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hello.

I use swedish locale

show lc_numeric;
 lc_numeric
-------------
 sv_SE.UTF-8

and I get a . (dot) in all floating-point numbers.

This makes me wonder, when can I see the effects of the locale? That is, I get

select 355/113.0 as pie;
        pie
--------------------
 3,1415929203539823   <---  notice , instead of .

instead of

 3.1415929203539823

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

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: where does postgres keep the query result until it is returned?
Следующее
От: Marcus Engene
Дата:
Сообщение: varchar lengths