JDBC and waiting for commit on a locked table in 6.4.2

From: Constantin Teodorescu <teo(at)flex(dot)ro>
To: PostgreSQL Interfaces <pgsql-interfaces(at)postgresql(dot)org>
Subject: JDBC and waiting for commit on a locked table in 6.4.2
Date: 1999-04-27 09:12:58
Message-ID: 37257F9A.46967444@flex.ro
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-interfaces by date

  From Date Subject
Next Message Peter Mount 1999-04-27 09:52:06 RE: [INTERFACES] JDBC and waiting for commit on a locked table in 6.4.2
Previous Message moorleghen 1999-04-27 01:26:28 unsubscribe