Surgeries vary hugely - I've had six, from one so minor I went home the same day, to surgeries hours long followed by complications and months of recovery. But, in the most general terms, I think surgery is an excellent form of treatment, it has improved my quality of life in ways that meds could never have done.
If you've any specific questions, just ask.
You'll have plenty of pain medication following surgery so don't worry about that too much. You aren't able to eat solid foods for a few days after surgery so you start out with a liquid diet.
Not to worry anyone, but this is not always the case. With bowel surgery, opiate pain meds (especially the morphine that treats pain so effectively after many surgeries) can be completely unsuitable as they can slow the digestive system down. After my colectomy I could have no opiates - no morphine, no codeine - and after my ileostomy surgery, the doctors could not risk anything that would slow the bowel, so again, no pain meds. Well, I was given paracetamol, but I hardly consider that a pain med after major surgery - I certainly wasn't noticing any benefits for taking it!
I just don't want to mislead anyone - surgery hurts. You can not expect to go through surgery of any significance without pain.
But I got through it without meds and I don't regret having surgeries. You cope with pain.
Also I've never had to follow a soft diet and certainly never a liquid one. After my ileostomy surgery, they gave me a sandwich and ice-cream for tea, just hours afterwards. Though a couple of days later my digestive system became paralysed, and I couldn't eat at all and was fed via IV, but this was all due to paralysis, not the surgery itself. All my other surgeries I was told to eat what I liked, and often the first thing they do when you come round is get you to eat (in my experience anyway). After one of my more minor surgeries, they wanted to check I could keep food down right away, and so I came round to a plate of biscuits.
(And this was a bowel surgery too.)
There are a lot of variations regarding surgery.