pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Constantin Teodorescu <teo@flex.ro>
To: PostgreSQL Interfaces <pgsql-interfaces@postgresql.org>
Subject: JDBC and waiting for commit on a locked table in 6.4.2
Date: Tue, 27 Apr 1999 09:12:58 +0000
Message-ID: <37257F9A.46967444@flex.ro> (raw)

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



view thread (4+ messages)  latest in thread

Message-ID: <37257F9A.46967444@flex.ro>
Permalink:  ../37257F9A.46967444@flex.ro/
Also on:    postgresql.org/message-id/37257F9A.46967444@flex.ro

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: teo@flex.ro
  Subject: Re: JDBC and waiting for commit on a locked table in 6.4.2
  In-Reply-To: <37257F9A.46967444@flex.ro>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox