How can one see what queries are running withing a postgres instance?

От: P.A.M. van Dam
Тема: How can one see what queries are running withing a postgres instance?
Дата: ,
Msg-id: 1088192269.6490.3.camel@localhost
(см: обсуждение, исходный текст)
Ответы: Re: How can one see what queries are running withing a postgres instance?  (Hervé Piedvache)
Re: How can one see what queries are running withing a  (Roger Ging)
Список: pgsql-performance

Скрыть дерево обсуждения

How can one see what queries are running withing a postgres instance?  ("P.A.M. van Dam", )
 Re: How can one see what queries are running withing a postgres instance?  (Hervé Piedvache, )
  Re: How can one see what queries are running withing a postgres instance?  (Hervé Piedvache, )
   Re: How can one see what queries are running withing a  (Christopher Kings-Lynne, )
    Re: How can one see what queries are running withing a  (Tom Lane, )
    Re: How can one see what queries are running withing a  ("P.A.M. van Dam ", )
 Re: How can one see what queries are running withing a  (Roger Ging, )

Hi!

I'd like to know if there is a way to see what queries are running
within a certain postgres instance and how much resources (cpu/memory)
etc. they are using. Right now it's impossible to see what is happening
within postgres when it's binaries are using 100% CPU.

In Sybase there is a command which let's you view what 'processes' are
running within the server and how much cpu (according to Sybase) they
are using. It also provides you with a stored procedure to kill off some
bad behaving queries. How can one do this within postgres?

Thanks in advance!

Best regards,

    Pascal



В списке pgsql-performance по дате сообщения:

От: Hervé Piedvache
Дата:
Сообщение: Re: How can one see what queries are running withing a postgres instance?
От: Hervé Piedvache
Дата:
Сообщение: Re: How can one see what queries are running withing a postgres instance?