Re: Is autovacuum on? - Mailing list pgsql-general

From Filip Rembiałkowski
Subject Re: Is autovacuum on?
Date
Msg-id 92869e660803172120p7ec06bc0o28a314d8e97983a4@mail.gmail.com
Whole thread Raw
In response to Is autovacuum on?  ("Blair Bethwaite" <blair.bethwaite@infotech.monash.edu.au>)
Responses Re: Is autovacuum on?
List pgsql-general
2008/3/18, Blair Bethwaite <blair.bethwaite@infotech.monash.edu.au>:
> Hi all,
>
>  I've just upgraded to 8.3 and am looking at using autovacuum. We have
>  a long running application with high update frequency that
>  periodically issues vacuum commands itself. I'd like to be able to add
>  code to the app like:
>  if pg.autovacuum == "on":
>     self.routine_vacuuming = False
>  else:
>     self.routine_vacuuming = True
>  so that we can avoid manually issuing vacuum commands at sites where
>  Postgresql is running autovacuum.
>  But so far I haven't been able to find a way for a non-privileged user
>  to query the autovacuum status, is this possible?

yes.
select setting from pg_settings where name = 'autovacuum';

>
>  Also, the routine-vacuuming section of the manual states that the
>  purpose of the autovacuum daemon is to periodically issue VACUUM and
>  ANALYZE commands - am I correct in thinking this implies that it will
>  not issue VACUUM FULL commands?

Yes, you're correct.



--
Filip Rembiałkowski

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Problem with async notifications of table updates
Next
From: "Tyler, Mark"
Date:
Subject: Re: Problem with async notifications of table updates