Re: identifying local connections

From: Scott Ribe <scott_ribe(at)elevated-dev(dot)com>
To: Steve Clark <sclark(at)netwolves(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, postgresql Forums <pgsql-general(at)postgresql(dot)org>
Subject: Re: identifying local connections
Date: 2010-11-15 16:40:52
Message-ID: 6CB2F156-2A95-4736-B517-70FA207B9756@elevated-dev.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Nov 15, 2010, at 9:05 AM, Steve Clark wrote:

> netstat -an will do it on linux.
>
> sockstat will do it on FreeBSD.
>
> What's OS X ? ;-)

Apple must use very different option switches for their netstat, because I see no way to get PIDs (which seems like a pretty big oversight to me), and -an would not make sense:

-a Include directory entries whose names begin with a dot (.).
-n Display user and group IDs numerically, rather than converting to
a user or group name in a long (-l) output. This option turns on
the -l option.

;-)

--
Scott Ribe
scott_ribe(at)elevated-dev(dot)com
http://www.elevated-dev.com/
(303) 722-0567 voice

In response to

Browse pgsql-general by date

  From Date Subject
Next Message bricklen 2010-11-15 17:01:07 Re: Trouble Accessing Schema-Qualified Table
Previous Message Scott Ribe 2010-11-15 16:37:31 Re: identifying local connections