X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 3E30B3A3E61 for ; Fri, 29 Oct 2004 09:37:47 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 21080-05 for ; Fri, 29 Oct 2004 08:37:40 +0000 (GMT) Received: from smtp2.libero.it (smtp2.libero.it [193.70.192.52]) by svr1.postgresql.org (Postfix) with ESMTP id 4B42F3A3E54 for ; Fri, 29 Oct 2004 09:37:40 +0100 (BST) Received: from localhost (172.16.1.80) by smtp2.libero.it (7.0.027-DD01) id 40C7347601D5A2BE for pgsql-jdbc@postgresql.org; Fri, 29 Oct 2004 10:38:07 +0200 Received: from ppp-184-19.27-151.libero.it (151.27.19.184) by smtp2.libero.it (7.0.027-DD01) id 40CB2A080579B04A for pgsql-jdbc@postgresql.org; Fri, 29 Oct 2004 10:38:07 +0200 From: Giampaolo Tomassoni To: pgsql-jdbc@postgresql.org Subject: Re: Serializable transactions and SQLException Date: Fri, 29 Oct 2004 10:37:36 +0200 User-Agent: KMail/1.5.1 References: <200410281711.21440.g.tomassoni@libero.it> In-Reply-To: X-Guess-Who: That's me! MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200410291037.36833.g.tomassoni@libero.it> X-Virus-Scanned: by amavisd-new at libero.it serv2 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/298 X-Sequence-Number: 11403 On Friday 29 October 2004 04:19, you wrote: > > ... omissis... > > If you are connected to a >= 7.4 server getSQLState will have a value for > this error. The best way to identify it and make sure you code works on > other database platforms is to actually write a small test case to > generate this error and grab the error code. PG will always return > the same error code, but other databases may not use the same one and the > best way to find out is actually testing. Thank you everybody for the prompt help. I see your replies suggest to switch to a 7.4 or earlier version. I have 7.3.2 in my production environment. What is supposed to solve a >=7.4 server in relation to serializable isolation? Thanks again, Giampaolo Tomassoni