X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 630B33A3F2B for ; Thu, 2 Dec 2004 20:10:59 +0000 (GMT) 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 86881-02 for ; Thu, 2 Dec 2004 20:10:50 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 0F9BA3A58AD for ; Thu, 2 Dec 2004 20:10:50 +0000 (GMT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id iB2KAnsj000703; Thu, 2 Dec 2004 15:10:49 -0500 (EST) To: Pallav Kalva Cc: pgsql-performance@postgresql.org Subject: Re: Poor Performance on a table In-reply-to: <41AF72EB.1070900@deg.cc> References: <41AF68F2.1050206@deg.cc> <29227.1102016219@sss.pgh.pa.us> <41AF72EB.1070900@deg.cc> Comments: In-reply-to Pallav Kalva message dated "Thu, 02 Dec 2004 14:54:19 -0500" Date: Thu, 02 Dec 2004 15:10:49 -0500 Message-ID: <702.1102018249@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.002 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200412/73 X-Sequence-Number: 9448 Pallav Kalva writes: > Tom Lane wrote: >> Another likely problem is that you >> need to increase the FSM settings (how big is your whole database?) >> > Yes, you are right this table is heavily updated, the whole database > size is of 1.5 gigs, right now i have default fsm settings how much > should i increase max_fsm_pages and max_fsm_relations to ? A lot --- factor of 10 at least. Try "vacuum verbose" and look at the last couple lines of output. >> VACUUM FULL will fix the immediate problem. You might well find CLUSTER >> to be a faster alternative, though. > How does CLUSTER benefit me ? It'll probably take less time to rebuild the table. VACUUM FULL is really optimized for the case of moving a relatively small fraction of the table around, but it sounds like you need a complete rebuild. regards, tom lane