Re: Weird behavior in transaction handling (Possible bug ?)

Поиск
Список
Период
Сортировка
Искать
От
Vadim Nasardinov
Тема
Re: Weird behavior in transaction handling (Possible bug ?)
Дата
Msg-id
200501141142.54170@vadim.nasardinov
Ответ на
Список
Дерево обсуждения
Weird behavior in transaction handling (Possible bug ?) -- commit fails silently "j.random.programmer" <javadesigner@yahoo.com>
Re: Weird behavior in transaction handling (Possible bug ?) Dave Cramer <pg@fastcrypt.com>
Re: Weird behavior in transaction handling (Possible bug ?) Vadim Nasardinov <vadimn@redhat.com>
Re: Weird behavior in transaction handling (Possible bug ?) -- commit fails silently "j.random.programmer" <javadesigner@yahoo.com>
Re: Weird behavior in transaction handling (Possible bug ?) Csaba Nagy <nagy@ecircle-ag.com>
Re: Weird behavior in transaction handling (Possible bug ?) -- commit fails silently "j.random.programmer" <javadesigner@yahoo.com>
Re: Weird behavior in transaction handling (Possible bug ?) Dave Cramer <pg@fastcrypt.com>
Re: Weird behavior in transaction handling (Possible bug ?) -- commit fails silently "j.random.programmer" <javadesigner@yahoo.com>
Re: Weird behavior in transaction handling (Possible bug ?) -- commit fails silently Jan de Visser <jdevisser@digitalfairway.com>
Re: Weird behavior in transaction handling (Possible bug ?) Dave Cramer <pg@fastcrypt.com>
Re: Weird behavior in transaction handling (Possible bug ?) -- commit fails silently "j.random.programmer" <javadesigner@yahoo.com>
Re: Weird behavior in transaction handling (Possible bug ?) Dave Cramer <pg@fastcrypt.com>
Re: Weird behavior in transaction handling (Possible bug ?) Csaba Nagy <nagy@ecircle-ag.com>
Re: Weird behavior in transaction handling (Possible bug ?) Dave Cramer <pg@fastcrypt.com>
Re: Weird behavior in transaction handling (Possible bug ?) Oliver Jowett <oliver@opencloud.com>
Re: Weird behavior in transaction handling (Possible bug ?) Vadim Nasardinov <vadimn@redhat.com>
Re: Weird behavior in transaction handling (Possible bug ?) Tom Lane <tgl@sss.pgh.pa.us>
Re: Weird behavior in transaction handling (Possible bug ?) Oliver Jowett <oliver@opencloud.com>
Re: Weird behavior in transaction handling (Possible bug ?) Dave Cramer <pg@fastcrypt.com>
Re: Weird behavior in transaction handling (Possible bug ?) Vadim Nasardinov <vadimn@redhat.com>
Re: Weird behavior in transaction handling (Possible bug ?) Oliver Jowett <oliver@opencloud.com>
Re: Weird behavior in transaction handling (Possible bug ?) -- commit fails silently "j.random.programmer" <javadesigner@yahoo.com>
On Friday 14 January 2005 11:23, Dave Cramer wrote:
> 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.

For completeness sake, it should be mentioned that Oracle's way of
dealing with this is no less sensible.  Oracle's transactions are
atomic in the sense that all of the statements that did not raise an
error are committed atomically.  If any of the statements fail,
it's up to the application programmer to decide whether or not it
makes sense to continue with the remaining statements.

This question pops up frequently.  Here's a random example:

http://archives.postgresql.org/pgsql-advocacy/2004-03/threads.php#00067
В списке pgsql-jdbc по дате отправления
От: j.random.programmer
Дата:
От: Csaba Nagy
Дата:
FAQ