dbTalk Databases Forums  

How to Cancel a query ?

comp.databases.postgresql.general comp.databases.postgresql.general


Discuss How to Cancel a query ? in the comp.databases.postgresql.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Kuldeep Tanna
 
Posts: n/a

Default How to Cancel a query ? - 03-01-2004 , 05:48 PM






Hi,
I issued a query from ASP using ADO. The web page after some time showed something similar to a 404 NOT found page. Postgres is still executing the query.
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"

Thanks,
Kuldeep.


Reply With Quote
  #2  
Old   
Andrew Sullivan
 
Posts: n/a

Default Re: How to Cancel a query ? - 03-02-2004 , 10:48 AM






On Mon, Mar 01, 2004 at 03:48:00PM -0800, Kuldeep Tanna wrote:
Quote:
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 (AT) crankycanuck (DOT) ca
This work was visionary and imaginative, and goes to show that visionary
and imaginative work need not end up well.
--Dennis Ritchie

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.