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 7F709560EE for ; Fri, 25 Feb 2005 19:11:11 +0000 (GMT) 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 51458-09 for ; Fri, 25 Feb 2005 19:11:06 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id 67648560AF for ; Fri, 25 Feb 2005 19:11:06 +0000 (GMT) Received: (qmail 12903 invoked by uid 1112); 25 Feb 2005 19:11:29 -0000 Date: Fri, 25 Feb 2005 14:11:29 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: =?ISO-8859-1?Q?Kov=E1cs_P=E9ter?= Cc: pgsql-jdbc@postgresql.org Subject: Re: Statement level transactions In-Reply-To: <421F27D5.4070602@chemaxon.hu> Message-ID: References: <421F27D5.4070602@chemaxon.hu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.011 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200502/205 X-Sequence-Number: 12385 On Fri, 25 Feb 2005, [ISO-8859-1] Kov=E1cs P=E9ter wrote: > With the introduction of checkpoints, it is now possible (or has been=20 > made very easy) to implement behaviour what Oracle calls "statement=20 > level transaction". E.g: >=20 > Inserting an already existing value into a column with unique key=20 > constraint throws an exception, but the containing transaction can=20 > continue. I can mimique this behaviour by using checkpoints. >=20 > Is there any facility in place (in the JDBC driver or in the backend)=20 > that already does this for me? I.e. is there a config parameter that I=20 > have just to turn on to have statement level transaction behaviour? >=20 > I also remember having read in the new features list for 8.0 the=20 > introduction of nested transaction. I found no mention to nested=20 > transactions in the user guides though. Am I missing something? >=20 8.0 has implemented savepoints, which I think you are calling checkpoints. = =20 The driver has no provision for automatically setting and rolling back to= =20 savepoints. There was some discussion on this list about doing that, and= =20 it was generally agreed it would be a nice compatibility feature for other= =20 databases, but no one has stepped up to do that yet. For now you can=20 manually set and release Savepoints with the standard JDBC interface. Kris Jurka