Transaction blocks - Mailing list pgsql-general

From Jonathan Barnhart
Subject Transaction blocks
Date
Msg-id 20040810204526.20560.qmail@web53705.mail.yahoo.com
Whole thread Raw
Responses Re: Transaction blocks  ("Scott Marlowe" <smarlowe@qwest.net>)
List pgsql-general
Is there a way to continue a transaction after an error?  I've got a
situation where I have a transaction open and I'm inserting data, but
some of it could fail on validation.  I want to keep the good stuff,
leave out the bad, and get the speed of not having to commit every
record seperately.  For a specific example, I'm importing a list of
stocks, but some symbols have changed because the list is old, so there
are invalid symbols in the list that are not found in the master list.
I want to catch the invalid ones and fix them, but still commit the
good ones.  Right now I'm committing each record, but it's slow.

=====
"We'll do the undoable, work the unworkable, scrute the inscrutable and have a long, hard look at the ineffable to see
whetherit might not be effed after all" 

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: hostory tables with a generic function?
Next
From: Stephan Szabo
Date:
Subject: Re: Postgres update with self join