From: Mark Lewis <mark.lewis@mir3.com>
To: Michael Paesold <mpaesold@gmx.at>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Oliver Jowett <oliver@opencloud.com>
Cc: pgsql-jdbc@postgreSQL.org
Subject: Re: JDBC feature request: auto savepoint per command
Date: Tue, 24 Apr 2007 06:55:29 -0700
Message-ID: <1177422929.20922.64.camel@archimedes> (raw)
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>
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
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: mark.lewis@mir3.com, mpaesold@gmx.at, tgl@sss.pgh.pa.us, oliver@opencloud.com
Subject: Re: JDBC feature request: auto savepoint per command
In-Reply-To: <1177422929.20922.64.camel@archimedes>
References: <11539.1177352713@sss.pgh.pa.us> <462D44EE.9020602@opencloud.com> <17424.1177373126@sss.pgh.pa.us> <462DDCCE.9050102@gmx.at> <1177422929.20922.64.camel@archimedes>
* 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