Re: Killing a Query

From: Brandon Hines <brandon(at)2i(dot)com>
To: Brandon Hines <brandon(at)2i(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Killing a Query
Date: 2005-05-13 20:29:08
Message-ID: 42850E14.2040505@2i.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Brandon Hines wrote:
>
> Is there a method for killing a query from the server.
>
> I have a number of users that manage to run queries that busy the server
> preventing a number of critical queries from running within an
> acceptable time limit.
>
> I would like to kill off the queries that appear to be busying the
> server without having to take postgres down altogether.
>

I guess I should have read today's messages before posting.

Thanks, Anjan, for answering my question before I could ask it.

Kill -s SIGINT <pid of offending statement>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Lee Wu 2005-05-13 20:32:00 /tmp/.s.PGSQL.5432
Previous Message Scott Marlowe 2005-05-13 19:36:28 Re: version 8.0.3