you've gotten good advice. i second konayaussie.. i was prescribed percoset for after my c birth (but didn't take it).
i had to have minor surgery in December. i told the anasthesia doc that i was breastfeeding and i got assurance from multiple places, i even got the hospital to bring the lactation nurse to reassure me about the anesthesia being non harmful to the babe. i was told that it processes very quickly in your body, and you can nurse very soon after if not immediately. i also would suggest asking whether toradol is an option for pain managment-- that's all i have used for both the c birth and the surgery in dec. it helped and wasn't narcotic (which i hate). even with the percoset though, you will be fine.. if you're still uncomfortable, you should do like i did and make every person you encounter in hospital reassure you ;) et
eta: that's weird, i looked up the toradol to check the spelling and saw that it wasn't recommended for breastfeeding.. (i only checked one source though) which is strange b/c i have gotten that particular drug several times and was told that it was pretty safe for b/f. double check if you do end up asking for that.
eta a second time: kellymom suggests toredol is an l2, while percoset is an l3, so i feel better at least.