pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: P.A.M. van Dam <pam@pmg.xs4all.nl>
To: pgsql-performance@postgresql.org
Subject: How can one see what queries are running withing a postgres instance?
Date: Fri, 25 Jun 2004 21:37:49 +0200
Message-ID: <1088192269.6490.3.camel@localhost> (raw)


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




view thread (7+ messages)  latest in thread

Message-ID: <1088192269.6490.3.camel@localhost>
Permalink:  ../1088192269.6490.3.camel@localhost/
Also on:    postgresql.org/message-id/1088192269.6490.3.camel@localhost

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: pam@pmg.xs4all.nl
  Subject: Re: How can one see what queries are running withing a postgres instance?
  In-Reply-To: <1088192269.6490.3.camel@localhost>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox