Re: how to cancel a query in progress
От
Tom Lane
Тема
Re: how to cancel a query in progress
Дата
Msg-id
27058.1245251972@sss.pgh.pa.us
Ответ на
how to cancel a query in progress (Whit Armstrong)
Список
Дерево обсуждения
how to cancel a query in progress Whit Armstrong <armstrong.whit@gmail.com>
Re: how to cancel a query in progress Tom Lane <tgl@sss.pgh.pa.us>
Re: how to cancel a query in progress Whit Armstrong <armstrong.whit@gmail.com>
Re: how to cancel a query in progress Tom Lane <tgl@sss.pgh.pa.us>
Re: how to cancel a query in progress Whit Armstrong <armstrong.whit@gmail.com>
Re: how to cancel a query in progress Tom Lane <tgl@sss.pgh.pa.us>
Whit Armstrong writes: > I had a few queries that were fired from pgAdmin, but failed to stop > running after I killed the GUI. > I tried to stop the queries by killing the pid (of the process running > the query, not the pid of the server) from the linux command line, and > much to my surprise, the whole database went down and then recovered > (using the data in pg_xlog I assume). I suppose you used "kill -9"? Don't do that. > So, now that I've learned this lesson, what is the proper way to kill > a query, and can it be done from psql or are there special postgres > tools to do this. kill -INT is a safe query-cancel method. regards, tom lane
В списке pgsql-general по дате отправления