Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id C2BC49FB9E0 for ; Wed, 16 May 2007 13:09:43 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 04845-09 for ; Wed, 16 May 2007 13:09:40 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id F359D9FB87E for ; Wed, 16 May 2007 13:09:39 -0300 (ADT) Received: from perhan.alvh.no-ip.org (201-221-217-243.bk12-dsl.surnet.cl [201.221.217.243]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l4GG9Toj019532; Wed, 16 May 2007 09:09:30 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id D3ACF32A13; Wed, 16 May 2007 12:09:26 -0400 (CLT) Date: Wed, 16 May 2007 12:09:26 -0400 From: Alvaro Herrera To: Guillaume Cottenceau Cc: "Jim C. Nasby" , Michael Stone , pgsql-performance@postgresql.org Subject: Re: [doc patch] a slight VACUUM / VACUUM FULL doc improvement proposal Message-ID: <20070516160926.GX4582@alvh.no-ip.org> References: <87lkfqavg9.fsf@meuh.mnc.lan> <20070515174427.GG1785@mathom.us> <87hcqdb4g5.fsf@meuh.mnc.lan> <20070516154809.GL14548@nasby.net> <877ir892ss.fsf@meuh.mnc.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <877ir892ss.fsf@meuh.mnc.lan> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: ClamAV version 0.88.5, clamav-milter version 0.88.5 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Wed, 16 May 2007 09:09:30 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/289 X-Sequence-Number: 24679 Guillaume Cottenceau wrote: > "Jim C. Nasby" writes: > > > On Wed, May 16, 2007 at 09:41:46AM +0200, Guillaume Cottenceau wrote: > > [...] > > > > Come on, I don't suggest to remove several bold warnings about > > > it, the best one being "Therefore, frequently using VACUUM FULL > > > can have an extremely negative effect on the performance of > > > concurrent database queries." My point is to add the few > > > additional mentions; I don't think the claims that VACUUM FULL > > > physically compacts the data, and might be useful in case of too > > > long time with infrequent VACUUM are incorrect, are they? > > > > Unfortunately they are, to a degree. VACUUM FULL can create a > > substantial amount of churn in the indexes, resulting in bloated > > indexes. So often you have to REINDEX after you VACUUM FULL. > > Ok, VACUUM FULL does his job (it physically compacts the data and > might be useful in case of too long time with infrequent VACUUM), > but we are going to not talk about it because we often needs a > REINDEX after it? The natural conclusion would rather be to > document the fact than REINDEX is needed after VACUUM FULL, isn't > it? Maybe, but we should also mention that CLUSTER is a likely faster workaround. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.