From: Kris Jurka <books@ejurka.com>
To: Kovács Péter <peter.kovacs@chemaxon.hu>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Statement level transactions
Date: Fri, 25 Feb 2005 14:11:29 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0502251406330.5243@leary.csoft.net> (raw)
In-Reply-To: <421F27D5.4070602@chemaxon.hu>
References: <421F27D5.4070602@chemaxon.hu>
On Fri, 25 Feb 2005, [ISO-8859-1] Kovács Péter wrote:
> With the introduction of checkpoints, it is now possible (or has been
> made very easy) to implement behaviour what Oracle calls "statement
> level transaction". E.g:
>
> Inserting an already existing value into a column with unique key
> constraint throws an exception, but the containing transaction can
> continue. I can mimique this behaviour by using checkpoints.
>
> Is there any facility in place (in the JDBC driver or in the backend)
> that already does this for me? I.e. is there a config parameter that I
> have just to turn on to have statement level transaction behaviour?
>
> I also remember having read in the new features list for 8.0 the
> introduction of nested transaction. I found no mention to nested
> transactions in the user guides though. Am I missing something?
>
8.0 has implemented savepoints, which I think you are calling checkpoints.
The driver has no provision for automatically setting and rolling back to
savepoints. There was some discussion on this list about doing that, and
it was generally agreed it would be a nice compatibility feature for other
databases, but no one has stepped up to do that yet. For now you can
manually set and release Savepoints with the standard JDBC interface.
Kris Jurka
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: books@ejurka.com, peter.kovacs@chemaxon.hu
Subject: Re: Statement level transactions
In-Reply-To: <Pine.BSO.4.56.0502251406330.5243@leary.csoft.net>
References: <421F27D5.4070602@chemaxon.hu> <Pine.BSO.4.56.0502251406330.5243@leary.csoft.net>
* 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