Re: How to Cancel a query ? - Mailing list pgsql-general

From Andrew Sullivan
Subject Re: How to Cancel a query ?
Date
Msg-id 20040302164804.GB10799@phlogiston.dyndns.org
Whole thread Raw
In response to How to Cancel a query ?  ("Kuldeep Tanna" <kuldeep@cse.ogi.edu>)
List pgsql-general
On Mon, Mar 01, 2004 at 03:48:00PM -0800, Kuldeep Tanna wrote:
> How do I cancel the execution of that query. I tried restarting /
> stopping postmaster, but pg_ctl gives an error message "Unable to
> shutdown server"

Find the pid of the backend doing the work (you can use psto find it)
and then issue kill -2 <pid>

A

--
Andrew Sullivan  | ajs@crankycanuck.ca
This work was visionary and imaginative, and goes to show that visionary
and imaginative work need not end up well.
        --Dennis Ritchie

pgsql-general by date:

Previous
From: Ron St-Pierre
Date:
Subject: Re: Setting up Postgresql on Linux
Next
From: Bruno Wolff III
Date:
Subject: Re: Database metadata queries (WAS Re: Moving from MySQL to PGSQL....some questions)