Managing Rollback

Started by Nonameover 25 years ago2 messages
#1Noname
hstenger@adinet.com.uy

Hi,

What do we mean in the last two lines of the following comment?

/* ----------------
* Here we are in the middle of a
transaction block but
* one of the commands caused an abort so
we do nothing
* but remain in the abort state.
Eventually we will get
* to the "END TRANSACTION" which will set
things straight.
* ----------------
*/
case TBLOCK_ABORT:
s->blockState = TBLOCK_INPROGRESS;
AbortTransaction();
StartTransaction();
break;

Haroldo.

--
----------------------+------------------------
Haroldo Stenger | hstenger@ieee.org
Montevideo, Uruguay. | hstenger@adinet.com.uy
----------------------+------------------------
Visit UYLUG Web Site: http://www.linux.org.uy
-----------------------------------------------

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Noname (#1)
Re: Managing Rollback

hstenger@adinet.com.uy writes:

What do we mean in the last two lines of the following comment?

/* ----------------
* Here we are in the middle of a
transaction block but
* one of the commands caused an abort so
we do nothing
* but remain in the abort state.
Eventually we will get
* to the "END TRANSACTION" which will set
things straight.
* ----------------
*/
case TBLOCK_ABORT:

It just means that nothing's going to happen until the user sends
COMMIT or ROLLBACK --- the xact.c state will remain the same until
then.

regards, tom lane