Re: Finding active connections to postmaster

Поиск
Список
Период
Сортировка
От reina@nsi.edu (Tony Reina)
Тема Re: Finding active connections to postmaster
Дата
Msg-id f40d3195.0110020912.75518328@posting.google.com
обсуждение исходный текст
Ответ на Finding active connections to postmaster  (drt@un.bewaff.net (Doobee R. Tzeck))
Список pgsql-admin
> Is it possible to list active connectons? How?
>

This will give a unique list of the names of those logged on:

echo Current users logged onto database:
ps ax | grep postgres: | awk '{print $6 | "sort" } ' | uniq


This will list the user and what process is being done:

ps ax | grep postgres: | awk '{print $6 ":"  $9 " on " $7}'


HTH,
-Tony

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

Предыдущее
От: Tomasz Misterka
Дата:
Сообщение: Help with SELECT and string
Следующее
От: "Michael B. Babakov"
Дата:
Сообщение: How to make 'tail -f' in PostgreSQL?