Aborting transaction on error

Поиск
Список
Период
Сортировка
От 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 по дате отправления:

Предыдущее
От: "Johnson, Shaunn"
Дата:
Сообщение: Re: check sql progress
Следующее
От: "Miguel A. Arévalo"
Дата:
Сообщение: Clues about tables fileformat