Re: transaction idle timeout in 7.4.5 and 8.0.0beta2

Поиск
Список
Период
Сортировка
От Andreas Pflug
Тема Re: transaction idle timeout in 7.4.5 and 8.0.0beta2
Дата
Msg-id 414ED005.5070707@pse-consulting.de
обсуждение исходный текст
Ответ на Re: transaction idle timeout in 7.4.5 and 8.0.0beta2  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Bruce Momjian wrote:
> Interesting.  So it times out a transaction to release its locks.  Does
> it time from the start of the transaction?  I assume so.  We do have
> statment_timeout so maybe transaction_timeout would be the proper name.
> Timing out on just the idle state seems strange to me.

Timing out on the start of the transaction isn't a good idea; what about 
long running transactions? You'd have to set the timeout very high (lets 
say to have nightly imports) which would make the "idle in transaction 
and not responding any more" errors detected very late in online situations.

So the timeout should start after each statement's completion.

Regards,
Andreas


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: transaction idle timeout in 7.4.5 and 8.0.0beta2
Следующее
От: Tom Lane
Дата:
Сообщение: Re: libpq and prepared statements progress for 8.0