pg.ddx.io  pgsql-ru-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
to_char TMmonth
4+ messages / 2 participants
[nested] [flat]

* to_char TMmonth
@ 2018-11-08 13:06  Михаил <m.nasedkin@gmail.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Михаил @ 2018-11-08 13:06 UTC (permalink / raw)
  To: pgsql-ru-general

Доброго, всем.

Мелочь, а не понятно.

select to_char(now(), 'TMmonth') as "месяц";

На одном сервере (10,5) - норм:

 месяц
--------
 ноября
(1 строка)

на другом (10,3, 11.0) - фигня:

 месяц
--------
 ноябрь
(1 строка)

На обоих серверах одинаково:

SHOW lc_messages;
 lc_messages
-------------
 ru_RU.utf8
(1 строка)


SHOW lc_time;
  lc_time
------------
 ru_RU.utf8
(1 строка)

Как исправить на "ноября" TMmonth?

-- 
---
С уважением,
Михаил


^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: to_char TMmonth
@ 2018-11-08 15:20  Pavel Luzanov <p.luzanov@postgrespro.ru>
  parent: Михаил <m.nasedkin@gmail.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Pavel Luzanov @ 2018-11-08 15:20 UTC (permalink / raw)
  To: pgsql-ru-general@lists.postgresql.org


On 08.11.2018 16:06, Михаил wrote:
> на другом (10,3, 11.0) - фигня:
>
>   месяц
> --------
>   ноябрь
> (1 строка)

Какая операционка?
Что показывает:
$ date +%B

-----

Pavel Luzanov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: to_char TMmonth
@ 2018-11-09 04:05  Михаил <m.nasedkin@gmail.com>
  parent: Pavel Luzanov <p.luzanov@postgrespro.ru>
  0 siblings, 1 reply; 4+ messages in thread

From: Михаил @ 2018-11-09 04:05 UTC (permalink / raw)
  To: Pavel Luzanov <p.luzanov@postgrespro.ru>; +Cc: pgsql-ru-general@lists.postgresql.org

>>   месяц
>> --------
>>   ноябрь
>> (1 строка)
>
> Какая операционка?
> Что показывает:
> $ date +%B

Linux
$ date +%B
Ноябрь





-- 
---
С уважением,
Михаил


^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: to_char TMmonth
@ 2018-11-09 09:30  Pavel Luzanov <p.luzanov@postgrespro.ru>
  parent: Михаил <m.nasedkin@gmail.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Pavel Luzanov @ 2018-11-09 09:30 UTC (permalink / raw)
  To: Михаил <m.nasedkin@gmail.com>; +Cc: pgsql-ru-general@lists.postgresql.org

On 09.11.2018 7:05, Михаил wrote:

>>>    месяц
>>> Linux
>>> $ date +%B
>>> Ноябрь

PostgreSQL в части локализации пользуется возможностями ОС, а на ваших серверах локализация в ОС работает судя по всему по разному.
Чтобы побороть, "выравнивайте" операционки.

-----
Pavel Luzanov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company

^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2018-11-09 09:30 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-11-08 13:06 to_char TMmonth Михаил <m.nasedkin@gmail.com>
2018-11-08 15:20 ` Pavel Luzanov <p.luzanov@postgrespro.ru>
2018-11-09 04:05   ` Михаил <m.nasedkin@gmail.com>
2018-11-09 09:30     ` Pavel Luzanov <p.luzanov@postgrespro.ru>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox