Em 18 de outubro de 2011 11:14, Emerson Martins <[email protected]>escreveu:
> Olá pessoal.. > Tenho um banco de dados PostgreSQL versao 9.0.2 num server Slackware onde > nesse mesmo server temos varias bases em LATIN1 por necessidade dos > sistemas... > Porém surgiu a necessidade de criar duas bases com o encode em UTF8, e > estou tendo alguns erros.Segue: > > /usr/local/pgsql/bin/createdb -E UTF8 bdteste > createdb: database creation failed: ERROR : encoding UTF8 does not macth > locale pt_BR > Detail: Then chosen LC_TYPE setting requires encoding LATIN1 > > postgres@pgpoll:~$ locale > LANG=pt_BR.utf8 > LC_CTYPE="pt_BR.utf8" > LC_NUMERIC="pt_BR.utf8" > LC_TIME="pt_BR.utf8" > LC_COLLATE=pt_BR.utf8 > LC_MONETARY="pt_BR.utf8" > LC_MESSAGES="pt_BR.utf8" > LC_PAPER="pt_BR.utf8" > LC_NAME="pt_BR.utf8" > LC_ADDRESS="pt_BR.utf8" > LC_TELEPHONE="pt_BR.utf8" > LC_MEASUREMENT="pt_BR.utf8" > LC_IDENTIFICATION="pt_BR.utf8" > LC_ALL= > > > Preciso configurar mais alguma coisa..Se alguém tiver alguma dica posta.. > > Obrigado a todos. > > Emerson Martins > DBA Jr > > > _______________________________________________ > pgbr-geral mailing list > [email protected] > https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral > > Caso você deve usar o template0 como template do seu BD. createdb -E UTF8 -T template0 --lc-collate=pt_BR.utf8 --lc-ctype=pt_BR.utf8 tst []s Edson Souza
_______________________________________________ pgbr-geral mailing list [email protected] https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
