K
K
kolomiec_artiom2021-05-08 15:33:12
PostgreSQL
kolomiec_artiom, 2021-05-08 15:33:12

How to change date language to Russian in PostgreSQL?

Hello! When outputting the date like this, I get the following output:

SELECT to_char(now(), 'dd.TMmon')
> 08.may


I can change the language of the month to Russian with a few queries:
SET lc_time = 'ru_RU';
SELECT to_char(now(), 'dd.TMmon')
> 08.мая


But how do I do it with a single request?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-05-08
@vabka

1. Is it easier to convert the date on the application side?
2. Change postgresql.conf in the config lc_time = 'ru_RU'
3. You already have everything with one request.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question