Re: nested transactions

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: hs(at)cybertec(dot)at
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: nested transactions
Date: 2002-11-28 16:27:20
Message-ID: 200211281627.gASGRKw15547@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hans-Jrgen Schnig wrote:
> Is there going to be a way to use transactions inside transactions of
> transactions?
> In other words:
>
> BEGIN;
> BEGIN;
> BEGIN;
> BEGIN;
>
> COMMIT;
> COMMIT;
> COMMIT;
> COMMIT;
>
> Is there a way to have some sort of recursive solution with every
> transaction but the first one being a child transaction?
> Is there a way to implement that without too much extra effort?
> I just curious how that could be done.

Sure, nesting will be unlimited.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Masaru Sugawara 2002-11-28 16:31:47 Is current_user a function ?
Previous Message Rod Taylor 2002-11-28 16:20:40 Alter domain