Re: how to continue a transaction after an error?

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: how to continue a transaction after an error?
Дата
Msg-id Pine.BSF.4.21.0011131155090.64868-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на how to continue a transaction after an error?  ("Cristi Petrescu-Prahova" <cristipp@lasting.ro>)
Список pgsql-sql
On Mon, 13 Nov 2000, Cristi Petrescu-Prahova wrote:

> Hello,
> 
> I would like to insert a bunch of rows in a table in a transaction. Some of
> the insertions will fail due to constraints violation. When this happens,
> Postgres automatically ends the transaction and rolls back all the previous
> inserts. I would like to continue the transaction and issue the
> commit/rollback command myself.
> 
> How to do it?
> Is there any setting I am missing?
> Is it possible at all?

Currently, postgres treats all errors as critical ones that require a
complete rollback of transaction (although I believe it does not
immediately do the rollback, it should go into abort state).  There's been
on and off talk about changing this, but nothing really has been decided i
believe.




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

Предыдущее
От: "Cristi Petrescu-Prahova"
Дата:
Сообщение: how to continue a transaction after an error?
Следующее
От: "Ross J. Reedstrom"
Дата:
Сообщение: Re: how to continue a transaction after an error?