Re: (Never?) Kill Postmaster?

Поиск
Список
Период
Сортировка
От Tommy Gildseth
Тема Re: (Never?) Kill Postmaster?
Дата
Msg-id 471EE7EE.7060501@usit.uio.no
обсуждение исходный текст
Ответ на Re: (Never?) Kill Postmaster?  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Список pgsql-general
Pavel Stehule wrote:
> 2007/10/24, Stefan Schwarzer <stefan.schwarzer@grid.unep.ch>:
>
>> I read dozens of times the "TIP 2: Don't 'kill -9' the postmaster"...
>>
>> Now, what am I supposed to do if I launched a query which takes ages, and
>> which I want to interrupt?
> you have to use more gently way
>
> select pg_cancel_backend()
> http://www.postgresql.org/docs/current/interactive/functions-admin.html

The problem is that pg_cancel_backend() is somewhat unreliable at
cancelling wayward queries. You can try other options for kill though,
other than -9, which is kind of a last resort.

--
Tommy Gildseth


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

Предыдущее
От: "Pavel Stehule"
Дата:
Сообщение: Re: function result cache for pl/pgsql
Следующее
От: Christian Schröder
Дата:
Сообщение: Re: (Never?) Kill Postmaster?