2015-05-05 12:01 GMT-03:00 Luiz Henrique <[email protected]>:

> select to_char(date'2015-05-05','TMDay') as dia;
>    dia
> ---------
>  Tuesday
> (1 row)
>

Tente fazer o SET do lc_time na mesma sessão:

postgres=# SET lc_time TO 'pt_BR.UTF8';
SET
postgres=# SELECT to_char(date'2015-05-05','TMDay') AS dia;
  dia
-------
 Terça
(1 row)

Você depois pode configurar o lc_time no postgresql.conf, or por
usuário/banco: ALTER ROLE/DATABASE <nome> SET lc_time TO 'pt_BR.UTF8';

Atenciosamente,
-- 
Matheus de Oliveira
Analista de Banco de Dados
Dextra Sistemas - MPS.Br nível F!
www.dextra.com.br/postgres
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a