Re: Regarding vacuumdb

From: Andreas Kretschmer <andreas(at)a-kretschmer(dot)de>
To: pgsql-sql(at)lists(dot)postgresql(dot)org
Subject: Re: Regarding vacuumdb
Date: 2018-07-27 11:38:58
Message-ID: 3b94742e-8d77-5761-474c-cebabb3504a6@a-kretschmer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Am 27.07.2018 um 11:41 schrieb komala pelleti:
> Hi,
>
> We are using postgres 9.5.
>
> Iam not able to call vaccumdb from functions.: function check for
> tables for databse if pct_dead > 100, then we are issuing a vaccum on
> that table.
>
> getting error  .
>

vacuum can't run inside a transaction, and a function is a transaction.
Why not using the autovacuum-feature?

Regards, Andreas

--
2ndQuadrant - The PostgreSQL Support Company.
www.2ndQuadrant.com

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Suresh Raja 2018-08-02 17:49:00 List user who have access to schema
Previous Message komala pelleti 2018-07-27 09:41:47 Regarding vacuumdb