Received: from sss.pgh.pa.us ([192.204.191.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g1DG27E87393 for ; Wed, 13 Feb 2002 11:02:07 -0500 (EST) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g1DG1qf28905; Wed, 13 Feb 2002 11:01:52 -0500 (EST) To: "Nebojsa Pirocanac" cc: pgsql-admin@postgresql.org Subject: Re: Number of connection In-reply-to: <005801c1b476$befd3390$4402f0d5@zmija> References: <005801c1b476$befd3390$4402f0d5@zmija> Comments: In-reply-to "Nebojsa Pirocanac" message dated "Wed, 13 Feb 2002 10:35:39 +0100" Date: Wed, 13 Feb 2002 11:01:52 -0500 Message-ID: <28902.1013616112@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200202/157 X-Sequence-Number: 3314 "Nebojsa Pirocanac" writes: > How can I get number of current connections to the database and is there an= > y way to identify connection. For example in Oracle I can get these informa= > tion from dynamic view V$SESSION. In 7.2, yes. See http://www.ca.postgresql.org/users-lounge/docs/7.2/postgres/monitoring.html and read about pg_stat_activity. regards, tom lane