Re: Killing a child process

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Bojan Belovic" <bbelovic(at)usa(dot)net>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Killing a child process
Date: 2002-04-16 00:28:58
Message-ID: 7605.1018916938@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Bojan Belovic" <bbelovic(at)usa(dot)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.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Dan MacNeil 2002-04-16 01:05:49 Re: psql command line history not working
Previous Message Bojan Belovic 2002-04-16 00:11:18 Killing a child process