Re: transaction processing after error in statement - Mailing list pgsql-sql

From Stephan Szabo
Subject Re: transaction processing after error in statement
Date
Msg-id 20031109140156.T85218@megazone.bigpanda.com
Whole thread Raw
In response to transaction processing after error in statement  (holger@jakobs.com)
Responses Re: transaction processing after error in statement
List pgsql-sql
On Fri, 7 Nov 2003 holger@jakobs.com wrote:

> Whenever an error occurs within the transaction, PostgreSQL puts the
> whole transaction in an *ABORT* state, so that there is no difference at
> all between COMMITing or ROLLBACKing it. Even commands successfully
> carried out before the error ocurred are rolled back, even if I COMMIT
> the transaction, where no error message whatsoever is shown.

In PostgreSQL all errors are currently considered unrecoverable, and all
statements in a transaction must commit or rollback together as a single
unit.
In the future an implementation of nested transactions or savepoints would
presumably relax this limitation to only the successfully committed
subtransactions or statements that were not separately rolled back to a
previous savepoint.

> Additionally, I have discovered that phantom reads occur in PostgreSQL
> even if isolation mode serializable is used. Also not so nice!

You're going to have to give more information for anyone to even begin to
understand the case you're seeing.


pgsql-sql by date:

Previous
From: Chester Kustarz
Date:
Subject: Re: transaction management in plpgsql functions
Next
From: Christopher Browne
Date:
Subject: Re: help me...