Re: Transaction with in function - Mailing list pgsql-general

From Merlin Moncure
Subject Re: Transaction with in function
Date
Msg-id AANLkTinpRWKHTk5ACxGjj1Wdluho6LtHWregld0nXSDf@mail.gmail.com
Whole thread Raw
In response to Re: Transaction with in function  (Ravi Katkar <Ravi.Katkar@infor.com>)
List pgsql-general
On Wed, May 26, 2010 at 2:52 AM, Ravi Katkar <Ravi.Katkar@infor.com> wrote:
> How can we achieve nested transactions? ( may be using save points )with in functions.
> Is there any work around?

It unfortunately can't be done from within the database.  There is
only one workaround -- using dblink or similar technology to connect
back to the database inside your function to bend/break transaction
rules.

In the 9.0 world, this (no implicit transaction state pl code,
possibly termed 'stored procedures') is one of the top two or three
requested features.

merlin

pgsql-general by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: why doesn't insert into foo delete from bar returning baz work?
Next
From: Andreas Kretschmer
Date:
Subject: Re: why doesn't insert into foo delete from bar returning baz work?