TORONTO (AP) A tough weekend for Clay Buchholz ended with a win and an appreciative handshake from manager John Farrell.
Dustin Pedroia hit an RBI double in the 11th inning, and the Boston Red Sox beat the Toronto Blue Jays 5-3 on Sunday to avoid a three-game sweep.
Boston recorded its 13th comeback victory one day after losing 10-9 on an infield single in the ninth. The Red Sox lost 7-5 Friday.
''On the heels of two really tough days up here I thought we battled back, took the lead, gave it up and kept coming,'' Farrell said. ''I couldn't be more proud with the energy and effort.''
Blake Swihart drew a one-out walk against Gavin Floyd (2-4) and moved to third when Floyd threw a wild ball four to the next batter, Mookie Betts.
Drew Storen came on to face Pedroia, who hit a ground-rule double to right-center. Pedroia went 2 for 6 with two RBIs.
Xander Bogaerts followed with an RBI groundout. He went 1 for 6, extending his hitting streak to 22 games.
Removed from Boston's rotation Friday after losing his previous two starts, Buchholz (3-5) worked one inning for the win in his first relief appearance since Aug. 17, 2008.
''He handled it very well,'' Farrell said. ''He had a good cutter, a good fastball.''
As Buchholz dressed in the clubhouse afterward, Farrell stopped by his locker for a congratulatory handshake.
''He understands how I've felt about the whole situation,'' Buchholz said. ''I don't think anybody would be human as a baseball player if they didn't take it as a slap in the face or as `You've got to get better.' That's sort of how I took it and he understood that.''
Eduardo Rodriguez will replace Buchholz in Boston's rotation beginning with Tuesday's game at Baltimore.
Koji Uehara finished for his first save as Boston became the first AL team to reach 30 wins.
Blue Jays manager John Gibbons said Floyd is ''worn down'' after pitching three times in four days and suggested Toronto would make a move to reinforce its bullpen on Monday.
''There's a good chance something's got to happen, I would think,'' Gibbons said.
Jose Bautista hit a two-run homer for Toronto, which had won a season-high four straight. It was the 14th loss of the season for the Blue Jays' bullpen, matching Atlanta and Cincinnati for most in the majors.
Toronto trailed 3-2 before Edwin Encarnacion tied it with a leadoff homer against Heath Hembree in the eighth, his 11th.
Making his first start in Toronto since helping the Blue Jays reach the American League Championship Series last October, David Price gave up two runs and five hits in 6 1/3 innings, leaving to a loud ovation from the crowd of 47,916.
''That felt good, for sure,'' Price said. ''A standing ovation is always good. It's not very common to get one whenever you're away from home.''
Bautista opened the scoring with a drive off the left-field foul screen in the fifth, his 11th. It was Bautista's sixth career homer off Price, the most by any opposing batter.
BEEN A WHILE
Toronto was the opponent the last time Buchholz pitched in relief, working one inning against the Blue Jays at Fenway Park. Buchholz allowed one run that day, giving up an RBI double to future teammate John McDonald.
Red Sox: DH David Ortiz was scratched with a sore left foot. He was hit on the foot by a pitch in the fifth inning of Saturday's 10-9 loss and struck out on the play. X-rays were negative and Ortiz is day to day. ''He woke up this morning more sore than when he left here last night after being hit by the pitch,'' Farrell said. ''I had him in the lineup originally but then, when he tried to run, it was not feeling good. Didn't want to push it. We're hopeful he'll be back in the lineup tomorrow.''
Red Sox: RHP Steven Wright (4-4, 2.52 ERA) starts the opener of a four-game series at Baltimore. Wright has allowed 10 earned runs in his past three outings, raising his ERA by a full run. RHP Tyler Wilson (2-3, 3.80 ERA) starts for the Orioles.
Blue Jays: RHP Marco Estrada (2-2, 2.76 ERA) starts the opener of the three-game series against the New York Yankees. RHP Ivan Nova (3-2, 3.65 ERA) starts for New York on Monday.