backends and pg_stat_activity

Started by Joseph Shraibmanover 20 years ago2 messagesgeneral
Jump to latest
#1Joseph Shraibman
jks@selectacast.net

Is there a way to get the ip address of the connections listed in
pg_stat_activity?

#2Magnus Hagander
magnus@hagander.net
In reply to: Joseph Shraibman (#1)
Re: backends and pg_stat_activity

Is there a way to get the ip address of the connections
listed in pg_stat_activity?

It is - in 8.1 :)

Until then, I think you'll need to do a netstat -nap or such a command
and match the pids. Manually.

//Magnus