Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 8C36164FDBB for ; Wed, 17 Dec 2008 09:47:14 -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 77425-02 for ; Wed, 17 Dec 2008 09:47:11 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id C07F864FD30 for ; Wed, 17 Dec 2008 09:47:11 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id mBHDl5cW027760; Wed, 17 Dec 2008 08:47:05 -0500 (EST) To: "John Lister" cc: pgsql-admin@postgresql.org Subject: Re: controlling autovacuum during the day. In-reply-to: <2BB7361E57C4417A975C0474610BA4C3@squarepi.com> References: <2BB7361E57C4417A975C0474610BA4C3@squarepi.com> Comments: In-reply-to "John Lister" message dated "Wed, 17 Dec 2008 12:56:49 +0000" Date: Wed, 17 Dec 2008 08:47:05 -0500 Message-ID: <27759.1229521625@sss.pgh.pa.us> From: Tom Lane 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: 200812/123 X-Sequence-Number: 30956 "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. regards, tom lane