From: j.random.programmer <javadesigner@yahoo.com>
To: pg@fastcrypt.com
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Weird behavior in transaction handling (Possible bug ?) -- commit fails silently
Date: Fri, 14 Jan 2005 08:29:56 -0800 (PST)
Message-ID: <20050114162956.91766.qmail@web14227.mail.yahoo.com> (raw)
In-Reply-To: <41E7F207.6050409@fastcrypt.com>
> With postgres once an error occurs in a transaction
block you need
> to rollback. None of the transaction will commit.
>
> This behaviour makes sense as it assumes that the
transaction block
> is atomic and it should all succeed or all fail.
This is VERY counter-intuitive. I can have really
important data
for say 5 tables which has committed properly but at
the 6th
insert into a non-important auxillary table, I may
encounter a
transient exception. I still want to be able to commit
my data.
There are many similar scenarios such as the above,
right ?
As a programmer, shouldn't it be upto me to decide
when to
commit and when to rollback ? Is this even within
spec ? And
at the very least, commit() should then not fail
SILENTLY ! (and
this should be documented).
:-]
Best regards,
--j
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail
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: javadesigner@yahoo.com, pg@fastcrypt.com
Subject: Re: Weird behavior in transaction handling (Possible bug ?) -- commit fails silently
In-Reply-To: <20050114162956.91766.qmail@web14227.mail.yahoo.com>
References: <41E7F207.6050409@fastcrypt.com> <20050114162956.91766.qmail@web14227.mail.yahoo.com>
* 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