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

Поиск
Список
Период
Сортировка
От volunteer@spatiallink.org
Тема Re: any way to query for current connections to db?
Дата
Msg-id 20071109160027.b22b5ede89d48a4249261b5ab56693f4.5998f257a5.wbe@email.secureserver.net
обсуждение исходный текст
Ответ на any way to query for current connections to db?  ("Coarr, Matt" <mcoarr@mitre.org>)
Список pgsql-general
select
 *
from
 pg_stat_activity
where
 datname = (
 select
  *
 from
  current_database()
 );

-------- Original Message --------
Subject: [GENERAL] any way to query for current connections to db?
From: "Coarr, Matt" <mcoarr@mitre.org>
Date: Fri, November 09, 2007 5:36 pm
To: <pgsql-general@postgresql.org>

Hi,

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.

Thanks,
Matt


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

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