Re: How to identify connected Users?

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: How to identify connected Users?
Дата
Msg-id Pine.LNX.4.30.0012021728120.1001-100000@peter.localdomain
обсуждение исходный текст
Ответ на Re: How to identify connected Users?  (Dmitry Morozovsky <marck@rinet.ru>)
Список 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@gmx.net       http://yi.org/peter-e/


В списке pgsql-admin по дате отправления:

Предыдущее
От: Dmitry Morozovsky
Дата:
Сообщение: Re: How to identify connected Users?
Следующее
От: Bruno Dickhoff
Дата:
Сообщение: Re[2]: How to identify connected Users?