Re: Anyway to know which users are connected to postgres?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Anyway to know which users are connected to postgres?
Дата
Msg-id 12694.1011031351@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Anyway to know which users are connected to postgres?  ("Peter E. Chen" <pchen3@jhmi.edu>)
Список pgsql-general
"Peter E. Chen" <pchen3@jhmi.edu> writes:
> I'd like to know if there is anyway one can figure out who is currently
> connected to the database.

In 7.2 there is a system view pg_stat_activity.

Since about 7.0, a "ps" listing will show the owning user for each
postgres backend process (on most platforms, anyway).

            regards, tom lane

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

Предыдущее
От: Wendy Chin
Дата:
Сообщение: Calling a Stored Procedure using PHP
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: gborg