Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 23C9964FD22 for ; Fri, 12 Sep 2008 14:47:48 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 85988-01 for ; Fri, 12 Sep 2008 14:47:41 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.171]) by postgresql.org (Postfix) with ESMTP id 0B4DD64FD14 for ; Fri, 12 Sep 2008 14:47:40 -0300 (ADT) Received: by wf-out-1314.google.com with SMTP id 25so862192wfc.28 for ; Fri, 12 Sep 2008 10:47:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=sqlryTimZcAXo9Udpl55vE1wKHDxHPxB0MjPCgNP8UQ=; b=WpbDfNH7chd1LGBplc9Ib3t+JDLdoekUcFFyKNGk2ngylSOw/smJDmYSUzxAA5+pmN fxLC9tY6cpzcVsRMqPDct2CjjPVQaCrL5je0ChRtoe7xDQIicHrcNl0rfoLWRj/iKiSi v45c6ieuvilfCRXYlbx1rwd5VMd5MWR3bcyhY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=bhifJ3DCuAZRRFgduIQvQ/MZH1sYIpinx7Buphig3jsYReqor+qwpyWDWBKF7k/NyZ nZcbL361g9YkoQi4valw4BIESzJ5hptE2YcvmoxwfCwV+qw0ahwon1Xy30B/uavkZ/Dn iQvHx7UQocKuZOEaOSc36gLO3wF4/iG5fQWXA= Received: by 10.140.201.4 with SMTP id y4mr2800328rvf.86.1221241658369; Fri, 12 Sep 2008 10:47:38 -0700 (PDT) Received: by 10.141.74.11 with HTTP; Fri, 12 Sep 2008 10:47:38 -0700 (PDT) Message-ID: Date: Fri, 12 Sep 2008 11:47:38 -0600 From: "Scott Marlowe" To: Vivek_Sharan Subject: Re: Heavy postgres process Cc: "pgsql-admin@postgresql.org" In-Reply-To: <5465CC59A600E2408FFBF84350B938345031E95B93@AUSMELMBX01.ad.infosys.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5465CC59A600E2408FFBF84350B938345031E95B93@AUSMELMBX01.ad.infosys.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200809/120 X-Sequence-Number: 30213 On Fri, Sep 12, 2008 at 2:12 AM, Vivek_Sharan wrote: > Hi Admin, > > I'm new to this I have few queries as listed below > > 1) Number of connections made with a particular database. Wait, how to find out how many connections there are, or how many can a particular db handle. For this kind of thing, look at the admin functions in the pgsql-sql docs: http://www.postgresql.org/docs/8.3/interactive/functions-admin.html specifically you want something like: select datname from pg_stat_activity; select datname, count(datname) from pg_stat_activity group by datname; > 2) And how can I check which process (PID) is responsible for the > connection and That table up there ^^^ > 3) what all can make a postgres process as heavy as 70-80 MB in size you may not be measuring properly. When you say it's using 70-80 MB how do you know this? The numbers you see in top aren't necessarily what some folks think they ar.