Re: Find the Person Connected to a Database

Поиск
Список
Период
Сортировка
От Milen A. Radev
Тема Re: Find the Person Connected to a Database
Дата
Msg-id fftpbr$pi5$1@ger.gmane.org
обсуждение исходный текст
Ответ на Find the Person Connected to a Database  (Naomi Walker <nwalker@mhs.mphasis.com>)
Ответы Re: Find the Person Connected to a Database  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
Naomi Walker написа:
> I'm trying to drop a database in a postgres 8.1.4 instance (x86 Solaris
> 10 OS),  but someone is connected to
> the database.  What is the best way to find out exactly who is connected?
>

select * from pg_stat_activity where datname = <the_db_about_to_be_dropped>;

More here -
http://www.postgresql.org/docs/8.1/static/monitoring-stats.html#MONITORING-STATS-VIEWS.


--
Milen A. Radev

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

Предыдущее
От: Naomi Walker
Дата:
Сообщение: Find the Person Connected to a Database
Следующее
От: Naomi Walker
Дата:
Сообщение: Find who is connected to a database