Re: timeout implementation issues, lock timeouts - Mailing list pgsql-hackers

From Robert Schrem
Subject Re: timeout implementation issues, lock timeouts
Date
Msg-id 200204020843.g328hmb10109@imap.wiredminds.de
Whole thread Raw
In response to Re: timeout implementation issues  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
On Monday 01 April 2002 20:18, Bruce Momjian wrote:
> Tom Lane wrote:>
> Agreed, only one timeout. 
> ...

We have (at least) two ortogonal reasons why we want 
to abort a long running transaction:

- The long running transaction might compute a result  we are not interesed anymore (because it just takes too long to
waitfor the result). We do NOT always know in advance how patient we will be to wait for the result. Therefore I think
theclient should tell  the server, when his client (user?) got impatinet and aborted the whole transaction...
 

- The long running transaction might hold exclusive locks  and therefore decreases (or even nullifies) the overall
concurrency.We want to be able to disallow this by design.
 

I think a nice timout criteria would be a maximum lock time 
for all resources aquired exclusivly within a transaction. 
This would then affect transaction timeouts as well as statement 
timeouts with the advantage, the get concurrency guaratees.

Robert


pgsql-hackers by date:

Previous
From: "Darko Prenosil"
Date:
Subject: Dblink and ISDN
Next
From: "Zeugswetter Andreas SB SD"
Date:
Subject: Re: timeout implementation issues