JDBC and waiting for commit on a locked table in 6.4.2 - Mailing list pgsql-interfaces

From Constantin Teodorescu
Subject JDBC and waiting for commit on a locked table in 6.4.2
Date
Msg-id 37257F9A.46967444@flex.ro
Whole thread Raw
List pgsql-interfaces
Hello,

I'm using JDBC PostgreSQL with 6.4.2 database.

I'm using the new code style (conn.setAutoCommit(false)).

When the transaction is waiting for another transaction to terminate, is
there a way to set a timeout period , let's say a maximum of 30 seconds
?
If the lock still persist after 30 seconds the statement.upDate() to
fail and to throw a SQLException?

Of course, without the classical watchdog thread object.

Thanks in advance,

(BTW : I tried the same thing on 6.5 beta 1 and my both transactions
have committed without problem. Nice work that MVCC. I'm watching daily
the development waiting for the big day of 6.5 final)

Best regards,
-- 
Constantin Teodorescu
FLEX Consulting Braila, ROMANIA


pgsql-interfaces by date:

Previous
From: moorleghen
Date:
Subject: unsubscribe
Next
From: Peter Mount
Date:
Subject: RE: [INTERFACES] JDBC and waiting for commit on a locked table in 6.4.2