Re: Rollback locks table - why?

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: Rollback locks table - why?
Дата
Msg-id 47E26D3B.4010102@postnewspapers.com.au
обсуждение исходный текст
Ответ на Rollback locks table - why?  ("Jan Peters" <petersjan@gmx.at>)
Ответы Re: Rollback locks table - why?
Список pgsql-sql
Jan Peters wrote:
> If I run the transaction block from above again I get first a unique key violation (that is ok, because that's what I
tryingto check for) but there is NO rollback to sp1, only the "Unique Key" error message and after that I get the
dreaded"current transaction is aborted" error message and the system reports an EXCLUSIVE LOCK on the table (<IDLE>in
transaction).
>   
Am I correct in saying that your issue is really that you want an error 
to trigger an automatic rollback to the last savepoint, but it does not 
do so ?

If you issue the ROLLBACK manually (after you get the constraint error 
or a "current transaction is aborted" message) does it work as you would 
expect?

--
Craig Ringer


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

Предыдущее
От: "Jan Peters"
Дата:
Сообщение: Rollback locks table - why?
Следующее
От: Joe
Дата:
Сообщение: Re: Select into