2011/5/4 Joao Cosme de Oliveira Junior <joao.co...@serpro.gov.br>:
> Mandando um dump com um sed....
>
> pg_dump ..... | sed 's/esquema_antigo/esquema_novo/g ' | psql -U ..
>
>

Meio arriscado esse sed, principalmente se o nome do schema for comum.


-- 
Reinaldo de Carvalho
http://korreio.sf.net
http://python-cyrus.sf.net

"While not fully understand a software, don't try to adapt this
software to the way you work, but rather yourself to the way the
software works" (myself)
_______________________________________________
pgbr-geral mailing list
pgbr-geral@listas.postgresql.org.br
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a