Hi and welcome to the forum! I am glad that I can help you.
You like to know whether patients normally get up and walk out of hospital the same day of the hernia operation.
Hernias are conditions when part of the peritoneum or bowels move through weak spots on the abdominal muscle wall and diaphragm, and protrude on the skin as lumps. Hernias can be treated surgically in two ways: open surgeries with or without usage of mesh, and with laparoscopy. If laparocopy is used, patients may get out of hospital faster than after open hernia repair surgery depending on the hospital protocol. If open surgery is used, patients may be left in hospital several days. They may also experience pain due to healing of the surgical cut. If there is inflammation(redness,swelling, edema near the cut), which doesn't mean that there is additional bacterial infection, individuals may also experience pain. Individuals may experience pain longer than the time needed for the cut to heal into scar tissue especially if mesh is used(the mesh scratches the nearest tissue and causes inflammation and forming of fibrous tissue.
Given the data that you described, you may experience the pain depending of the type and localisation of hernia repair surgery. The time spent in hospital after hernia repair surgery depends on the type of the procedure and the hospital protocol. You may consider taking analgetic for treatment of the pain.
Please keep in mind that I provide with medical information only. I am not able to diagnose medical conditions online. Please contact your doctor or further advice and information about treatment of pain after hernia repair surgery.