Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 57407633052 for ; Wed, 11 Feb 2009 11:37:15 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 59907-07 for ; Wed, 11 Feb 2009 11:37:09 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qy0-f14.google.com (mail-qy0-f14.google.com [209.85.221.14]) by mail.postgresql.org (Postfix) with ESMTP id 64114632FCF for ; Wed, 11 Feb 2009 11:37:09 -0400 (AST) Received: by qyk7 with SMTP id 7so316728qyk.19 for ; Wed, 11 Feb 2009 07:37:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=lfu0jzUNHXAW8V4W3YnmTXZoeyyuwY92aehZ3f2Pl0Y=; b=vTDdtZ+LI0I5AvN+FT0qt1ZJOkEl2L7JsBCkn5RkI5sOL+buV7rJ98YU49ddhFjE6y D2tkJZ38F7XsoqjGHvaZRoVNE1qRELePn7DC04WoaTebgglolkDsZAz8Zvb0IDJYyaGO Zo3rgSkuX5p0dE8xjdksX113/hU2s++wpQIqo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=xejkzICEK1s3gc+tAeqd0+sg57h81pElXrDKFodMoqHYzkenwTa+0G5Dt5hiEcGwdH fLrUDguWeksxY4kn4kgC6tjtUec0N0QpYq8QyEuiNOdw757USFqAojS3r+jazoOdTpWu 59csvtI8lqaOfvlJYsFtTN/77WQulgg10SrWQ= MIME-Version: 1.0 Received: by 10.224.21.169 with SMTP id j41mr585412qab.62.1234366627607; Wed, 11 Feb 2009 07:37:07 -0800 (PST) In-Reply-To: <27759.1229521625@sss.pgh.pa.us> References: <2BB7361E57C4417A975C0474610BA4C3@squarepi.com> <27759.1229521625@sss.pgh.pa.us> Date: Wed, 11 Feb 2009 21:07:07 +0530 Message-ID: Subject: Re: controlling autovacuum during the day. From: Rajesh Kumar Mallah To: Tom Lane Cc: John Lister , pgsql-admin@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200902/72 X-Sequence-Number: 31293 On Wed, Dec 17, 2008 at 7:17 PM, Tom Lane wrote: > "John Lister" 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 >