Transaction Abort during insert using libpq

From: Kevin English <kenglish(at)4csoftware(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Transaction Abort during insert using libpq
Date: 2000-11-14 21:42:32
Message-ID: 79831t41fs9b5lv17fubchsjns8at6epv3@4ax.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all,
Can anyone tell me if there is a way to avoid Postgres automatically
aborting a transaction under certain error conditions. In particular,
if I try to insert a record into a table and the insert fails due to a
duplicate key on a unique index my whole transaction is aborted.
I would prefer to get an error rtn that indicates reason for failure
but lets the rest of the transaction continue normally unless I choose
to roll it back. I am using PostgreSQL 7.0 with libpq.

Thanks
Kevin English

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2000-11-14 22:25:51 Re: a request for some experienced input.....
Previous Message Beth K. Gatewood 2000-11-14 21:20:33 Re: a request for some experienced input.....