Re: How to stop a query - Mailing list pgsql-general

From younus
Subject Re: How to stop a query
Date
Msg-id 1342689479381-5717227.post@n5.nabble.com
Whole thread Raw
In response to Re: How to stop a query  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: How to stop a query  (Atri Sharma <atri.jiit@gmail.com>)
Re: How to stop a query  (Scott Marlowe <scott.marlowe@gmail.com>)
List pgsql-general
Hi,

First :
       ps -ef | grep postgres
and  kill -9 (PID of your query)

Sec :
select procpid, datname, usename, client_addr,  current_query from
pg_stat_activity where current_query!='<IDLE>';

and

SELECT pg_cancel_backend(procpid);



younus,

--
View this message in context: http://postgresql.1045698.n5.nabble.com/How-to-stop-a-query-tp1924086p5717227.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

pgsql-general by date:

Previous
From: Edson Richter
Date:
Subject: Synchronization Master -> Slave
Next
From: Amod Pandey
Date:
Subject: Re: Segmentation fault