From: Rajesh Kumar Mallah <mallah.rajesh@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: John Lister <john.lister-ps@kickstone.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: controlling autovacuum during the day.
Date: Wed, 11 Feb 2009 21:07:07 +0530
Message-ID: <a97c77030902110737v1321d2d5va32daee833a0ad50@mail.gmail.com> (raw)
In-Reply-To: <27759.1229521625@sss.pgh.pa.us>
References: <2BB7361E57C4417A975C0474610BA4C3@squarepi.com>
<27759.1229521625@sss.pgh.pa.us>
On Wed, Dec 17, 2008 at 7:17 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> "John Lister" <john.lister-ps@kickstone.com> writes:
>> I'd like to use autovacuum to clean up the tables rather than schedule a
>> full vacuum with cron as it will be more selective/intelligent about what
>> gets cleaned. But is it possible to stop it running during peak/office
>> hours?
>
> No. Instead, set the vacuum cost parameters to make it run slow enough
> to not interfere too much with your work.
is it a bad idea to have such a feature ?
i was going through ./src/backend/postmaster/autovacuum.c
looks like subroutine autovac_start can be modfied to
for the said feature. In case it does not have negative implication
can i submit a patch ?
regds
-- mallah.
>
> regards, tom lane
>
> --
> Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: mallah.rajesh@gmail.com, tgl@sss.pgh.pa.us, john.lister-ps@kickstone.com
Subject: Re: controlling autovacuum during the day.
In-Reply-To: <a97c77030902110737v1321d2d5va32daee833a0ad50@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox