Re: Current transaction is aborted, commands ignored until end of transaction block

From: Jan Bakuwel <jan(dot)bakuwel(at)greenpeace(dot)org>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Current transaction is aborted, commands ignored until end of transaction block
Date: 2011-12-30 08:43:38
Message-ID: 4EFD79BA.50508@greenpeace.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi David,

> Start a "savepoint" before each sub-update and rollback to the savepoint if the update fails, and then try again with different data. If it succeeds you then release the savepoint anad move on.

Yeah... not ideal in my case & will result in "messy" code...

Would be nice to have an option in PostgreSQL something along the lines
of: 'abort-transaction-on-constraint-violation = false'....

Jan

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Leif Biberg Kristensen 2011-12-30 09:44:33 Re: Current transaction is aborted, commands ignored until end of transaction block
Previous Message David Johnston 2011-12-30 04:44:00 Re: Current transaction is aborted, commands ignored until end of transaction block