Managing Rollback
Managing Rollback
От:
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.orgMontevideo, Uruguay. | hstenger@adinet.com.uy
----------------------+------------------------Visit UYLUG Web Site: http://www.linux.org.uy
-----------------------------------------------
Re: Managing Rollback
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
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