Sex after episiotomy

Has anyone tried having sex after an episiotomy? Was it painful? How long did you wait?