X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 62ACFD92E9 for ; Fri, 23 Sep 2005 14:18:12 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 27392-01 for ; Fri, 23 Sep 2005 17:18:08 +0000 (GMT) Received: from ucsns.ucs.co.za (ucsns.ucs.co.za [196.23.43.2]) by svr1.postgresql.org (Postfix) with ESMTP id 44A00D92D5 for ; Fri, 23 Sep 2005 14:18:05 -0300 (ADT) Received: from ucspost.ucs.co.za (mailgw1.ucs.co.za [196.23.43.253]) by ucsns.ucs.co.za (Postfix) with ESMTP id 4E0CA2BD48; Fri, 23 Sep 2005 19:18:05 +0200 (SAST) Received: from jhb.ucs.co.za (jhb.ucs.co.za [172.31.1.3]) by ucspost.ucs.co.za (Postfix) with ESMTP id 57A90DC22B; Fri, 23 Sep 2005 19:18:05 +0200 (SAST) Received: from svb.ucs.co.za (svb.ucs.co.za [172.31.1.148]) by jhb.ucs.co.za (Postfix) with ESMTP id 1D7A0977C4; Fri, 23 Sep 2005 19:18:05 +0200 (SAST) Date: Fri, 23 Sep 2005 19:18:03 +0200 From: Stef To: Bruno Wolff III Cc: Markus Benne , pgsql-performance@postgresql.org Subject: Re: VACUUM FULL vs CLUSTER Message-ID: <20050923191803.14fff2a1@svb.ucs.co.za> In-Reply-To: <20050923165952.GA7327@wolff.to> References: <5.2.0.9.1.20050920144041.0287c300@pop.puc.cl> <1127242399.26562.15.camel@host-140.engineering.n-able.com> <20050923142027.GC2298@wolff.to> <20050923181644.161bf160@svb.ucs.co.za> <20050923165952.GA7327@wolff.to> X-Mailer: Sylpheed-Claws 1.9.6cvs1 (GTK+ 2.6.10; i486-pc-linux-gnu) User-Agent: sillypheed-claws (anti-aliased) X-Face: +lU/o'$=Zv9%Xjo]Kq[_{n&Kb`f{YEWH4&Y#M]'6BkD?VoWe#*@S\MWyD'I>s:0v4{#\[J]l*?]t2uaO(j$d*77Ca-UHo.tkl2)0$B3Jxww\o:xor]<:*Yfx9Vceh)9I/'2g\RKhGTxIIsR^ke^`LVeZ9ksb*:$kQeR@ X-Operating-System: sid X-X-X: _-^-_ Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.152 required=5 tests=[AWL=0.152] X-Spam-Level: X-Archive-Number: 200509/310 X-Sequence-Number: 14618 Bruno Wolff III mentioned : => > => If you have a proper FSM setting you shouldn't need to do vacuum fulls => > => (unless you have an older version of postgres where index bloat might => > => be an issue). Thanks Alvaro and Bruno I just want to clarify something that I also couldn't find a clear cut answer for before. What is a proper fsm setting? Someone told me to set max_fsm_relations to the number of relations in pg_class plus a few more to allow for new relations. And max_fsm_pages to the number of rows in the biggest table I want to vacuum, plus a few 1000's for extra room? Where does this free space map sit? On the disk somewhere, or in memory, or both. I once set the max_fsm_pages very high by mistake, and postgres then started up and used a _lot_ of shared memory, and I had to increase shmmax. Is there abything to watch out for when bumping this setting up a lot? Kind Regards Stefan