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

From: Hervé Piedvache <footcow(at)noos(dot)fr>
To: pgsql-performance(at)postgresql(dot)org
Cc: pam(at)pmg(dot)xs4all(dot)nl
Subject: Re: How can one see what queries are running withing a postgres instance?
Date: 2004-06-26 07:27:12
Message-ID: 200406260927.12812.footcow@noos.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Sorry It's not in the contrib folder of PostgreSQL ... but you will find it on
gborg.postgresql.org !

Regards,

Le vendredi 25 Juin 2004 22:51, Hervé Piedvache a écrit :
> 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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Chris Cheston 2004-06-26 08:08:57 Re: postgres 7.4 at 100%
Previous Message Hervé Piedvache 2004-06-25 20:51:09 Re: How can one see what queries are running withing a postgres instance?