Recovering from failed transaction

Поиск
Список
Период
Сортировка
От Brian Crowell
Тема Recovering from failed transaction
Дата
Msg-id CAAQkdDrBoW3UUdGVRzdvqOe0-R+jKfjWLe66wOSmKogd8Po0ww@mail.gmail.com
обсуждение исходный текст
Ответы Re: Recovering from failed transaction
Список pgsql-general
I feel dumb asking this question, but I can't seem to find the answer online.

I'm running serializable transactions, and so naturally, they will
sometimes fail with the error "could not serialize access due to
concurrent update."

But then I try to issue a ROLLBACK so I can continue using the
connection, and I get error 25P02: "current transaction is aborted,
commands ignored until end of transaction block."

...doesn't "ROLLBACK" end a transaction block? What does Postgres want
here? How can I retry without closing the connection altogether?

--Brian


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