Re: Transactions within a function body - Mailing list pgsql-general

From Gurjeet Singh
Subject Re: Transactions within a function body
Date
Msg-id 65937bea0810021040y5b29fc94ufdda5b2d4b225f3e@mail.gmail.com
Whole thread Raw
In response to Re: Transactions within a function body  ("Bob Henkel" <bob.henkel@gmail.com>)
List pgsql-general
No, in Oracle too SAVEPOINT and AUTONOMOUS transaction are different beasts.

On Thu, Oct 2, 2008 at 9:27 PM, Bob Henkel <bob.henkel@gmail.com> wrote:
Coming from an Oracle background my understanding is they're one in the same.
 


 
On Thu, Oct 2, 2008 at 10:37 AM, Alvaro Herrera <alvherre@commandprompt.com> wrote:
Bob Henkel escribió:
> Have you looked at creating a function in perl and creating a new
> connection? Or using a dblink query which can create a new connection?
> These two methods work. I have used them to insert to a log table regardless
> of the parent transaction being commited or rolled back.

That's a different thing, "autonomous transactions".

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support




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

EnterpriseDB      http://www.enterprisedb.com

Mail sent from my BlackLaptop device

pgsql-general by date:

Previous
From: Oleg Bartunov
Date:
Subject: Re: tsearch 2 query
Next
From: "Jeff Amiel"
Date:
Subject: function returning setof..select versus select * from