pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: washirv <washirv@myway.com>
To: rculling@sysd.com
To: pgsql-admin@postgresql.org
Subject: Re: Associating client PIDs with backend PIDs
Date: Mon, 24 Nov 2003 19:30:34 -0500 (EST)
Message-ID: <20031125003034.482903972@mprdmxin.myway.com> (raw)


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,<br>This is a pretty obvious question, but I can't find an answer in the <br>standard docs/archive: if I have an installation in which there are a <br>number of long-running client processes interacting (one-on-one) with <br>backend processes, how do I find the associations? I can see the client <br>PIDs in an appropriate 'ps' (grepping on the client program name, for <br>example), and the backend PIDs in the standard queries or pgmonitor. But <br>I can't tell which goes with which (except by trying to infer the <br>association by looking at the query that's running -- assuming I can <br>catch it).<br><br>                   Thanks for any help,<br>                   Rich Cullingford<br>                   rculling@sysd.com<br><br><br>---------------------------(end of broadcast)---------------------------<br>TIP 8: explain analyze is your friend<br>

_______________________________________________
No banners. No pop-ups. No kidding.
Introducing My Way - http://www.myway.com



view thread (3+ messages)

Message-ID: <20031125003034.482903972@mprdmxin.myway.com>
Permalink:  ../20031125003034.482903972@mprdmxin.myway.com/
Also on:    postgresql.org/message-id/20031125003034.482903972@mprdmxin.myway.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: washirv@myway.com, rculling@sysd.com
  Subject: Re: Associating client PIDs with backend PIDs
  In-Reply-To: <20031125003034.482903972@mprdmxin.myway.com>
  References: <20031125003034.482903972@mprdmxin.myway.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox