X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 177989FA5FB for ; Tue, 30 May 2006 11:10:43 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 19924-02 for ; Tue, 30 May 2006 11:10:34 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from alvh.no-ip.org (201-221-200-231.bk11-dsl.surnet.cl [201.221.200.231]) by postgresql.org (Postfix) with ESMTP id 394F19FA5E2 for ; Tue, 30 May 2006 11:10:34 -0300 (ADT) Received: by alvh.no-ip.org (Postfix, from userid 1000) id 00E52C3A214; Tue, 30 May 2006 10:10:31 -0400 (CLT) Date: Tue, 30 May 2006 10:10:31 -0400 From: Alvaro Herrera To: "Mr. Dan" Cc: pgsql-admin@postgresql.org Subject: Re: full vacuum - resources - scaling Message-ID: <20060530141031.GA30857@surnet.cl> Mail-Followup-To: "Mr. Dan" , pgsql-admin@postgresql.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11+cvs20060403 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/406 X-Sequence-Number: 21938 Mr. Dan wrote: > Hi, > > I have noticed that my full vacuum and re-index script is taking a day and > a half instead of 1/2 day. > Recently, the size of my database cluster has doubled to 130 GB. Would > anyone recommend increasing one or more of these to help get my full > vacuums to run a little faster? I guess the question is why are you running vacuum full at all. Plain vacuum should suffice, provided the FSM settings are enough for your database: > maxfsmpages 480001 (6 bytes each) > maxfsmrelations 30000 (70 bytes each) max_fsm_pages at 480000 are enough to cover 3 GB, if my math is correct. It may be enough or it may not, depending on the dynamics of your data. Also with non-full vacuum you may be able to get away with vacuuming some tables more often. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.