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 6915FD1C914 for ; Tue, 25 Nov 2003 00:31:06 +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 86593-05 for ; Mon, 24 Nov 2003 20:30:38 -0400 (AST) Received: from mprdmxin.myway.com (nn1.excitenetwork.com [207.159.120.55]) by svr1.postgresql.org (Postfix) with ESMTP id 7BDD3D1D8BB for ; Mon, 24 Nov 2003 20:30:35 -0400 (AST) Received: by mprdmxin.myway.com (Postfix, from userid 110) id 482903972; Mon, 24 Nov 2003 19:30:34 -0500 (EST) To: rculling@sysd.com, pgsql-admin@postgresql.org Subject: Re: Associating client PIDs with backend PIDs Received: from [168.143.113.102] by mprdmailfe3.nwk.myway.com via HTTP; Mon, 24 Nov 2003 19:30:34 EST X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: ID = cb6037a14dc7ef721a90fd50821f78cc Reply-To: washirv@myway.com From: "washirv" MIME-Version: 1.0 X-Sender: washirv@myway.com X-Mailer: PHP Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Message-Id: <20031125003034.482903972@mprdmxin.myway.com> Date: Mon, 24 Nov 2003 19:30:34 -0500 (EST) X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200311/418 X-Sequence-Number: 11405 I use a separate command like lsof to map processes to tcp/unix ports on the client and server machines. --- On Mon 11/24, Rich Cullingford < rculling@sysd.com > wrote: From: Rich Cullingford [mailto: rculling@sysd.com] To: pgsql-admin@postgresql.org Date: Mon, 24 Nov 2003 11:55:07 -0500 Subject: [ADMIN] Associating client PIDs with backend PIDs 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


---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend
_______________________________________________ No banners. No pop-ups. No kidding. Introducing My Way - http://www.myway.com