UNDATED (AP) — The San Francisco Giants have picked up the closer they desperately needed last season.


The Giants say they have agreed to a four-year, $62 million contract with closer Mark Melancon pending a physical. The 31-year-old Melancon collected 47 saves for the Pirates and Nationals last season after leading the majors with 51 in 2015.

The Giants blew 32 saves this year, the last in their season-ending loss to the Cubs in Game 4 of the NLDS.

The Giants don't have to give up their first pick in June's amateur draft as compensation because he was traded during last season.

In other baseball news:

— The Boston Red Sox have exercised the 2018 option on manager John Farrell's contract. Farrell won the World Series in his first season with the Red Sox in 2013 and led them back to the playoffs last season. He's 339-309 in four seasons in Boston.

— The Dodgers have re-signed free agent Rich Hill to a three-year, $48 million package, just a year after the left-hander was pitching for the Long Island Ducks of the independent Atlantic League. The 36-year-old Hill went a combined 12-5 with a 2.12 ERA in 20 starts for the Dodgers and Oakland this year.

— The Blue Jays have signed utility player Steve Pearce to a two-year contract worth $12.5 million. He hit .288 with 13 home runs in 85 games for Tampa Bay and Baltimore last season.

The Phillies have reportedly agreed to a one-year, $7.5 million contract with reliever Joaquin Benoit. The 39-year-old Benoit has had an ERA under 3.00 for six of the past seven years.

— It's going to cost a bit more to attend Cubs games at Wrigley Field. The reigning World Series champs say the average season ticket price at Wrigley Field will climb 19.5 percent next season. The price hike includes a 31-percent bump for club box infield seats and a 22-percent increase for bleacher tickets.

— The Houston Astros have finalized their one-year, $16 million contract with outfielder Carlos Beltran, who returns to the team he left via free agency in 2004. The 39-year-old Beltran hit a combined .295 with 29 home runs and 93 RBIs last season for the Yankees and Rangers.