SAN FRANCISCO (AP) Xander Bogaerts took notice of all the cheering Red Sox fans doing their part in the stands and then gave them something more to celebrate - even after a 10-inning wait on a cool, breezy Bay Area night.
Bogaerts hit a go-ahead, two-run single in the top of the 10th, and Boston snapped the San Francisco Giants' five-game home winning streak with a 5-3 victory Tuesday night.
The Red Sox loaded the bases against Santiago Casilla (1-1), who struck out two in a perfect ninth before running into trouble. Bogaerts also had a third-inning RBI single in Boston's first visit to San Francisco in nearly three years.
''The fans were going pretty nuts there at the end,'' he said. ''I thought I missed a few good pitches. He pitched me tough. But I think he hung one a little bit, left it up a little.''
Dustin Pedroia extended his majors-best hitting streak to 14 games with an eighth-inning single, while David Ortiz's streak ended at 13 after his tying groundout as a pinch-hitter in the seventh. Pedroia also has hit in 11 straight road games.
Junichi Tazawa (1-1) pitched the ninth for the win and Craig Kimbrel closed it out for his 14th save.
Ortiz's high chopper over the pitcher's mound was controlled by shortstop Brandon Crawford, but Chris Young slid under the tag about 15 feet shy of second base as Crawford threw to first trying to double up Big Papi. Jackie Bradley Jr. scored from third.
''Heads up baserunning by Chris Young bought us an extra inning,'' manager John Farrell said, pleased with how his team handled the little things.
Right-hander Albert Suarez pitched into the seventh in his second major league start, lifted for George Kontos after a one-out walk of Bradley, who stole second.
Young had an RBI double and has hit safely in each of his last 13 starts for Boston.
Two left-handed aces will face off Wednesday night in the conclusion of this quick two-game set: David Price against Madison Bumgarner.
''I don't think I've faced an opposing pitcher who's had home runs,'' Price said of Bumgarner, who has two.
Boston starter Rick Porcello retired the first six batters in order Tuesday before Jarrett Parker's leadoff home run in the third.
BIG PAPI HONORED
The Giants honored retiring Red Sox star Ortiz in a pregame ceremony and presented him with a commemorative cable car bell. Hall of Famer Willie McCovey and two former Ortiz teammates, Jake Peavy and Javier Lopez, gave him the gift.
''I appreciate the fact they take the time to do things like that,'' Ortiz said, adding of McCovey: ''That was great. He's legendary.''
The 40-year-old Ortiz was relegated to pinch-hit duties for these two games in the NL ballpark as Farrell looks to rest the hitter's legs and feet as much as he has been on the basepaths.
''I don't want to risk losing him,'' Farrell said. ''We've got to be mindful of the wear and tear he's going through as a 40-year-old.''
If asked, Bumgarner would like to compete in the All-Star Home Run Derby next month at San Diego's Petco Park.
''I'll do it for sure,'' he said. ''If they ask me to do it, I'll do it.''
Manager Bruce Bochy expressed concern because ''that's a lot of swings'' and the potential for injury to his top pitcher.
MOMENT OF SILENCE FOR ALI
A moment of silence was held for late boxing icon, Muhammad Ali, who died Friday night. ''The Greatest'' has visited the club's spring training ballpark at Scottsdale Stadium.
Red Sox: Brock Holt, sidelined since May 20 with a concussion, was set to spend all day Wednesday being examined by renowned concussion specialist Dr. Micky Collins at the University of Pittsburgh. ... Blake Swihart, put on the disabled list Sunday with a severely sprained left ankle, will remain in a hard cast for the first week and the team expects to have a better idea about his injury at the two-week mark.
Giants: C Buster Posey sat out a second straight game with an irritated nerve in his right thumb, and he might rest again Wednesday night to have five full days off with Thursday's off day. Posey has caught Bumgarner every game since 2014, 45 straight. ... Bochy had his final wisdom tooth extracted, on the upper right. ''Like my Marlon Brando impression?'' he quipped with gauze in his lip.
Red Sox: Price (7-2, 4.88 ERA) is 3-1 with a 2.62 ERA over his last five starts. ''It's still not myself,'' he said.
Giants: The Giants have won on each of the last eight starts by Bumgarner (7-2, 1.91), who has won his last six decisions since an April 20 loss to Arizona.