postgresql.conf autovacuum = on
Except you have particular need should be alright with postgres 9 + Richard On Mon, Feb 17, 2014 at 8:42 PM, User <[email protected]> wrote: > I'm trying to run postgresql vacuum from web2py (ultimately to be run by a > scheduled task) and I get the following error: > > db.executesql('VACUUM sometable;') > *** ProgrammingError: ('ERROR', '25001', 'VACUUM cannot run inside a > transaction > block') > > How can I run VACUUM from web2py? > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

