Dá erro pq o vacuum só pode ser o único comando a ser rodado. VACUUM cannot be executed from a function or multi-command string
Em 14 de fevereiro de 2014 16:01, Fabrízio de Royes Mello < fabri...@timbira.com.br> escreveu: > 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 >
_______________________________________________ pgbr-geral mailing list pgbr-geral@listas.postgresql.org.br https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral