From pirke@EUnet.yu Wed Feb 13 10:15:23 2002 Received: from smtp2.eunet.yu (smtp2.EUnet.yu [194.247.192.51]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g1DAFNE33138 for ; Wed, 13 Feb 2002 05:15:23 -0500 (EST) (envelope-from pirke@EUnet.yu) Received: (from root@localhost) by smtp2.eunet.yu (8.11.6/8.11.6) id g1DAFLf13553 for pgsql-admin@postgresql.org.KAV; Wed, 13 Feb 2002 11:15:21 +0100 Received: from zmija (P-3.152.EUnet.yu [213.240.3.152]) by smtp2.eunet.yu (8.11.6/8.11.6) with SMTP id g1DAFHi13449 for ; Wed, 13 Feb 2002 11:15:17 +0100 Message-ID: <005801c1b476$befd3390$4402f0d5@zmija> From: "Nebojsa Pirocanac" To: Subject: Number of connection Date: Wed, 13 Feb 2002 10:35:39 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0054_01C1B47A.2E2DAE40" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Archive-Number: 200202/155 X-Sequence-Number: 3312 This is a multi-part message in MIME format. ------=_NextPart_000_0054_01C1B47A.2E2DAE40 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Hi all, 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. =20 Thanks, Nebojsa. ------=_NextPart_000_0054_01C1B47A.2E2DAE40 Content-Type: text/html; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable
Hi all,
How can I get number of current= =20 connections to the database and is there any way to identify connection. Fo= r=20 example in Oracle I can get these information from dynamic view=20 V$SESSION.
 
Thanks,
Nebojsa.
------=_NextPart_000_0054_01C1B47A.2E2DAE40-- From tgl@sss.pgh.pa.us Wed Feb 13 16:02:07 2002 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