From what I understand, it is needed if a perfect seal when connecting the colon sections is not attained. The surgeon pumps air or water (I forget exactly what gets pumped) in to test the seal. If bubbles are emitted, then the seal isn't perfect and the surgeon has the opportunity to try again. The maximum times he or she can do this is twice, so if the seal isn't perfectly tight the second time, a temporary ileostomy bag is needed until nature takes its course and the tissue heals up and seals. That's my basic understanding.
P.S. I have expressed extremely strong wishes not to have an ileostomy bag. Therefore, my surgeon is using staples instead of sutures because staples provide for a better seal.
4/12/17 - Dx CC, age 45
5/19/17 - Laparoscopic left hemi
Tumor type: Adenocarcinoma
Tumor size: 4 cm x ? x ? cm
Tumor grade: ? (surgical) ? (biopsy from colonoscopy)
Stage: Stage ?
Positive lymph nodes: 9 out of 54
Preoperative CEA: 1.4 Pre-op(8weeks from surgery); 2.1 2 days Post-op
Lymphovascular invasion ?
Surgical margins: TBD
MSI - MSS/MSI-L
Lynch - unlikely
Immunohistochemsistry: Normal expression of MLH1, MSH2, MSH6, and PMS2