Olá 2008/8/6 Mr J.L. <[EMAIL PROTECTED]>
> Seguinte pessoal, > > Me deparei com uma base LATIN1 e preciso converte-la para LATIN9. Peguei o > arquivo de dump da LATIN1 e editei (com vi): > > SET client_encoding = 'LATIN1'; > > para > > SET client_encoding = 'LATIN9'; > > É correto fazer isso? Use o pg_dump ele nativamente faz o dump da base que vc tem em LATIN1 no encoding que você quer. Já realizei migrações de LATIN1 para UTF-8 e rolou tranquilamente. # pg_dump --help Options controlling the output content: -a, --data-only dump only the data, not the schema -b, --blobs include large objects in dump -c, --clean clean (drop) schema prior to create -C, --create include commands to create database in dump -d, --inserts dump data as INSERT commands, rather than COPY -D, --column-inserts dump data as INSERT commands with column names * -E, --encoding=ENCODING dump the data in encoding ENCODING* Att, -- Marcelo Costa
_______________________________________________ pgbr-geral mailing list pgbr-geral@listas.postgresql.org.br https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral