Re: Error on failed COMMIT
От | Shay Rojansky |
---|---|
Тема | Re: Error on failed COMMIT |
Дата | |
Msg-id | CADT4RqAHVBw8UuLBRmsB33aEanFsu3zHkg-r7h5S+huh1mq2VQ@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Error on failed COMMIT (Dave Cramer <davecramer@postgres.rocks>) |
Ответы |
Re: Error on failed COMMIT
|
Список | pgsql-hackers |
Apologies for not responding earlier, busy times.
Fourth, it is not clear how many applications would break if COMMIT
started issuing an error rather than return success a with ROLLBACK tag.
Certainly SQL scripts would be fine. They would have one additional
error in the script output, but if they had ON_ERROR_STOP enabled, they
would have existed before the commit. Applications that track statement
errors and issue rollbacks will be fine. So, we are left with
applications that issue COMMIT and expect success after a transaction
block has failed. Do we know how other database systems handle this?Well I know pgjdbc handles my patch fine without any changes to the codeAs I mentioned upthread 2 of the 3 go drivers already error if rollback is returned. 1 of them does not.I suspect npgsql would be fine. Shay ?
В списке pgsql-hackers по дате отправления: