The aim of this trial is to evaluate what surgical technique, between pancreaticogastrostomy and pancreaticojejunostomy with transanastomotic externalized drains, is associated with the lowest rate of pancreatic fistula in case of high-risk pancreatic remnants. Risk stratification will be provided through the Fistula Risk Score, a clinical risk score that has been extensively validated.