From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | Dmitry Morozovsky <marck(at)rinet(dot)ru> |
Cc: | Jens Hartwig <jhartwig(at)debis(dot)com>, PostgreSQL Admin <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: How to identify connected Users? |
Date: | 2000-12-02 16:31:12 |
Message-ID: | Pine.LNX.4.30.0012021728120.1001-100000@peter.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Dmitry Morozovsky writes:
> PE> ps ax | grep postgres
> PE>
> PE> is the best way to go.
>
> Nope. Using this you can identify UNIX users, instead of PG users.
Wrong.
$ ps ax | grep postgres
1236 pts/1 S 0:00 psql template1 -U postgres
1237 pts/1 S 0:00 /usr/bin/postgres localhost postgres template1 idle
> And, if the scripts are running from the web server, there will be
> only nobosy/httpd in most cases...
The question was how to find out what users are connected to the database
-- there's your answer. Or do you suggest figuring out the identity of
the person that connected to your web page?
--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/
From | Date | Subject | |
---|---|---|---|
Next Message | Bruno Dickhoff | 2000-12-03 15:10:40 | Re[2]: How to identify connected Users? |
Previous Message | Dmitry Morozovsky | 2000-12-02 14:15:51 | Re: How to identify connected Users? |