RE: how to continue a transaction after an error?

Поиск
Список
Период
Сортировка
От Mikheev, Vadim
Тема RE: how to continue a transaction after an error?
Дата
Msg-id 8F4C99C66D04D4118F580090272A7A234D3181@sectorbase1.sectorbase.com
обсуждение исходный текст
Ответ на how to continue a transaction after an error?  ("Cristi Petrescu-Prahova" <cristipp@lasting.ro>)
Список pgsql-sql
> 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?

Hopefully, we'll have savepoints in 7.2

Vadim


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

Предыдущее
От: Clayton Cottingham
Дата:
Сообщение: Re: MySQL -> Postgres dump converter
Следующее
От: M.Feldtmann@t-online.de (Marten Feldtmann)
Дата:
Сообщение: Re: Using a postgres table to maintain unique id?