Re: Problem with aborting entire transactions on error - Mailing list pgsql-general

From Andrew Sullivan
Subject Re: Problem with aborting entire transactions on error
Date
Msg-id 20121210230224.GY9573@crankycanuck.ca
Whole thread Raw
In response to Re: Problem with aborting entire transactions on error  (Thomas Kellerer <spam_eater@gmx.net>)
List pgsql-general
On Mon, Dec 10, 2012 at 05:02:37PM +0100, Thomas Kellerer wrote:
> Just as a side-note: Oracle also allows you to commit a "transaction" even if some of the statements failed

True.  I always thought that was a bizarre bug.  Certainly, it would
be the day you did

BEGIN;
INSERT INTO sale $bunch of stuff;
INSERT INTO xact_log $stuff-with-money-deducted;
UPDATE account SET balance = balance-?COST WHERE customer_id = ?ID;
   ---ERROR here for no permission
COMMIT;

Or anyway, that's how I look at it.

A

--
Andrew Sullivan
ajs@crankycanuck.ca


pgsql-general by date:

Previous
From: Andrew Sullivan
Date:
Subject: Re: Problem with aborting entire transactions on error
Next
From: Andrew Jaimes
Date:
Subject: Locking issue