Re: BUG #2576: tcp_keepalive doesn't work

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #2576: tcp_keepalive doesn't work
Дата
Msg-id 2407.1155648616@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #2576: tcp_keepalive doesn't work  ("Fujii Masao" <fujii.masao@oss.ntt.co.jp>)
Ответы Re: BUG #2576: tcp_keepalive doesn't work  (Fujii Masao <fujii.masao@oss.ntt.co.jp>)
Список pgsql-bugs
"Fujii Masao" <fujii.masao@oss.ntt.co.jp> writes:
> I found an error that tcp_keepalive doesn't work.

You seem to have a misunderstanding of what tcp_keepalive is for.  It
does not kill a backend that is in the midst of a query.  A backend will
terminate when it is waiting for a client command and it sees that the
connection has been lost --- which is what a TCP timeout will cause to
happen.  But your example backends are not waiting for client commands.

If you want backends to abort live queries before they finish, use
statement_timeout.

            regards, tom lane

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

Предыдущее
От: "Fujii Masao"
Дата:
Сообщение: BUG #2576: tcp_keepalive doesn't work
Следующее
От: "Luiz Henrique"
Дата:
Сообщение: Re: referential integrity violation - key referenced from