I'm not sure if you saw this, but there's another current thread about this very same topic:
http://forums.psychcentral.com/showthread.php?t=215521
I would call your pdoc and see what he/she thinks about it. They may be able to make a temporary med adjustment just to get you through the surgery until you're off the pain meds.