Re: any way to query for current connections to db?

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: any way to query for current connections to db?
Дата
Msg-id dcc563d10711091458u24844acejf22bf728ed0be869@mail.gmail.com
обсуждение исходный текст
Ответ на any way to query for current connections to db?  ("Coarr, Matt" <mcoarr@mitre.org>)
Список pgsql-general
On Nov 9, 2007 4:36 PM, Coarr, Matt <mcoarr@mitre.org> wrote:
>
> Is there any way to query the database to identify what the current
> connections are (connections, sessions, or whatever you want to call them)?
>
> This would be something similar to oracle's v$session view.

select * from pg_stat_activity where datname='mydbname'

should get you started.

You can see all the system tables with
\dS
in psql

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: any way to query for current connections to db?
Следующее
От: "Scott Marlowe"
Дата:
Сообщение: Re: any way to query for current connections to db?