Re: configuracion regional

From: Carlos Martinez <camarti(at)gmail(dot)com>
To: "pgsql-es-ayuda(at)postgresql(dot)org" <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: configuracion regional
Date: 2018-01-17 17:49:07
Message-ID: CA+Mn-VbkvjaDph=yhOkDz9PGKsGPNfBbs8UWoPrE8pqvkKNv_A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

El comando correcto es el siguiente:

CREATE DATABASE "Nombre_BD"
WITH TEMPLATE template0
OWNER el_propietario
encoding 'UTF8'
LC_CTYPE 'es_AR.UTF-8'
LC_COLLATE = 'es_AR.UTF-8';

Hasta la proxima.

Carlos Martínez.

2018-01-17 12:38 GMT-05:00 Néstor Ramires <nramire1(at)rosario(dot)gov(dot)ar>:
>
> No, es el mismo error.
>
> postgres=# CREATE DATABASE mi_base
> postgres-# WITH OWNER = postgres
> postgres-# TEMPLATE = template0
> postgres-# ENCODING = 'UTF8'
> postgres-# CONNECTION LIMIT = -1;
> ERROR: encoding "UTF8" does not match locale "es_AR.iso88591"
> DETAIL: The chosen LC_CTYPE setting requires encoding "LATIN1".
> postgres=#
>
> Por lo que vengo leyendo:
> http://grokbase.com/t/postgresql/pgsql-es-ayuda/0855eb0bvw/bases-de-datos-utf-8-y-latin1-en-un-mismo-server
>
> http://grokbase.com/t/postgresql/pgsql-general/083y5tj295/locale-encoding-mismatch
>
> Tendría que hacer un cambio importante en el servidor y no estaría en condiciones de tocarlo tanto, por las bases de datos que ya tiene.
>
>
> En Wed, 17 Jan 2018 14:02:27 -0300, Jaime Casanova <jaime(dot)casanova(at)2ndquadrant(dot)com> escribió:
>
>> 2018-01-17 11:43 GMT-05:00 Néstor Ramires <nramire1(at)rosario(dot)gov(dot)ar>:
>>>
>>>
>>> postgres=# CREATE DATABASE mi_base
>>> WITH OWNER = postgres
>>> ENCODING = 'UTF8'
>>> CONNECTION LIMIT = -1;
>>> ERROR: encoding "UTF8" does not match locale "es_AR.iso88591"
>>> DETAIL: The chosen LC_CTYPE setting requires encoding "LATIN1".
>>> postgres=#
>>>
>>> ¿como puedo sortear este inconveniente sin modificar la codificacion por
>>> defecto?
>>>
>>
>> intenta usando template0 como template
>> """
>> CREATE DATABASE mi_base
>> WITH OWNER = postgres
>> TEMPLATE = template0
>> ENCODING = 'UTF8'
>> CONNECTION LIMIT = -1;
>> """
>>
>
>
> --
> Ing. Agrimensor Néstor Ramires
> Departamento de Cartografía Digital
> Dirección General de Topografía y Catastro
> Municipalidad de Rosario
>

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Néstor Ramires 2018-01-17 18:08:38 Re: configuracion regional
Previous Message Alvaro Herrera 2018-01-17 17:49:05 Re: configuracion regional