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 <[EMAIL PROTECTED]> 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:
>
> [EMAIL PROTECTED]:~$ /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 - [EMAIL PROTECTED]
> http://ribafs.net
> _______________________________________________
> pgbr-geral mailing list
> [email protected]
> https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
>



-- 
João Paulo
www.dextra.com.br/postgres
PostgreSQL
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a