[pgbr-geral] Como configurar o PostgreSQL 8.3 para pt_BR?
Ribamar Sousa
ribafs em gmail.com
Segunda Março 3 15:42:41 BRT 2008
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
More information about the pgbr-geral
mailing list