Re: Kill -9 for a session process caused all the sessions to be killed

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Kill -9 for a session process caused all the sessions to be killed
Дата
Msg-id 27310.1285173789@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Kill -9 for a session process caused all the sessions to be killed  (<Atul.Goel@globaldatapoint.com>)
Ответы Re: Kill -9 for a session process caused all the sessions to be killed  (<Atul.Goel@globaldatapoint.com>)
Список pgsql-general
<Atul.Goel@globaldatapoint.com> writes:
> I by mistake ran a query to update a huge table with around 500000 rows and has to kill the session.

> I found the process-id from the query select * from pg_stat_activity. I killed the process using Kill -9 process_id.

> This caused all other sessions in the system to be killed and database was unreachable for a minute or so.


> MY QUESTION: Is this normal?

Yes.  That is not the recommended way to cancel a query.

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От:
Дата:
Сообщение: Kill -9 for a session process caused all the sessions to be killed
Следующее
От: Johannes Öberg
Дата:
Сообщение: Re: Force ARE in regexp string