Re: autonomous transactions

Jonah H. Harris <jonah.harris@gmail.com>

From: "Jonah H. Harris" <jonah.harris@gmail.com>
To: "Gokulakannan Somasundaram" <gokul007@gmail.com>
Cc: "Alvaro Herrera" <alvherre@commandprompt.com>, "Gregory Stark" <stark@enterprisedb.com>, "Neil Conway" <neilc@samurai.com>, "Pavel Stehule" <pavel.stehule@gmail.com>, "Roberts, Jon" <Jon.Roberts@asurion.com>, pgsql-hackers@postgresql.org
Date: 2008-01-24T03:35:22Z
Lists: pgsql-hackers
On Jan 23, 2008 10:06 PM, Gokulakannan Somasundaram <gokul007@gmail.com> wrote:
> On Jan 24, 2008 2:46 AM, Alvaro Herrera <alvherre@commandprompt.com> wrote:
> > > The Audit transaction, which is a autonomous transaction need not catch
> any
> > > error and resume the outer transaction.
> >
> > What if the logging fails, say because you forgot to create the audit
> > table?
> >
> I get it now...

Autonomous transactions are, umm, autonomous.  The calling transaction
doesn't know about or care whether the autonomous transaction succeeds
or fails for any reason.

-- 
Jonah H. Harris, Sr. Software Architect | phone: 732.331.1324
EnterpriseDB Corporation                | fax: 732.331.1301
499 Thornall Street, 2nd Floor          | jonah.harris@enterprisedb.com
Edison, NJ 08837                        | http://www.enterprisedb.com/