Julie,
Neither magnesium nor pantoprazole would be appropriate for slowing digestion or easing pouchitis. Magnesium would speed up digestion and make you very uncomfortable with frequent bowel movements and pantoprazole is used for esophagitis or stomach ulcers.
Rose