Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 36B359FBCFC for ; Tue, 24 Apr 2007 10:55:41 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 70022-05 for ; Tue, 24 Apr 2007 10:55:34 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mir3-fs.mir3.com (mail.mir3.com [65.208.188.100]) by postgresql.org (Postfix) with ESMTP id 088F29FB7CC for ; Tue, 24 Apr 2007 10:55:33 -0300 (ADT) Received: MIR3-FS.mir3.com 172.16.1.11 from 172.16.2.68 172.16.2.68 via HTTP with MS-WebStorage 6.0.6249 Received: from archimedes by MIR3-FS.mir3.com; 24 Apr 2007 06:55:30 -0700 Subject: Re: JDBC feature request: auto savepoint per command From: Mark Lewis To: Michael Paesold Cc: Tom Lane , Oliver Jowett , pgsql-jdbc@postgreSQL.org In-Reply-To: <462DDCCE.9050102@gmx.at> References: <11539.1177352713@sss.pgh.pa.us> <462D44EE.9020602@opencloud.com> <17424.1177373126@sss.pgh.pa.us> <462DDCCE.9050102@gmx.at> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: MIR3, Inc. Date: Tue, 24 Apr 2007 06:55:29 -0700 Message-Id: <1177422929.20922.64.camel@archimedes> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/102 X-Sequence-Number: 16951 On Tue, 2007-04-24 at 12:32 +0200, Michael Paesold wrote: ... > If you look at the list archives, there were a number of people who did > not expect this PostgreSQL-specific behavior (transaction rollback on > statement error). I guess there will be many happy people if someone > implements implicit savepoints in the JDBC driver. I would be one of these happy people. I can say as a maintainer of a large enterprise application which needs to support multiple databases that our PostgreSQL port is by far the easiest to maintain, however there are still a couple of pain points for us. One is the transaction invalidation on any error, because we use complex transactions and rely on the database referential integrity checks to enforce data consistency. This combination means that if any RI check fails we need to be able to re-try a possibly complex operation. It's frustrating because all of the other DB's we support give you the auto-savepoint before each statement semantics for free (instead of the roughly 15% performance penalty mentioned last time the implicit savepoint idea came up on the list). I guess this makes sense because PG is the only database we support with O(1) rollback-- all of the other databases need to do work to implement rollback anyway, so they already have the infrastructure in place out of necessity. Sorry about the rant, must be all the extra tension because I have painful SQL Server and DB2 ports coming up that I'm already dreading :) -- Mark