Narcotics and anesthesia do give rise to postoperative constipation. I advise improved diet, plenty of water intake and over the counter medications. In the hospital, patients get medications like Colace, Miralax or an enema if they are significantly symptomatic for constipation.