How to list what queries are running in postgres?

Поиск
Список
Период
Сортировка
От P.A.M. van Dam
Тема How to list what queries are running in postgres?
Дата
Msg-id 20040623213446.GA31224@pmg.xs4all.nl
обсуждение исходный текст
Ответы Re: How to list what queries are running in postgres?
Список pgsql-admin
Hi!

I'm looking for a command or method to find out what queries are
currently being serviced by the database.

Once in a while a query goes berzerk and uses up all CPU. I'd like to
find out which query is the culprit and want to kill it off. In Sybase
you can get a list of running "processes" within the database and kill
the offending one. Is there an equivalent in postgres?

Right now we only have the method to shutdown the database en restart it
to get rid of the culprit.

Thanks in advance!

Best regards,

    Pascal

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Binary/source for 7.4.3
Следующее
От: Ivo Rossacher
Дата:
Сообщение: Re: Change the character encoding of a database