On 14-02-2014 16:52, Luiz Carlos L. Nogueira Jr. wrote:
Pessoal,
Quando rodo
psql postgres -c "VACUUM table1; REINDEX table1"
Dá esse erro:
ERROR: VACUUM cannot be executed from a function or multi-command string
Tem alguma coisa que possa fazer pra executar um comando e depois o outro.
Tente assim:
echo "VACUUM table1; REINDEX TABLE table1;" | psql postgres
Att,
--
Fabrízio de Royes Mello 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