Received: from maia.hub.org (maia-1.hub.org [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id C7C34634E9B for ; Mon, 26 Apr 2010 15:28:10 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 85350-02-7 for ; Mon, 26 Apr 2010 18:27:57 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id D263963832D for ; Mon, 26 Apr 2010 13:58:26 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id 4388E34803A; Mon, 26 Apr 2010 09:58:25 -0700 (PDT) Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eUnWVEDnTV-N; Mon, 26 Apr 2010 09:58:25 -0700 (PDT) Received: from perhan.alvh.no-ip.org (unknown [190.95.9.187]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id DE7F1348036; Mon, 26 Apr 2010 09:58:24 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 6E8E66E48C; Mon, 26 Apr 2010 12:58:22 -0400 (CLT) Date: Mon, 26 Apr 2010 12:58:22 -0400 From: Alvaro Herrera To: Rick Cc: pgsql-performance@postgresql.org Subject: Re: autovacuum strategy / parameters Message-ID: <20100426165822.GC3963@alvh.no-ip.org> References: <65d9d15d-41d2-4bfa-8cc3-6148b4fb9022@z3g2000yqz.googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <65d9d15d-41d2-4bfa-8cc3-6148b4fb9022@z3g2000yqz.googlegroups.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.466 tagged_above=-10 required=5 tests=AWL=-0.966, BAYES_05=-0.5 X-Spam-Level: X-Archive-Number: 201004/319 X-Sequence-Number: 38569 Rick wrote: > So, in a large table, the scale_factor is the dominant term. In a > small > table, the threshold is the dominant term. But both are taken into > account. Correct. > The default values are set for small tables; it is not being run for > large tables. So decrease the scale factor and leave threshold alone. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.