Re: lc_monetary + Peru

From: Ruben avila galindo <ruben2218(at)gmail(dot)com>
To: "Miguel Beltran R(dot)" <yourpadre(at)gmail(dot)com>
Cc: Ayuda <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: lc_monetary + Peru
Date: 2013-12-19 17:19:16
Message-ID: CAKavrFo2nbaAnsENQy+uwdpT2B_A2kbQOWL0WrHPDp8_d+MuiQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Gracias Miguel y era porque tenia que instalarse en el ubuntu

apt-get language-package-es

y luego en el PostgreSQL.conf ponerle en el lc_monetary= es_PE.UTF8 o
tambien
inicializar con LOCALE = es_PE.

eso es para cualquier pais ya que por default seimpre instala el ingles.

Saludos

2013/12/18 Miguel Beltran R. <yourpadre(at)gmail(dot)com>

> Una es iniciarlizar el "cluster" de postgres donde estan tus bases de
> datos con http://www.postgresql.org/docs/current/static/app-initdb.html
>
> Otra es crear la base con el nuevo locale
> http://www.postgresql.org/docs/9.0/static/app-createdb.html
>
> Porque no es posible cambiar el LOCALE, como se menciona abajo.
>
>
> 22.1.3. Problems
>
> If locale support doesn't work according to the explanation above, check
> that the locale support in your operating system is correctly configured.
> To check what locales are installed on your system, you can use the command locale
> -a if your operating system provides it.
>
> Check that PostgreSQL is actually using the locale that you think it is.
> The LC_COLLATE and LC_CTYPE settings are determined when a database is
> created, __and cannot be changed except by creating a new database__. Other
> locale settings including LC_MESSAGES and LC_MONETARY are initially
> determined by the environment the server is started in, but can be changed
> on-the-fly. You can check the active locale settings using the SHOWcommand.
>
>
>
> El 17 de diciembre de 2013, 9:52, Ruben avila galindo<ruben2218(at)gmail(dot)com>escribió:
>
>
>> Hola buenas tardes estoy tratando de cambiar el LC_monetary= en_US.UTF8-8
>> ya que me esta grabando con Dolares y en mi pais PERU uso S/ ya que esta
>> grabando con $ en mi campo.
>>
>>
>> Saludos,
>> --
>>
>>
>>
>>
>>
>> Ruben Avila G.
>> Ing.Sistemas
>> Developer y Arquitecto Opensource
>> Cel:997686960
>>
>
>
>
> --
> ________________________________________
> Lo bueno de vivir un dia mas
> es saber que nos queda un dia menos de vida
>

--

Ruben Avila G.
Ing.Sistemas
Developer y Arquitecto Opensource
Cel:997686960

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Juan J Rosales Rodriguez 2014-01-07 18:03:17 Transacciones dentro de una funcion
Previous Message Alvaro Herrera 2013-12-19 03:26:15 Re: Posible bug? fue:(Re: hola mundo y una consulta)