pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Brandon Hines <brandon@2i.com>
To: Brandon Hines <brandon@2i.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Killing a Query
Date: Fri, 13 May 2005 15:29:08 -0500
Message-ID: <42850E14.2040505@2i.com> (raw)
In-Reply-To: <4284F297.8000901@2i.com>
References: <4284F297.8000901@2i.com>

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>



view thread (4+ messages)

Message-ID: <42850E14.2040505@2i.com>
Permalink:  ../42850E14.2040505@2i.com/
Also on:    postgresql.org/message-id/42850E14.2040505@2i.com

 · 

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: brandon@2i.com
  Subject: Re: Killing a Query
  In-Reply-To: <42850E14.2040505@2i.com>
  References: <4284F297.8000901@2i.com> <42850E14.2040505@2i.com>

* 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