pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Giampaolo Tomassoni <g.tomassoni@libero.it>
To: pgsql-jdbc@postgresql.org
Subject: Serializable transactions and SQLException
Date: Thu, 28 Oct 2004 17:11:21 +0200
Message-ID: <200410281711.21440.g.tomassoni@libero.it> (raw)

Dears,

I would like to develop java code using the pgsql-jdbc driver on serializable 
isolated transactions. The (general) pgsql manual states that this, of 
course, may cause concurrent updating transaction failures to inform the 
client to retry the transaction as a whole.

This is said to be reported by the error message:

	ERROR:  Can't serialize access due to concurrent update


Great. I want to cope with it. But what's the SQLException.getSQLState() value 
associated to this? Or is it a SQLException.getErrorCode()? Is this value 
something 'standard', in the sense that, ie., if I need to switch to Oracle 
it works fine? Is there a better way to identify 'please, retry' suggestions 
than browsing the SQLException object?

It is possible I didn't search enough, but it is a matter of fact that I 
didn't find any information about it. Please spare a word about it.

Regards,

	Giampaolo Tomassoni



view thread (6+ messages)  latest in thread

Message-ID: <200410281711.21440.g.tomassoni@libero.it>
Permalink:  ../200410281711.21440.g.tomassoni@libero.it/
Also on:    postgresql.org/message-id/200410281711.21440.g.tomassoni@libero.it

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: g.tomassoni@libero.it
  Subject: Re: Serializable transactions and SQLException
  In-Reply-To: <200410281711.21440.g.tomassoni@libero.it>
  References: <200410281711.21440.g.tomassoni@libero.it>

* 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