Possible to prevent transaction abort? - Mailing list pgsql-general

From Adam B
Subject Possible to prevent transaction abort?
Date
Msg-id 49FB364C.1050301@videx.com
Whole thread Raw
Responses Re: Possible to prevent transaction abort?  (Johan Nel <johan555.nel555@xsinet555.co.za>)
Re: Possible to prevent transaction abort?  (Thomas Kellerer <spam_eater@gmx.net>)
Re: Possible to prevent transaction abort?  (Craig Ringer <craig@postnewspapers.com.au>)
List pgsql-general
Hello all,

Is it possible to prevent Postgre from aborting the transaction upon a
constraint violation?

Using JDBC if I catch the constraint violation and try another statement
I get:

  /ERROR: current transaction is aborted, commands ignored until end of
transaction block/

I realize that I could set a save-point before every INSERT but that
nearly doubles the processing time.  Since our application INSERTS many
thousands of rows at a time we need maximum efficiency.  On Mysql (where
this limitation doesn't exist) it's already only barely fast enough.  If
we have to use savepoints with Postgre it might prevent us from making
the switch.

Is there some mode flag I could set, either database or server wide?
I've found Postgre to be wonderfully configurable so I'm crossing my
fingers...



Much Thanks.
- Adam



Videx Inc. 1105 N. E. Circle Blvd. Corvallis OR 97330 (541) 758-0521
CONFIDENTIAL COMMUNICATION: The email message and any attachments are intended only for the addressee.  They may be
privileged,confidential, and protected from disclosure. If you are not the intended recipient, any dissemination,
distribution,or copying is expressly prohibited.  If you received this email message in error, please notify the sender
immediatelyby replying to this e-mail message or by telephone 


pgsql-general by date:

Previous
From: John R Pierce
Date:
Subject: Re: Online Backups PostGre
Next
From: David Wall
Date:
Subject: Handling large number of OR/IN conditions