idle_in_transaction_timeout

Поиск
Список
Период
Сортировка
От Vik Fearing
Тема idle_in_transaction_timeout
Дата
Msg-id 538DC843.2070608@dalibo.com
обсуждение исходный текст
Ответы Re: idle_in_transaction_timeout
Список pgsql-hackers
This patch implements a timeout for broken clients that idle in transaction.

This is a TODO item.

When the timeout occurs, the backend commits suicide with a FATAL
ereport.  I thought about just aborting the transaction to free the
locks but decided that the client is clearly broken so might as well
free up the connection as well.

The same behavior can be achieved by an external script that monitors
pg_stat_activity but by having it in core we get much finer tuning (it
is session settable) and also traces of it directly in the PostgreSQL
logs so it can be graphed by things like pgbadger.

Unfortunately, no notification is sent to the client because there's no
real way to do that right now.

--
Vik


Вложения

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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Re-create dependent views on ALTER TABLE ALTER COLUMN ... TYPE?
Следующее
От: Abhijit Menon-Sen
Дата:
Сообщение: Re: idle_in_transaction_timeout