From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl> |
Cc: | Patches <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: Basic subtransaction facility |
Date: | 2004-04-19 01:59:42 |
Message-ID: | 200404190159.i3J1xgD24882@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-patches |
Added to queue until Tom's review and/or application.
Your patch has been added to the PostgreSQL unapplied patches list at:
http://momjian.postgresql.org/cgi-bin/pgpatches
I will try to apply it within the next 48 hours.
---------------------------------------------------------------------------
Alvaro Herrera wrote:
> Hackers,
>
> Here is a very preliminar patch that allows the user to say "BEGIN"
> inside a transaction and have the system react accordingly. This is
> only a modification to xact.c (and slightly to other places to allow it
> to work); the important functions are empty.
>
> It compiles fine for me with both SUBTRANSACTIONS defined and not
> defined; when not defined, the behavior is the same as the current code.
> Please note that I have made some errors more fatal than they are now,
> as bugs in this code will have much worse effects than a flaw in the
> current transaction system.
>
> One quick note: there are two ENDABORT states for a subtransaction,
> SUBENDABORT_OK and SUBENDABORT_ERROR. They signal whether the parent
> transaction should be aborted after the child transaction finishes or
> not: an aborted subtransaction where the user issues COMMIT should
> abort the parent transaction; if the user issues ROLLBACK, the parent
> can be allowed to continue.
>
>
> Please have a look and comment. This file does not move a lot so I
> don't think it will suffer from a lot of code drift.
>
> --
> Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
> "I think my standards have lowered enough that now I think 'good design'
> is when the page doesn't irritate the living f*ck out of me." (JWZ)
[ Attachment, skipping... ]
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
--
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
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2004-04-19 15:13:35 | Re: Basic subtransaction facility |
Previous Message | Fabien COELHO | 2004-04-18 17:55:15 | Re: guc variables flags explicitly initialisation |