Skip site navigation (1) Skip section navigation (2)

How can one see what queries are running withing a postgresinstance?

From: "P(dot)A(dot)M(dot) van Dam" <pam(at)pmg(dot)xs4all(dot)nl>
To: pgsql-performance(at)postgresql(dot)org
Subject: How can one see what queries are running withing a postgresinstance?
Date: 2004-06-25 19:37:49
Message-ID: 1088192269.6490.3.camel@localhost (view raw or flat)
Thread:
Lists: pgsql-performance
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


Responses

pgsql-performance by date

Next:From: Roger GingDate: 2004-06-25 19:58:49
Subject: Re: How can one see what queries are running withing a
Previous:From: Richard HuxtonDate: 2004-06-25 09:09:51
Subject: Re: postgres 7.4 at 100%

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group