babu_moshay wrote:
> In my opinion, if there are reasons to throw 25P02 and abort transaction unilaterally, then there are also good
reasonsnot to abort it and let programmer take the decision. A switching mechanism would have been ideal.
Create a savepoint before the possibly-failing query. If the query fails
in the way you were expecting, roll back to the savepoint and continue.
-O