pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: P.A.M. van Dam <pam@ramoth.xs4all.nl>
To: pgsql-admin@postgresql.org
Subject: How to list what queries are running in postgres?
Date: Wed, 23 Jun 2004 23:34:46 +0200
Message-ID: <20040623213446.GA31224@pmg.xs4all.nl> (raw)

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 



view thread (5+ messages)  latest in thread

Message-ID: <20040623213446.GA31224@pmg.xs4all.nl>
Permalink:  ../20040623213446.GA31224@pmg.xs4all.nl/
Also on:    postgresql.org/message-id/20040623213446.GA31224@pmg.xs4all.nl

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: pam@ramoth.xs4all.nl
  Subject: Re: How to list what queries are running in postgres?
  In-Reply-To: <20040623213446.GA31224@pmg.xs4all.nl>
  References: <20040623213446.GA31224@pmg.xs4all.nl>

* 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