Re: Quit currently running query

Поиск
Список
Период
Сортировка
От Ron
Тема Re: Quit currently running query
Дата
Msg-id c85d3f88-96db-c4cb-f2a9-33ee4cc71266@gmail.com
обсуждение исходный текст
Ответ на Quit currently running query  (Albert Cornelius <albert1.cornelius@gmail.com>)
Ответы Re: Quit currently running query  ("Peter J. Holzer" <hjp-pgsql@hjp.at>)
Список pgsql-general
On 2/28/23 04:53, Albert Cornelius wrote:
How can I quit a currently running query? I've issued a query and my server does not respond anymore. Is there another solution than using kill -9?

What specifically do you mean by "my server does not respond anymore"?  Because if "the server" really doesn't respond anymore, you can't even issue "kill -9".

I'd first try "select pg_cancel_backend(<pid>);".  If that doesn't work, try "select pg_terminate_backend(<pid>);", which is the Postgresql-aproved version of "kill -9".

--
Born in Arizona, moved to Babylonia.

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

Предыдущее
От: Ian Lawrence Barwick
Дата:
Сообщение: Re: Quit currently running query
Следующее
От: celati Laurent
Дата:
Сообщение: Move all elements toward another schema?