[pgbr-geral] Como configurar o PostgreSQL 8.3 para pt_BR?

jota.comm jota.comm em gmail.com
Segunda Março 3 18:25:50 BRT 2008


Olá,

Pode digitar um locale -a e ver os locale disponíveis. Tem que ver se você
tem o latin1 na máquina.

[]s

Em 03/03/08, Ribamar Sousa <ribafs em gmail.com> escreveu:
>
> Olá!
>
> Instalei agora o PostgreSQL 8.3 através dos fontes e no momento de
> inicializar o agrupamenteo eu passei pt_BR. Veja o que acontece:
>
> postgres2 em cmiin07:~$ /usr/local/pgsql/bin/initdb --locale=pt_BR -D
> /usr/local/pgsql/data
> initdb: invalid locale name "pt_BR"
> initdb: invalid locale name "pt_BR"
> initdb: invalid locale name "pt_BR"
> initdb: invalid locale name "pt_BR"
> initdb: invalid locale name "pt_BR"
> initdb: invalid locale name "pt_BR"
> The files belonging to this database system will be owned by user
> "postgres2".
> This user must also own the server process.
>
> The database cluster will be initialized with locale pt_BR.UTF-8.
> The default database encoding has accordingly been set to UTF8.
> The default text search configuration will be set to "portuguese".
>
> Ao entrar no psql eu peço a lsitagem dos bancos com \l e ele me mostra:
>
>    Name    |   Owner   | Encoding
> -----------+-----------+----------
>   postgres  | postgres2 | UTF8
>   template0 | postgres2 | UTF8
>   template1 | postgres2 | UTF8
>
> Ao tentar criar um banco com a codificação latin1, acontece:
>
> postgres=# create database latin with encoding 'latin1';
> ERROR:  encoding LATIN1 does not match server's locale pt_BR.UTF-8
> DETAIL:  The server's LC_CTYPE setting requires encoding UTF8.
> STATEMENT:  create database latin with encoding 'latin1';
> ERROR:  encoding LATIN1 does not match server's locale pt_BR.UTF-8
> DETAIL:  The server's LC_CTYPE setting requires encoding UTF8.
>
> Aparentemente reclama do LC_CTYPE, mas não o vejo no postgresql.conf.
>
> Será que não se pode mais criar bancos com codificação diferente de UTF-8?
>
>
> --
> Ribamar FS - ribafs em ribafs.net
> http://ribafs.net
> _______________________________________________
> pgbr-geral mailing list
> pgbr-geral em listas.postgresql.org.br
> https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
>



-- 
João Paulo
www.dextra.com.br/postgres
PostgreSQL
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://listas.postgresql.org.br/pipermail/pgbr-geral/attachments/20080303/b933110b/attachment.htm 


More information about the pgbr-geral mailing list