From: | Steve Crawford <scrawford(at)pinpointresearch(dot)com> |
---|---|
To: | Kelly Burkhart <kelly(at)tradebotsystems(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: Finding IP of front end |
Date: | 2005-05-20 23:43:07 |
Message-ID: | 200505201643.07561.scrawford@pinpointresearch.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Friday 20 May 2005 8:39 am, Kelly Burkhart wrote:
> Is there a way to query for the IP address (or other attributes) of
> the front-end process attached to a given backend? Perhaps
> something similar to:
>
> pg_stat_get_frontend_*( backendid )
See the developer todo list
(http://www.postgresql.org/docs/faqs.TODO.html) onto which was
recently added "Add the client IP address and port to
pg_stat_activity"
So in short, not now, but later.
You can do it indirectly by first finding the PID of interest either
from the pg_stat_activity system view or "ps" and then use "netstat
-p" to find the connection associated with that PID.
Cheers,
Steve
From | Date | Subject | |
---|---|---|---|
Next Message | Felix E. Klee | 2005-05-21 09:39:31 | Exception Handling in C-Language Functions? |
Previous Message | Matthew Hixson | 2005-05-20 23:11:33 | Re: GCC 4.0 on Mac OS X |