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 D61613A58B1 for ; Thu, 2 Dec 2004 19:33:06 +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 72805-04 for ; Thu, 2 Dec 2004 19:32:55 +0000 (GMT) Received: from mail.deg.cc (mail.deg.cc [64.139.134.201]) by svr1.postgresql.org (Postfix) with ESMTP id 0DC773A58CC for ; Thu, 2 Dec 2004 19:32:55 +0000 (GMT) Received: from deg.cc (kyle.deg.cc [198.70.16.205]) by mail.deg.cc (Postfix) with ESMTP id 64A1856558; Thu, 2 Dec 2004 14:32:50 -0500 (EST) Message-ID: <41AF6DE5.8020301@deg.cc> Date: Thu, 02 Dec 2004 14:32:53 -0500 From: Pallav Kalva User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.2) Gecko/20040308 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Frank Wiles Cc: pgsql-performance@postgresql.org Subject: Re: Poor Performance on a table References: <41AF68F2.1050206@deg.cc> <20041202132014.27456058.frank@wiles.org> In-Reply-To: <20041202132014.27456058.frank@wiles.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200412/68 X-Sequence-Number: 9443 Hi Frank, Thanks! for the quick reply, here are my current default fsm setting . max_fsm_pages = 20000 and max_fsm_relations = 1000 What are the appropriates settings for these parameters ? are there any guidlines ? postgres docs doesnt give much information on setting these values. Thanks! Pallav Frank Wiles wrote: >On Thu, 02 Dec 2004 14:11:46 -0500 >Pallav Kalva wrote: > > > >>Hi , >> >> I have a table in my production database which has 500k rows and >>from the pg_class it shows the number of "relpages" of >>around 750K for this table, the same table copied to a test database >>shows "relpages" as 35k. I run vacuumdb on the whole >>database (not on the table individually but the whole database) daily. >> >>I think because of this most of queries are slowing down which used to >> >>run much faster before. >> Is there any way to fix this problem ? >> >> > > Try a VACUUM FULL, this will clean up unused space. You might also > want to adjust your free space map so that you don't have to do FULL > vacuums as often ( or at all ). It is controlled by max_fsm_pages > and max_fsm_relations. > > --------------------------------- > Frank Wiles > http://www.wiles.org > --------------------------------- > > >---------------------------(end of broadcast)--------------------------- >TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) > > >