Re: in failed sql transaction - Mailing list pgsql-general

From Gurjeet Singh
Subject Re: in failed sql transaction
Date
Msg-id 65937bea0609260312j1aa71771nf5b6eb4b963d7b09@mail.gmail.com
Whole thread Raw
In response to Re: in failed sql transaction  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Thanks a lot for the pointer.... This is exactly what I have been looking for.

<from_docs>
The on_error_rollback-on mode works by issuing an implicit SAVEPOINT for you, just before each command that is in a transaction block, and rolls back to the savepoint on error.
</from_docs>



On 9/26/06, Tom Lane <tgl@sss.pgh.pa.us> wrote:
Ralf Wiebicke <ralf.wiebicke@exedio.com> writes:
> I finally used savepoints to get what I want.
> However I don't like this very much.

Have you experimented with psql's ON_ERROR_ROLLBACK setting?

                        regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not
       match



--
gurjeet@EnterpriseDB.com
singh.gurjeet@{ gmail | hotmail | yahoo }.com

pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Replication and PITR
Next
From: Jon Lapham
Date:
Subject: Re: Restart after poweroutage