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 7F38FDADBD for ; Tue, 25 Oct 2005 00:06:50 -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 64553-08 for ; Tue, 25 Oct 2005 03:06:48 +0000 (GMT) Received: from linda-4.paradise.net.nz (bm-4a.paradise.net.nz [203.96.152.183]) by svr1.postgresql.org (Postfix) with ESMTP id 01E65DAD9D for ; Tue, 25 Oct 2005 00:06:48 -0300 (ADT) Received: from smtp-3.paradise.net.nz (tclsnelb2-src-1.paradise.net.nz [203.96.152.177]) by linda-4.paradise.net.nz (Paradise.net.nz) with ESMTP id <0IOW0064JBBADJ@linda-4.paradise.net.nz> for pgsql-performance@postgresql.org; Tue, 25 Oct 2005 16:06:46 +1300 (NZDT) Received: from [192.168.1.11] (218-101-13-43.paradise.net.nz [218.101.13.43]) by smtp-3.paradise.net.nz (Postfix) with ESMTP id C49DE7F39F1; Tue, 25 Oct 2005 16:06:45 +1300 (NZDT) Date: Tue, 25 Oct 2005 16:06:43 +1300 From: Mark Kirkwood Subject: Re: Used Memory In-reply-to: <004e01c5d90d$5ffdadb0$1e21100a@ghwk02002147> To: "Christian Paul B. Cosinas" Cc: pgsql-performance@postgresql.org Message-id: <435DA143.3050100@paradise.net.nz> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050726) References: <004e01c5d90d$5ffdadb0$1e21100a@ghwk02002147> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.146 required=5 tests=[AWL=0.146] X-Spam-Level: X-Archive-Number: 200510/347 X-Sequence-Number: 15115 Christian Paul B. Cosinas wrote: > Hi To all those who replied. Thank You. > > I monitor my database server a while ago and found out that memory is used > extensively when I am fetching records from the database. I use the command > "fetch all" in my VB Code and put it in a recordset.Also in this command the > CPU utilization is used extensively. > > Is there something wrong with my code or is it just the way postgresql is > behaving which I cannot do something about it? > > I just monitor one workstation connecting to the database server and it is > already eating up about 20 % of the CPU of database server. > > Which I think will not be applicable to our system since we have a target of > 25 PC connecting to the database server most of the time. > Could you post the query and the output of EXPLAIN ANALYZE? In addition, have you run ANALYZE on all the tables in that database ? (sorry, have to ask :-) ....). cheers Mark