X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 1E5D2D1DB66 for ; Mon, 24 Nov 2003 16:56:20 +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 65729-06 for ; Mon, 24 Nov 2003 12:55:48 -0400 (AST) Received: from martin.sysdetect.com (martin.sysdetect.com [65.209.102.1]) by svr1.postgresql.org (Postfix) with ESMTP id 97156D1D68C for ; Mon, 24 Nov 2003 12:55:31 -0400 (AST) Received: (from mail@localhost) by martin.sysdetect.com (8.11.4/8.11.3) id hAOGtD410939 for ; Mon, 24 Nov 2003 16:55:13 GMT Received: from winwood.sysdetect.com(172.16.1.1) via SMTP by mail.sysdetect.com, id smtpde26435; Mon Nov 24 16:55:07 2003 Received: from sysd.com (thriller.sysdetect.com [172.16.1.33]) by winwood.sysdetect.com (8.11.6/8.11.6) with ESMTP id hAOGt7b13590 for ; Mon, 24 Nov 2003 11:55:07 -0500 Message-ID: <3FC237EB.3050302@sysd.com> Date: Mon, 24 Nov 2003 11:55:07 -0500 From: Rich Cullingford User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030703 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Associating client PIDs with backend PIDs Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/403 X-Sequence-Number: 11390 All, This is a pretty obvious question, but I can't find an answer in the standard docs/archive: if I have an installation in which there are a number of long-running client processes interacting (one-on-one) with backend processes, how do I find the associations? I can see the client PIDs in an appropriate 'ps' (grepping on the client program name, for example), and the backend PIDs in the standard queries or pgmonitor. But I can't tell which goes with which (except by trying to infer the association by looking at the query that's running -- assuming I can catch it). Thanks for any help, Rich Cullingford rculling@sysd.com