Re: transaction processing after error in statement

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: transaction processing after error in statement
Дата
Msg-id 20031109140156.T85218@megazone.bigpanda.com
обсуждение исходный текст
Ответ на transaction processing after error in statement  (holger@jakobs.com)
Ответы Re: transaction processing after error in statement
Список 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 по дате отправления:

Предыдущее
От: Chester Kustarz
Дата:
Сообщение: Re: transaction management in plpgsql functions
Следующее
От: Christopher Browne
Дата:
Сообщение: Re: help me...