pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hervé Piedvache <footcow@noos.fr>
To: pgsql-performance@postgresql.org
To: pam@pmg.xs4all.nl
Subject: Re: How can one see what queries are running withing a postgres instance?
Date: Fri, 25 Jun 2004 22:51:09 +0200
Message-ID: <200406252251.09228.footcow@noos.fr> (raw)
In-Reply-To: <1088192269.6490.3.camel@localhost>
References: <1088192269.6490.3.camel@localhost>

Let see in contrib/ the application pg_who ... you will see the process, the 
queries, and the CPU ... ;o)

Regards,

Le vendredi 25 Juin 2004 21:37, P.A.M. van Dam a écrit :
> 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
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

-- 
Bill Footcow




view thread (7+ messages)  latest in thread

Message-ID: <200406252251.09228.footcow@noos.fr>
Permalink:  ../200406252251.09228.footcow@noos.fr/
Also on:    postgresql.org/message-id/200406252251.09228.footcow@noos.fr

 · 

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: footcow@noos.fr, pam@pmg.xs4all.nl
  Subject: Re: How can one see what queries are running withing a postgres instance?
  In-Reply-To: <200406252251.09228.footcow@noos.fr>

* 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