JDBC and waiting for commit on a locked table in 6.4.2

Поиск
Список
Период
Сортировка
От Constantin Teodorescu
Тема JDBC and waiting for commit on a locked table in 6.4.2
Дата
Msg-id 37257F9A.46967444@flex.ro
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: moorleghen
Дата:
Сообщение: unsubscribe
Следующее
От: Peter Mount
Дата:
Сообщение: RE: [INTERFACES] JDBC and waiting for commit on a locked table in 6.4.2