Re: resilient transactions

Поиск
Список
Период
Сортировка
От Jeff
Тема Re: resilient transactions
Дата
Msg-id 93EC4232-00C5-11D9-8F3E-000D9366F0C4@torgo.978.org
обсуждение исходный текст
Ответ на resilient transactions  (Paramveer.Singh@trilogy.com)
Список pgsql-general
On Sep 7, 2004, at 3:35 AM, Paramveer.Singh@trilogy.com wrote:

> Hi all!
> Apologies for sending this mail but some time back there was a thread
> on
> supporting resilient transactions - i.e. transactions which do not roll
> back if one query in 100 fails.

transactions can either entirely succeed or entirely fail, there is no
"sometimes".  Any discussion or even patches that do change that will
be rejected immediately (Well, I'm simply assuming they will. I think
myself and many others would be mighty surprised if a patch like that
got applied!)

PG 8.0 introduces a feature called savepoints which allows you to trap
errors inside a transaction (and also rollback parts of the
transaction, etc.)  You may want to look into that.

http://developer.postgresql.org/docs/postgres/sql-savepoint.html



--
Jeff Trout <jeff@jefftrout.com>
http://www.jefftrout.com/
http://www.stuarthamm.net/


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