 RATIONALE: Giving pain medication into the space between the wall of the spinal canal and the covering of the spinal cord or giving it into a vein may help lessen pain caused by cancer surgery. It is not yet known whether epidural analgesia is more effective than patient-controlled analgesia in controlling pain in patients who have undergone surgery for gynecologic cancer. 