Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id C86F4476224 for ; Mon, 21 Oct 2002 04:29:14 -0400 (EDT) Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id 2BAAC4762CF for ; Mon, 21 Oct 2002 04:28:46 -0400 (EDT) Received: by news.hub.org (Postfix, from userid 8) id 0493D381A34; Mon, 21 Oct 2002 04:28:25 -0400 (EDT) From: pandurang@manas-solutions.com (Pandurang) X-Newsgroups: comp.databases.postgresql.admin Subject: Optimizing DB Permormanance Date: 21 Oct 2002 01:00:21 -0700 Organization: http://groups.google.com/ Lines: 28 Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: groups-abuse@google.com To: pgsql-admin@postgresql.org X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/166 X-Sequence-Number: 6024 Hi there, I am having a postgres DB on Linux Server. The size of DB is near abt 1.5GB and also my site is on the same server. I am having problem that my site is very slow. I checked size on my HDD using df -h command its showing me only 15% disk space is allocated. But when I saw the memory allcated by the processes using top command it shows me that CPU % is reaching near abt 90 - 90% for postmaster. In my PHP code there is lots of SELECT stmts also while generating report insert and updates stmts are also there. BUT on my local PC it works fine for fewer records. while on my production server records are near abt 5211 it is very very slow. Sometimes I get Page not found error. 1. So can anybody tell me what will be the reason postmaster is taking lot of CPU usage?? 2. If I created CLUSTERed Index is it feasible ? Can it improve my speed of Retriving records ? Or if there is any other solution please let me know... Thank you in advance Regards Pandurang pandurang@manas-solutions.com