Transaction in chained mode

From: Haller Christoph <ch(at)rodos(dot)fzk(dot)de>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Transaction in chained mode
Date: 2001-09-25 16:27:38
Message-ID: 200109251427.QAA22809@rodos
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

In a C application I want to run several
insert commands within a chained transaction
(for faster execution).
>From time to time there will be an insert command
causing an
ERROR: Cannot insert a duplicate key into a unique index

As a result, the whole transaction is aborted and all
the previous inserts are lost.
Is there any way to preserve the data
except working with "autocommit" ?
What I have in mind particularly is something like
"Do not abort on duplicate key error".

Regards, Christoph

Browse pgsql-hackers by date

  From Date Subject
Next Message Patrice Hédé 2001-09-25 18:14:20 Re: Unicode combining characters
Previous Message Thomas Lockhart 2001-09-25 15:47:43 overlaps operator for time type(s)