X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 2D7949DCAA5 for ; Tue, 20 Dec 2005 17:41:26 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 71418-07 for ; Tue, 20 Dec 2005 17:41:25 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from noel.decibel.org (unknown [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id DBAF89DCB31 for ; Tue, 20 Dec 2005 17:41:21 -0400 (AST) Received: by noel.decibel.org (Postfix, from userid 1001) id 119513982A; Tue, 20 Dec 2005 15:41:24 -0600 (CST) Date: Tue, 20 Dec 2005 15:41:24 -0600 From: "Jim C. Nasby" To: Martin Marques , frank church , pgsql-sql@postgresql.org Subject: Re: Does VACUUM reorder tables on clustered indices Message-ID: <20051220214124.GR28771@pervasive.com> References: <1134940325.43a5d0a5a882e@webmail.adontendev.net> <20051218220139.GA1651@surnet.cl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051218220139.GA1651@surnet.cl> X-Operating-System: FreeBSD 6.0-RELEASE amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.11 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.046 required=5 tests=[AWL=0.046] X-Spam-Score: 0.046 X-Spam-Level: X-Archive-Number: 200512/180 X-Sequence-Number: 23722 On Sun, Dec 18, 2005 at 07:01:39PM -0300, Alvaro Herrera wrote: > Martin Marques escribi?: > > On Sun, 18 Dec 2005, frank church wrote: > > > > > > > >Does VACUUMing reorder tables on clustered indices or is it only the > > >CLUSTER > > >command that can do that? > > > > Cluster does that. Vacuum only cleans dead tuples from the tables. > > Note that while reordering, CLUSTER also gets rid of dead tuples, so if > you cluster you don't need to vacuum. It also does a REINDEX... -- Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461