X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id C3BFDD1B535 for ; Fri, 14 Nov 2003 07:44:48 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 38130-02 for ; Fri, 14 Nov 2003 03:44:18 -0400 (AST) Received: from smtp-send.myrealbox.com (smtp-send.myrealbox.com [192.108.102.143]) by svr1.postgresql.org (Postfix) with ESMTP id 7747BD1B559 for ; Fri, 14 Nov 2003 03:44:00 -0400 (AST) Received: from daithan.intranet.pspl.co.in shridhar_daithankar@smtp-send.myrealbox.com [202.54.11.72] by smtp-send.myrealbox.com with NetMail SMTP Agent $Revision: 3.44 $ on Novell NetWare via secured & encrypted transport (TLS); Fri, 14 Nov 2003 00:44:02 -0700 From: Shridhar Daithankar To: pgsql-performance@postgresql.org Subject: Re: Help with count(*) Date: Fri, 14 Nov 2003 13:00:34 +0530 User-Agent: KMail/1.5.4 References: <200311141251.38786.mallah@trade-india.com> In-Reply-To: <200311141251.38786.mallah@trade-india.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200311141300.34397.shridhar_daithankar@myrealbox.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/105 X-Sequence-Number: 4665 On Friday 14 November 2003 12:51, Rajesh Kumar Mallah wrote: > Hi , > > my database seems to be taking too long for a select count(*) > i think there are lot of dead rows. I do a vacuum full it improves > bu again the performance drops in a short while , > can anyone please tell me if anything worng with my fsm settings > current fsm=3D55099264 (not sure how i calculated it) If you don't need exact count, you can use statistics. Just analyze frequen= tly=20 and you will get the statistics. and I didn't exact;y understand this in the text. INFO: =A0"profiles": found 0 removable, 369195 nonremovable row versions in= =20 43423 pages DETAIL: =A0246130 dead row versions cannot be removed yet. Is there a transaction holoding up large amount of stuff? Shridhar