Aborting transaction on error - Mailing list pgsql-general

From Mark Rae
Subject Aborting transaction on error
Date
Msg-id 3C7FA8F5.81376487@inpharmatica.co.uk
Whole thread Raw
List 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 by date:

Previous
From: "Johnson, Shaunn"
Date:
Subject: Re: check sql progress
Next
From: "Miguel A. Arévalo"
Date:
Subject: Clues about tables fileformat