How bad is the pain after hemorroid and rectocele repair surgery?

Depends. Hemorrhoid surgery and rectocele surgery are different surgeries and each have several options available. Would be best to have the specific surgery you are considering to provide an accurate answer. For example, an exicisional hemorrhoidectomy can be a very painful procedure.