Re: Autonomous Transactions - Mailing list pgsql-general

From Scott Marlowe
Subject Re: Autonomous Transactions
Date
Msg-id 1117841008.5758.90.camel@state.g2switchworks.com
Whole thread Raw
In response to Re: Autonomous Transactions  (Matt Miller <mattm@epx.com>)
List pgsql-general
On Fri, 2005-06-03 at 18:04, Matt Miller wrote:
> > > a way to enable a function to commit a unit of work that
> > > does not affect the caller's transaction.
>
> > accomplish autonomous transactions in PL/pgSQL
> > by just using dblink_connect, dblink_open, dblink_exec,
> > and dblink_close?
>
> My initial tests lead me to believe that dblink is a simple and
> effective way to get anonymous transactions.

We've used them at work for autonomous transactions outside of plpgsql.
Not sure of how well they would or wouldn't work inside plpgsql.

pgsql-general by date:

Previous
From: Greg Stark
Date:
Subject: Re: Determining when a row was inserted
Next
From: Alvaro Herrera
Date:
Subject: Re: Old problem needs solution