Re: How to stop a query

Поиск
Список
Период
Сортировка
От younus
Тема Re: How to stop a query
Дата
Msg-id 1342689479381-5717227.post@n5.nabble.com
обсуждение исходный текст
Ответ на Re: How to stop a query  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: How to stop a query  (Atri Sharma <atri.jiit@gmail.com>)
Re: How to stop a query  (Scott Marlowe <scott.marlowe@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Edson Richter
Дата:
Сообщение: Synchronization Master -> Slave
Следующее
От: Amod Pandey
Дата:
Сообщение: Re: Segmentation fault