2016-03-17 10:41 GMT-03:00 André Ormenese <[email protected]>:
> Tenho uma base ainda na versão 8.0.3 (eu sei que é loucura, mas essas
> coisas acontecem)
>
[...]
> pg_dump: [archiver (db)] query failed: ERROR: transaction is read-only
> pg_dump: [archiver (db)] query was: COPY public.tb_cbo (cod_cbo, dsc_cbo)
> TO stdout;
>
Além de você estar numa versão já mumificada, ainda está numa release
antiga dela. Você está na 8.0.3 e a série 8.0 chegou até 8.0.26, você está
23 releases atrás... E, sem surpresas alguma, você está de frente à um bug
conhecido da 8.0.3.
Na versão 8.0.4 (1 release à frente da sua) esse bug foi corrigido [1][2]:
- Fix the sense of the test for read-only transaction in COPY
The code formerly prohibited COPY TO, where it should prohibit COPY
FROM.
[1] http://www.postgresql.org/docs/8.0/static/release-8-0-4.html
[2] http://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=3dfec7f
Atenciosamente,
--
Matheus de Oliveira
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral