From vilson.farias@digitro.com.br Tue Mar 26 14:05:49 2002 Received: from ias.digitro.com.br (unknown [200.247.100.134]) by postgresql.org (Postfix) with ESMTP id ECB79475872 for ; Tue, 26 Mar 2002 09:05:49 -0500 (EST) Received: from serverdgt.daf.digitro.com.br ([192.2.2.10]) by ias.digitro.com.br (8.11.1/8.11.1) with ESMTP id g2QE4jf12252 for ; Tue, 26 Mar 2002 11:04:45 -0300 Received: from dgtac (dgtac.dti.digitro.com.br [192.168.160.152]) by serverdgt.daf.digitro.com.br (8.11.1/8.8.7) with SMTP id g2QE6NB02794 for ; Tue, 26 Mar 2002 11:06:23 -0300 Message-ID: <005c01c1d4cf$86bfa570$98a0a8c0@dgtac> From: "Vilson farias" To: Subject: info request : listing active connections Date: Tue, 26 Mar 2002 11:07:06 -0300 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0059_01C1D4B6.5E0B4DA0" 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: 200203/314 X-Sequence-Number: 3848 This is a multi-part message in MIME format. ------=_NextPart_000_0059_01C1D4B6.5E0B4DA0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Greetings, I've been looking for a way to list active connections from clients to th= e postmaster. What kind of features does postgresql has to make it possible= ? I would like to list users, ips and maybe calling application and plataf= orm. Now, the only way I know is through ps -ef | grep post. Is there some = system table where I can find information about active connections? Best regards. ---------------------------------------------------------------------------= ----- Jos=E9 Vilson de Mello de Farias Software Engineer D=EDgitro Tecnologia Ltda - www.digitro.com.br APC - Customer Oriented Applications E-mail: vilson.farias@digitro.com.br Tel.: +55 48 281 7158=20 ICQ 11866179 ------=_NextPart_000_0059_01C1D4B6.5E0B4DA0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Greetings,
 
  I've been looking for a way to li= st active=20 connections from clients to the postmaster. What kind of features does= =20 postgresql has to make it possible?  I would like to list users, = ips=20 and maybe calling application and plataform. Now, the only way I know is th= rough=20 ps -ef | grep post. Is there some system table where I can find=20 information about active connections?
 
Best regards.
 
------------------------------------------------------------------= --------------
Jos=E9=20 Vilson de Mello de Farias
Software Engineer
 
D=EDgitro Tecnologia Ltda - www.digitro.com.br
APC - Customer= =20 Oriented Applications
E-mail: vilson.farias@digitro.com.br
Tel.:=20 +55 48 281 7158
ICQ 11866179
------=_NextPart_000_0059_01C1D4B6.5E0B4DA0-- From pgman@candle.pha.pa.us Tue Mar 26 14:36:49 2002 Received: from candle.pha.pa.us (216-55-132-35.dsl.san-diego.abac.net [216.55.132.35]) by postgresql.org (Postfix) with ESMTP id 8D856474E4E for ; Tue, 26 Mar 2002 09:36:49 -0500 (EST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id g2QEabn16465; Tue, 26 Mar 2002 09:36:37 -0500 (EST) From: Bruce Momjian Message-Id: <200203261436.g2QEabn16465@candle.pha.pa.us> Subject: Re: info request : listing active connections In-Reply-To: <005c01c1d4cf$86bfa570$98a0a8c0@dgtac> To: Vilson farias Date: Tue, 26 Mar 2002 09:36:37 -0500 (EST) Cc: pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL97 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200203/315 X-Sequence-Number: 3849 Vilson farias wrote: > Greetings, > > I've been looking for a way to list active connections from > clients to the postmaster. What kind of features does postgresql > has to make it possible? I would like to list users, ips and > maybe calling application and plataform. Now, the only way I > know is through ps -ef | grep post. Is there some system table > where I can find information about active connections? 7.2 has pg_stat_activity table that shows connections and queries. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026 From vilson.farias@digitro.com.br Tue Mar 26 14:43:01 2002 Received: from ias.digitro.com.br (unknown [200.247.100.134]) by postgresql.org (Postfix) with ESMTP id D8E3E474E4E for ; Tue, 26 Mar 2002 09:43:01 -0500 (EST) Received: from serverdgt.daf.digitro.com.br ([192.2.2.10]) by ias.digitro.com.br (8.11.1/8.11.1) with ESMTP id g2QEg0f13471 for ; Tue, 26 Mar 2002 11:42:00 -0300 Received: from dgtac (dgtac.dti.digitro.com.br [192.168.160.152]) by serverdgt.daf.digitro.com.br (8.11.1/8.8.7) with SMTP id g2QEhdB11276; Tue, 26 Mar 2002 11:43:39 -0300 Message-ID: <006a01c1d4d4$bb072f10$98a0a8c0@dgtac> From: "Vilson farias" To: Cc: "JAIRO Gubler" References: <200203261436.g2QEabn16465@candle.pha.pa.us> Subject: Re: info request : listing active connections Date: Tue, 26 Mar 2002 11:44:26 -0300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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: 200203/316 X-Sequence-Number: 3850 Hi Bruce, Thanks for quick answer. It's a great feature for newer releases for PostgreSQL, but here I'm still using 7.1.2 (and few 7.0.3), so is there some way in older versions? Best regards. ----- Original Message ----- From: "Bruce Momjian" To: "Vilson farias" Cc: Sent: Tuesday, March 26, 2002 11:36 AM Subject: Re: [ADMIN] info request : listing active connections > Vilson farias wrote: > > Greetings, > > > > I've been looking for a way to list active connections from > > clients to the postmaster. What kind of features does postgresql > > has to make it possible? I would like to list users, ips and > > maybe calling application and plataform. Now, the only way I > > know is through ps -ef | grep post. Is there some system table > > where I can find information about active connections? > > 7.2 has pg_stat_activity table that shows connections and queries. > > -- > Bruce Momjian | http://candle.pha.pa.us > pgman@candle.pha.pa.us | (610) 853-3000 > + If your life is a hard drive, | 830 Blythe Avenue > + Christ can be your backup. | Drexel Hill, Pennsylvania 19026 > From pgman@candle.pha.pa.us Tue Mar 26 18:18:41 2002 Received: from candle.pha.pa.us (216-55-132-35.dsl.san-diego.abac.net [216.55.132.35]) by postgresql.org (Postfix) with ESMTP id 73EEF475C47 for ; Tue, 26 Mar 2002 13:18:41 -0500 (EST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id g2QIINi27276; Tue, 26 Mar 2002 13:18:23 -0500 (EST) From: Bruce Momjian Message-Id: <200203261818.g2QIINi27276@candle.pha.pa.us> Subject: Re: info request : listing active connections In-Reply-To: <006a01c1d4d4$bb072f10$98a0a8c0@dgtac> To: Vilson farias Date: Tue, 26 Mar 2002 13:18:23 -0500 (EST) Cc: pgsql-admin@postgresql.org, JAIRO Gubler X-Mailer: ELM [version 2.4ME+ PL97 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200203/318 X-Sequence-Number: 3852 Vilson farias wrote: > Hi Bruce, > > Thanks for quick answer. It's a great feature for newer releases for > PostgreSQL, but here I'm still using 7.1.2 (and few 7.0.3), so is there some > way in older versions? > No, just ps. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026