| От | Mark Rae |
|---|---|
| Тема | Aborting transaction on error |
| Дата | |
| Msg-id | 3C7FA8F5.81376487@inpharmatica.co.uk обсуждение исходный текст |
| Список | pgsql-general |
Hi,
Why does postgres abort the current transaction on error?
Is this actually required ANSI-SQL behaviour, or just a postgres
peculiarity.
More specifically, I have some DBI scripts which under Oracle
just insert rows into a table with a unique constraint. If they
come across a duplicate row they detect and report this error and
continue. (The duplicates are discarded as they are not needed)
However in postgres, it automatically aborts the transaction, so is
checking for the existance for a duplicate row beforehand the only way
to avoid this?
-Mark
--
Mark Rae Tel: +44(0)20 7074 4648
Inpharmatica Fax: +44(0)20 7074 4700
m.rae@inpharmatica.co.uk http://www.inpharmatica.co.uk/
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера