Re: Autocommit off - commits/rollbacks

Поиск
Список
Период
Сортировка
От Andrew Sullivan
Тема Re: Autocommit off - commits/rollbacks
Дата
Msg-id 20110314162901.GA60150@shinkuro.com
обсуждение исходный текст
Ответ на Autocommit off - commits/rollbacks  ("Vogt, Michael" <Michael.Vogt@united-security-providers.ch>)
Список pgsql-general
On Mon, Mar 14, 2011 at 03:55:37PM +0100, Vogt, Michael wrote:
> Why does postgres rollback the whole transaction after an error? I
> compared the behavior with oracle/hsql - those dbms commit whats
> possible.

A transaction is supposed to commit or rollback.  If you want to hold
on to something that you've done and then try something (and pursue
alternatives depending on whether you get an error), use a savepoint.
See
http://www.postgresql.org/docs/9.0/interactive/tutorial-transactions.html

A




--
Andrew Sullivan
ajs@crankycanuck.ca

В списке pgsql-general по дате отправления:

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Primary key
Следующее
От: Viktor Nagy
Дата:
Сообщение: Re: Values larger than 1/3 of a buffer page cannot be indexed.