Re: PG 8.3 and server load

Поиск
Список
Период
Сортировка
От Guillaume Cottenceau
Тема Re: PG 8.3 and server load
Дата
Msg-id 87my5vsy2l.fsf@meuh.mnc.lan
обсуждение исходный текст
Ответ на Re: PG 8.3 and server load  (Ivan Voras <ivoras@freebsd.org>)
Список pgsql-performance
Ivan Voras <ivoras 'at' freebsd.org> writes:

> pgtop (http://pgfoundry.org/projects/pgtop/) might help you see what
> is your database doing.

A simpler (but most probably less powerful) method would be to
activate "stats_command_string = on" in the server configuration,
then issue that query to view the currently running queries:

SELECT procpid, datname, current_query, query_start FROM pg_stat_activity WHERE current_query <> '<IDLE>'

That may also be interesting.

--
Guillaume Cottenceau

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

Предыдущее
От: Ivan Voras
Дата:
Сообщение: Re: PG 8.3 and server load
Следующее
От: Andy Colson
Дата:
Сообщение: Re: PG 8.3 and server load