Re: how to view running sessions ?

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: how to view running sessions ?
Дата
Msg-id 20050218015128.GA28345@winnie.fuhr.org
обсуждение исходный текст
Ответ на how to view running sessions ?  (Patrick Hsieh(謝洪恩)<pahudnet@gmail.com>)
Список pgsql-admin
On Fri, Feb 18, 2005 at 08:57:00AM +0800, Patrick Hsieh(?????????) wrote:

> Is there any why to see/view the running query sessions in the database?
> Something like "SHOW PROCESSLIST" in MySQL.

SELECT * FROM pg_stat_activity;

If the current_query column says "<command string not enabled>"
then edit postgresql.conf, set "stats_command_string = true" (and
make sure it's uncommented), and restart or reload the backend.

For more information, see the "Monitoring Database Activity" and
"Server Run-time Environment" chapters in the documentation.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

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

Предыдущее
От: Patrick Hsieh(謝洪恩)
Дата:
Сообщение: how to view running sessions ?
Следующее
От: "Spiegelberg, Greg"
Дата:
Сообщение: OID assistance