Thread: transaction timeout

transaction timeout

From
Eugene Strulyov
Date:
Hi everybody,

Our aplpication uses PostgreSQL for data store. We have a problem with the way
long-running transactions are handled.

Our application had a bug (from what I understand it went into an infinite
loop). As a result, the transaction it was processing was neither committed
nor rolled back. Because of that, the misbehaving process was left holding
the locks and none of the other processes were able to do transactions.

My question is, how do I get PostgreSQL to automatically abort transactions
that take longer than a certain timeout?

thanks in advance,

Eugene