From unixos@prodigy.net.mx Thu Jan 15 05:45:18 2004 X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 97EE7D1D889 for ; Thu, 15 Jan 2004 05:45:18 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 73684-05 for ; Thu, 15 Jan 2004 01:44:48 -0400 (AST) Received: from smtp.prodigy.net.mx (nlpproxy02.prodigy.net.mx [148.235.52.22]) by svr1.postgresql.org (Postfix) with ESMTP id 5E663D1D89A for ; Thu, 15 Jan 2004 01:44:47 -0400 (AST) Received: from PePiTo (dsl-201-128-217-138.prod-infinitum.com.mx [201.128.217.138]) by smtp.prodigy.net.mx (iPlanet Messaging Server 5.2 HotFix 1.21 (built Sep 8 2003)) with ESMTP id <0HRI004Q1NYHA4@smtp.prodigy.net.mx>; Wed, 14 Jan 2004 23:44:42 -0600 (CST) Date: Wed, 14 Jan 2004 22:44:53 -0800 From: "Jose G. Mendoza" Subject: PID for the conection To: pgsql-odbc@postgresql.org Message-id: <000001c3db33$1577be90$0a00a8c0@PePiTo> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2727.1300 X-Mailer: Microsoft Outlook, Build 10.0.2627 Content-type: multipart/alternative; boundary="----=_NextPart_000_0001_01C3DAF0.07547E90" Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=1.3 tagged_above=0.0 required=5.0 tests=HTML_80_90, RCVD_IN_NJABL X-Spam-Level: * X-Archive-Number: 200401/32 X-Sequence-Number: 3661 This is a multi-part message in MIME format. ------=_NextPart_000_0001_01C3DAF0.07547E90 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit How can I obtain the PID for each thread or user connection to the PostgreSQL from the client side? I'm using the odbc to connect the client application to the PostgreSQL. ------=_NextPart_000_0001_01C3DAF0.07547E90 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

How can I obtain= the PID for each thread or user connection to the PostgreS= QL from the client side?

I’m using = the odbc to connect the client application to the PostgreSQL.

 

 

 

------=_NextPart_000_0001_01C3DAF0.07547E90-- From dev@archonet.com Thu Jan 15 09:39:09 2004 X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 57932D1B44E for ; Thu, 15 Jan 2004 09:39:09 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 13992-08 for ; Thu, 15 Jan 2004 05:38:40 -0400 (AST) Received: from anchor-post-35.mail.demon.net (anchor-post-35.mail.demon.net [194.217.242.85]) by svr1.postgresql.org (Postfix) with ESMTP id 91CF6D1DAA6 for ; Thu, 15 Jan 2004 05:38:38 -0400 (AST) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-35.mail.demon.net with esmtp (Exim 3.35 #1) id 1Ah3xX-0004L7-0Z; Thu, 15 Jan 2004 09:38:39 +0000 Received: by mainbox.archonet.com (Postfix, from userid 529) id 2B0E616F1C; Thu, 15 Jan 2004 09:38:39 +0000 (GMT) Received: from client17.archonet.com (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id C53E016F1A; Thu, 15 Jan 2004 09:38:37 +0000 (GMT) From: Richard Huxton To: "Jose G. Mendoza" , pgsql-odbc@postgresql.org Subject: Re: PID for the conection Date: Thu, 15 Jan 2004 09:38:36 +0000 User-Agent: KMail/1.5 References: <000001c3db33$1577be90$0a00a8c0@PePiTo> In-Reply-To: <000001c3db33$1577be90$0a00a8c0@PePiTo> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200401150938.36451.dev@archonet.com> X-Bogosity: No, tests=bogofilter, spamicity=0.000000, version=0.15.3 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/33 X-Sequence-Number: 3662 On Thursday 15 January 2004 06:44, Jose G. Mendoza wrote: > How can I obtain the PID for each thread or user connection to the > PostgreSQL from the client side? > I'm using the odbc to connect the client application to the PostgreSQL. Is this what you're after? SELECT * FROM pg_stat_activity ; datid | datname | procpid | usesysid | usename | current_query -------+----------+---------+----------+----------+--------------- 17048 | richardh | 30681 | 100 | richardh | -- Richard Huxton Archonet Ltd