Re: transaction idle timeout in 7.4.5 and 8.0.0beta2 - Mailing list pgsql-hackers

From Andreas Pflug
Subject Re: transaction idle timeout in 7.4.5 and 8.0.0beta2
Date
Msg-id 414ED005.5070707@pse-consulting.de
Whole thread Raw
In response to Re: transaction idle timeout in 7.4.5 and 8.0.0beta2  (Bruce Momjian <pgman@candle.pha.pa.us>)
List 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 by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: transaction idle timeout in 7.4.5 and 8.0.0beta2
Next
From: Tom Lane
Date:
Subject: Re: libpq and prepared statements progress for 8.0