Pancreas surgery is generally considered a major surgery due to its complexity. Generally, the type of surgery required is determined by the type and severity of the pancreas condition. The most common type of surgery is a Whipple procedure, which is used to treat cancerous tumors and cysts. It involves removing part of the pancreas, parts of the stomach and small intestine, and sometimes the gallbladder. Other types of surgery may include distal pancreatectomy, which is used to treat pancreatitis, or pancreaticoduodenectomy, which is used to treat pancreatic cancer. In each case, surgery is done to remove the affected part of the pancreas and/or repair any damage. Recovery times vary depending on the procedure, but major surgery for the pancreas is always considered a serious operation.