On 27-09-2012 18:14, emerson lopes wrote: > C:\sistema\dados\bin\pg_restore.exe -h localhost -p 5432 -U "Administrador" -d > postgres -a -t venda_item -v "G:\venda_item 06-08-2012.backup" > pg_restore: connecting to database for restore > pg_restore: restoring data for table "venda_item" > pg_restore: [archiver (db)] Error while PROCESSING TOC: > pg_restore: [archiver (db)] Error from TOC entry 2711; 0 287084 TABLE DATA > venda_item Administrador > pg_restore: [archiver (db)] COPY failed: ERROR: value too long for type > character(3) > CONTEXT: COPY venda_item, line 667, column cancelada: "NAO SIM" > WARNING: errors ignored on restore: 1 > Processo retornou código de saída 1. > Parece-me que você reduziu o tamanho da coluna cancelada *após* realizar a cópia de segurança. Para confirmar isso, execute:
C:\sistema\dados\bin\pg_restore.exe -s -t venda_item "G:\venda_item 06-08-2012.backup" para visualizar o esquema utilizado na cópia de segurança. -- Euler Taveira de Oliveira - Timbira http://www.timbira.com.br/ PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento _______________________________________________ pgbr-geral mailing list pgbr-geral@listas.postgresql.org.br https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral