pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Stanaway <david@stanaway.net>
To: pgsql-admin@postgresql.org
Subject: Re: Killing a child process
Date: 16 Apr 2002 00:06:55 -0500
Message-ID: <1018933616.1888.30.camel@debian> (raw)
In-Reply-To: <7605.1018916938@sss.pgh.pa.us>
References: <DCEJKACCHKFOPHFEPKPIMECKCFAA.bbelovic@usa.net>
	<7605.1018916938@sss.pgh.pa.us>

On Mon, 2002-04-15 at 19:28, Tom Lane wrote:
> "Bojan Belovic" <bbelovic@usa.net> writes:
> > Every once in a while I'll spot a query that is taking unusually long time
> > to run (a chiled process that keeps the processor at 100% for like 3
> > minutes). Is there a way to see the queries currently executing
> 
> ps, top?  Also see the stats views, if you are running 7.2.
> 
> > and/or kill
> > a single process without affecting the operation of the server
> 
> kill -INT to a backend will issue a query cancel, which is pretty safe.


There is also pgmonitor (Which I think is in contrib) which shows the
stats on the current backend processes (Works on 7.1.3 for me) and is
much nicer for working out whats using CPU, and the query that is
causing the problem.

--
David Stanaway

Attachments:

  signature.asc (application/pgp-signature, 523B) download

view thread (3+ messages)

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

 · 

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: david@stanaway.net
  Subject: Re: Killing a child process
  In-Reply-To: <1018933616.1888.30.camel@debian>
  References: <DCEJKACCHKFOPHFEPKPIMECKCFAA.bbelovic@usa.net> <7605.1018916938@sss.pgh.pa.us> <1018933616.1888.30.camel@debian>

* 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