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