Re: resilient transactions - Mailing list pgsql-general

From Jeff
Subject Re: resilient transactions
Date
Msg-id 93EC4232-00C5-11D9-8F3E-000D9366F0C4@torgo.978.org
Whole thread Raw
In response to resilient transactions  (Paramveer.Singh@trilogy.com)
List pgsql-general
On Sep 7, 2004, at 3:35 AM, Paramveer.Singh@trilogy.com wrote:

> Hi all!
> Apologies for sending this mail but some time back there was a thread
> on
> supporting resilient transactions - i.e. transactions which do not roll
> back if one query in 100 fails.

transactions can either entirely succeed or entirely fail, there is no
"sometimes".  Any discussion or even patches that do change that will
be rejected immediately (Well, I'm simply assuming they will. I think
myself and many others would be mighty surprised if a patch like that
got applied!)

PG 8.0 introduces a feature called savepoints which allows you to trap
errors inside a transaction (and also rollback parts of the
transaction, etc.)  You may want to look into that.

http://developer.postgresql.org/docs/postgres/sql-savepoint.html



--
Jeff Trout <jeff@jefftrout.com>
http://www.jefftrout.com/
http://www.stuarthamm.net/


pgsql-general by date:

Previous
From: Oliver Elphick
Date:
Subject: Re: changing the password of postres
Next
From: Paul Thomas
Date:
Subject: Re: ERROR: canceling query due to user request