Re: AutoVacuum on demand? - Mailing list pgsql-general

From Matthew T. O'Connor
Subject Re: AutoVacuum on demand?
Date
Msg-id 4558AEC1.9010104@zeut.net
Whole thread Raw
In response to AutoVacuum on demand?  (Glen Parker <glenebob@nwlink.com>)
Responses Re: AutoVacuum on demand?
List pgsql-general
Glen Parker wrote:
> I would like a way to run the autovacuum daemon on demand
> periodically.   Every night at 2 AM, for example.
>
> Anybody know if this is possible?  If not, it's a feature request :-)

Autovacuum can be enabled / disabled on the fly using the GUC settings.
Perhaps you can write a cron script that runs at 2AM that enables
autovac, and at 6AM (just a guess) disables it in the same fashion.  I
think that should work.

Would be curious to hear your results.

Matt


pgsql-general by date:

Previous
From: Chris Browne
Date:
Subject: Re: Request for replication advice
Next
From: Jeff Davis
Date:
Subject: Re: Inserting data in composite types