Re: Execute vacuum - Mailing list pgsql-general

From Magnus Naeslund(t)
Subject Re: Execute vacuum
Date
Msg-id 3FBE4853.2040802@fbab.net
Whole thread Raw
In response to Execute vacuum  (Carmen Gloria Sepulveda Dedes <csepulveda@atichile.com>)
List pgsql-general
Carmen Gloria Sepulveda Dedes wrote:

> Hello!
>
> Can I execute VACUUM ANALYZE from ecpg?
>
> How I do that???
>
> /*
> I do:  EXEC SQL VACUUM ANALYZE <table>;
> But I get error:  'ERROR:  VACUUM cannot run inside a transaction block'
>
> */
>

Turn on/off autocommit maybe?
Or fake it with "EXEC SQL COMMIT; VACUUM ANALYZE" ? :)

Magnus



pgsql-general by date:

Previous
From: Mike Mascari
Date:
Subject: Re: linking postgre to AD
Next
From: Tom Lane
Date:
Subject: Re: Pg Dump error