Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Novice > Stopping a tran...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 3173 of 3323
Post > Topic >>

Stopping a transaction as soon as an error occurs

by ridvan@[EMAIL PROTECTED] ("Ridvan Lakas ng Bayan S. Baluyos") Jul 17, 2008 at 12:49 PM

------=_Part_25974_6866944.1216270157340
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi list,

I am dumping a series of data. Basically I'm migrating the tables from one
database to another. However, I wanted the transaction to stop immediately
as soon as the error below occurs:

psql:gravy.all.schema.sql:142136: ERROR:  current transaction is aborted,
commands ignored until end of transaction block

What happens is that it continues to do the transaction even if there's
already a transaction and I'm having hard time catching it. I need to know
which line number the error first occured so that  I can check my dump
file
and do the necessary remedy.


Thanks,

Ridvan


-- 
Laurence J. Peter  - "Originality is the fine art of remembering what you
hear but forgetting where you heard it."

------=_Part_25974_6866944.1216270157340
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div dir="ltr">Hi list,<br><br>I am dumping a series of data. Basically
I&#39;m migrating the tables from one database to another. However, I
wanted the transaction to stop immediately as soon as the error below
occurs:<br>
<br><div style="margin-left: 40px;">psql:gravy.all.schema.sql:142136:
ERROR:&nbsp; current transaction is aborted, commands ignored until end of
transaction block<br><br></div>What happens is that it continues to do the
transaction even if there&#39;s already a transaction and I&#39;m having
hard time catching it. I need to know which line number the error first
occured so that&nbsp; I can check my dump file and do the necessary
remedy. <br>
<br><br>Thanks,<br><br>Ridvan<br><div><br clear="all"><br>-- <br>Laurence
J. Peter &nbsp;- &quot;Originality is the fine art of remembering what you
hear but forgetting where you heard it.&quot;
</div></div>

------=_Part_25974_6866944.1216270157340--
 




 3 Posts in Topic:
Stopping a transaction as soon as an error occurs
ridvan@[EMAIL PROTECTED]   2008-07-17 12:49:17 
Re: Stopping a transaction as soon as an error occurs
desoi@[EMAIL PROTECTED]   2008-07-17 07:36:23 
Re: Stopping a transaction as soon as an error occurs
ridvan@[EMAIL PROTECTED]   2008-07-21 09:30:34 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 5:54:35 CST 2008.