Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id D5B0E9FA6AF for ; Wed, 16 May 2007 18:18:48 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 59755-10 for ; Wed, 16 May 2007 18:18:45 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by postgresql.org (Postfix) with ESMTP id 01B639FB595 for ; Wed, 16 May 2007 18:18:44 -0300 (ADT) Received: from osgiliath.mathom.us ([72.66.113.156]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JI5001SNKJ3EU4A@vms044.mailsrvcs.net> for pgsql-performance@postgresql.org; Wed, 16 May 2007 16:18:39 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by osgiliath.mathom.us (Postfix) with ESMTP id 5FF721F816 for ; Wed, 16 May 2007 17:17:19 -0400 (EDT) Received: from osgiliath.mathom.us ([127.0.0.1]) by localhost (osgiliath.home.mathom.us [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Q9RjP2i+-MMg for ; Wed, 16 May 2007 17:17:17 -0400 (EDT) Received: by osgiliath.mathom.us (Postfix, from userid 1000) id C672C1F814; Wed, 16 May 2007 17:17:16 -0400 (EDT) Date: Wed, 16 May 2007 17:17:16 -0400 From: Michael Stone Subject: Re: [doc patch] a slight VACUUM / VACUUM FULL doc improvement proposal In-reply-to: <608xbotve5.fsf@dba2.int.libertyrms.com> To: pgsql-performance@postgresql.org Mail-followup-to: pgsql-performance@postgresql.org Message-id: <20070516211713.GJ1785@mathom.us> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-disposition: inline X-Virus-Scanned: Debian amavisd-new at mathom.us X-Pgp-Fingerprint: 53 FF 38 00 E7 DD 0A 9C 84 52 84 C5 EE DF 7C 88 References: <87lkfqavg9.fsf@meuh.mnc.lan> <20070515174427.GG1785@mathom.us> <87hcqdb4g5.fsf@meuh.mnc.lan> <20070516154809.GL14548@nasby.net> <877ir892ss.fsf@meuh.mnc.lan> <20070516160926.GX4582@alvh.no-ip.org> <20070516162035.GI1785@mathom.us> <608xbotve5.fsf@dba2.int.libertyrms.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/293 X-Sequence-Number: 24683 On Wed, May 16, 2007 at 03:34:42PM -0400, Chris Browne wrote: >mstone+postgres@mathom.us (Michael Stone) writes: >> Unless, of course, you don't particularly care about the order of >> the items in your table; you might end up wasting vastly more time >> rewriting tables due to unnecessary clustering than for full vacuums >> on a table that doesn't need it. > >Actually, this is irrelevant. I think it's perfectly relevant. >If CLUSTER is faster than VACUUM FULL (and if it isn't, in all cases, >it *frequently* is, and probably will be, nearly always, soon), then >it's a faster workaround. Cluster reorders the table. If a table doesn't have any dead rows and you tell someone to run cluster or vacuum full, the vaccuum basically won't do anything and the cluster will reorder the whole table. Cluster is great for certain access patterns, but I've been noticing this odd tendency lately to treat it like a silver bullet. Mike Stone