Received: from localhost (unknown [200.46.204.184]) by developer.postgresql.org (Postfix) with ESMTP id A93FC2E0032 for ; Fri, 18 Apr 2008 15:24:31 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 30946-08 for ; Fri, 18 Apr 2008 15:24:26 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by developer.postgresql.org (Postfix) with ESMTP id E06CF2E002D for ; Fri, 18 Apr 2008 15:24:27 -0300 (ADT) Received: from perhan.alvh.no-ip.org (200-126-74-87.bk5-dsl.surnet.cl [200.126.74.87]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id m3IIP256016730 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 18 Apr 2008 11:25:05 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 0FD9D47C59; Fri, 18 Apr 2008 14:24:23 -0400 (CLT) Date: Fri, 18 Apr 2008 14:24:22 -0400 From: Alvaro Herrera To: Jeffrey Baker Cc: Tom Lane , pgsql-performance@postgresql.org Subject: Re: 3-days-long vacuum of 20GB table Message-ID: <20080418182422.GA11081@alvh.no-ip.org> References: <3630.1208538238@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Fri, 18 Apr 2008 11:25:06 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/277 X-Sequence-Number: 29770 Jeffrey Baker escribió: > That's rather more like it. I guess I always imagined that VACUUM was > a sort of linear process, not random, and that it should proceed at > sequential scan speeds. It's linear for the table, but there are passes for indexes which are random in 8.1. That code was rewritten by Heikki Linnakangas to do linear passes for indexes in 8.2 AFAIR. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.