Mike Yastrzemski, grandson of former Red Sox great and Hall of Famer Carl Yastrzemski, hit a solo homer in his first game in Fenway Park, and Alex Dickerson had a pinch-hit sacrifice fly in the 15th inning to lift the San Francisco Giants to a 7-6 victory over Boston on Tuesday night.

Brandon Belt also had a solo homer for the Giants, who posted their first victory in Fenway after going 0-5 in interleague play. The New York Giants beat the Red Sox twice in the 1912 World Series, the year Fenway opened. They also defeated the Boston Braves in Fenway during the 1914 and '15 seasons.

More Images
San Francisco Giants relief pitcher Dereck Rodriguez (57) and left fielder Mike Yastrzemski, right, celebrate after the Giants defeated the Boston Red Sox in 15 innings during a baseball game at Fenway Park in Boston, early Wednesday, Sept. 18, 2019. Yastrzemski homered and Rodriguez got the win in the 7-6 victory. (AP PhotoCharles Krupa)

Mike Yastrzemski, grandson of former Red Sox great and Hall of Famer Carl Yastrzemski, hit a solo homer in his first game in Fenway Park, and Alex Dickerson had a pinch-hit sacrifice fly in the 15th inning to lift the San Francisco Giants to a 7-6 victory over Boston on Tuesday night.

San Francisco Giants' Mike Yastrzemski watches the flight of his solo home run in the fourth inning of a baseball game against the Boston Red Sox at Fenway Park in Boston, Tuesday, Sept. 17, 2019. Yastrzemski is the grandson of Red Sox great and Hall of Famer Carl Yastrzemski. (AP PhotoCharles Krupa)

San Francisco manager Bruce Bochy, who is retiring at the end of the season, moved one win away from becoming the 11th big-league manager to reach 2,000 victories.

San Francisco Giants left fielder Mike Yastrzemski fields a fly out by Boston Red Sox's Andrew Benintendi during the sixth inning of a baseball game at Fenway Park in Boston, Tuesday, Sept. 17, 2019. (AP PhotoCharles Krupa)

Dereck Rodriguez (6-9) worked two innings for the victory.

San Francisco Giants' Mike Yastrzemski (5) takes a swing as the lead off batter in a baseball game against the Boston Red Sox at Fenway Park in Boston, Tuesday, Sept. 17, 2019. Yastrzemski is the grandson of Red Sox great and Hall of Famer Carl Yastrzemski. Yastrzemski struck out in his plate appearance. (AP PhotoCharles Krupa)

Jackie Bradley Jr. hit a solo homer and drove in two runs for the Red Sox.

Fans cheer after a solo home run by San Francisco Giants' Mike Yastrzemski (5) in the fourth inning of a baseball game against the Boston Red Sox at Fenway Park in Boston, Tuesday, Sept. 17, 2019. Yastrzemski is the grandson of Red Sox great and Hall of Famer Carl Yastrzemski. (AP PhotoCharles Krupa)

STAR STRUCK

San Francisco Giants' Mike Yastrzemski (5) is congratulated after his solo home run in the fourth inning of a baseball game against the Boston Red Sox at Fenway Park in Boston, Tuesday, Sept. 17, 2019. Yastrzemski is the grandson of Red Sox great and Hall of Famer Carl Yastrzemski. (AP PhotoCharles Krupa)

GLOVE WORK

Boston Red Sox's Sam Travis, right, dives to third base for a triple as San Francisco Giants' Evan Longoria, left, tries to field the ball during the sixth inning of a baseball game at Fenway Park in Boston, Tuesday, Sept. 17, 2019. Travis left the game after the play. (AP PhotoCharles Krupa)

Red Sox: Manager Alex Cora said LHP David Price (cyst left wrist) could undergo surgery for it during the offseason. "That's something we're going to talk about," Cora said. Price hasn't pitched since Sept. 1. ... OF Mookie Betts missed his third straight game with inflammation in his left foot. ... J.D. Martinez was removed was left groin tightness and Sam Travis left after getting hit in the head — after his helmet popped off — by a throw on a headfirst slide into third on his triple.

San Francisco Giants' Brandon Crawford, watches the flight of his go-ahead RBI double during the 13th inning of the team's baseball game against the Boston Red Sox at Fenway Park in Boston, Tuesday, Sept. 17, 2019. At left is Red Sox catcher Sandy Leon. (AP PhotoCharles Krupa)

More AP baseball: www.apnews.com/MLB and www.twitter.com/AP_Sports

Boston Red Sox relief pitcher Matt Barnes cheers after teammates turned a double play, ending the top of the 10th inning of the team's baseball game against the San Francisco Giants at Fenway Park in Boston, Tuesday, Sept. 17, 2019. (AP PhotoCharles Krupa)

Boston Red Sox relief pitcher Matt Barnes cheers after teammates turned a double play, ending the top of the 10th inning of the team's baseball game against the San Francisco Giants at Fenway Park in Boston, Tuesday, Sept. 17, 2019. (AP PhotoCharles Krupa)

Boston Red Sox left fielder Andrew Benintendi leaps but can't make the play on an RBI double by San Francisco Giants' Brandon Crawford, which broke a 5-5 tie, during the 13th inning of a baseball game at Fenway Park in Boston, Tuesday, Sept. 17, 2019. (AP PhotoCharles Krupa)

Boston Red Sox left fielder Andrew Benintendi leaps but can't make the play on an RBI double by San Francisco Giants' Brandon Crawford, which broke a 5-5 tie, during the 13th inning of a baseball game at Fenway Park in Boston, Tuesday, Sept. 17, 2019. (AP PhotoCharles Krupa)

The game featured a major-league record-tying 24 pitchers — including a team-record 13 by the Giants — and had 50 players overall, lasting 5 hours, 54 minutes. "Take Me Out to the Ballgame" was played in the middle of the 14th inning.

San Francisco Giants relief pitcher Dereck Rodriguez (57) and left fielder Mike Yastrzemski, right, celebrate after the Giants defeated the Boston Red Sox in 15 innings during a baseball game at Fenway Park in Boston, early Wednesday, Sept. 18, 2019. Yastrzemski homered and Rodriguez got the win in the 7-6 victory. (AP PhotoCharles Krupa)

San Francisco Giants relief pitcher Dereck Rodriguez (57) and left fielder Mike Yastrzemski, right, celebrate after the Giants defeated the Boston Red Sox in 15 innings during a baseball game at Fenway Park in Boston, early Wednesday, Sept. 18, 2019. Yastrzemski homered and Rodriguez got the win in the 7-6 victory. (AP PhotoCharles Krupa)

San Francisco manager Bruce Bochy, who is retiring at the end of the season, moved one win away from becoming the 11th big-league manager to reach 2,000 victories.

Donovan Solano opened the 15th with a ground-rule double against Trevor Kelley (0-2) and advanced on a wild pitch before the Dickerson's sac fly.

Dickerson (oblique) was not in the starting lineup. Bochy said before the game that he'd likely be in Wednesday, and, he was, pinch hitting at 12:50 a.m.

San Francisco Giants' Mike Yastrzemski watches the flight of his solo home run in the fourth inning of a baseball game against the Boston Red Sox at Fenway Park in Boston, Tuesday, Sept. 17, 2019. Yastrzemski is the grandson of Red Sox great and Hall of Famer Carl Yastrzemski. (AP PhotoCharles Krupa)

San Francisco Giants' Mike Yastrzemski watches the flight of his solo home run in the fourth inning of a baseball game against the Boston Red Sox at Fenway Park in Boston, Tuesday, Sept. 17, 2019. Yastrzemski is the grandson of Red Sox great and Hall of Famer Carl Yastrzemski. (AP PhotoCharles Krupa)

Dereck Rodriguez (6-9) worked two innings for the victory.

Brandon Crawford's RBI double had given the Giants the lead in the 13th before Boston's pinch hitter Juan Centeno drew a bases-loaded walk off Kyle Barraclough, the Giants' fourth pitcher of the inning.

Yastrzemski hit a 95.8 mph fastball from Nathan Eovaldi into the center-field bleachers for his 20th of the season, getting a nice ovation as he rounded the bases when his shot made it 5-1 in the fourth. He finished 2 for 7 with a double, walk and three strikeouts.

San Francisco Giants left fielder Mike Yastrzemski fields a fly out by Boston Red Sox's Andrew Benintendi during the sixth inning of a baseball game at Fenway Park in Boston, Tuesday, Sept. 17, 2019. (AP PhotoCharles Krupa)

San Francisco Giants left fielder Mike Yastrzemski fields a fly out by Boston Red Sox's Andrew Benintendi during the sixth inning of a baseball game at Fenway Park in Boston, Tuesday, Sept. 17, 2019. (AP PhotoCharles Krupa)

Jackie Bradley Jr. hit a solo homer and drove in two runs for the Red Sox.

The Yastrzemskis walked Fenway's outfield grass before the game and Mike played left field, where his grandfather shined and captured seven Gold Gloves during his 23-year career, all with the Red Sox.

Carl, who turned 80 in August, retired in 1983 after collecting 3,419 hits, including 452 homers and over 1,800 RBIs. In 1967, he won the AL MVP when he captured the Triple Crown. He was inducted into the Hall in 1989 and the Red Sox dedicated a statue of him outside the right-field entrance in 2013.

San Francisco Giants' Mike Yastrzemski (5) takes a swing as the lead off batter in a baseball game against the Boston Red Sox at Fenway Park in Boston, Tuesday, Sept. 17, 2019. Yastrzemski is the grandson of Red Sox great and Hall of Famer Carl Yastrzemski. Yastrzemski struck out in his plate appearance. (AP PhotoCharles Krupa)

San Francisco Giants' Mike Yastrzemski (5) takes a swing as the lead off batter in a baseball game against the Boston Red Sox at Fenway Park in Boston, Tuesday, Sept. 17, 2019. Yastrzemski is the grandson of Red Sox great and Hall of Famer Carl Yastrzemski. Yastrzemski struck out in his plate appearance. (AP PhotoCharles Krupa)

STAR STRUCK

Bochy said it was an honor to meet Carl Yastrzemski before the game.

"I'm with a Hall of Famer that I grew up trying to impersonate as a hitter as a kid, and there he was in my office," he said. "That's a cool moment. I'm like anybody that grew up idolizing these guys when you have a chance to meet him."

Fans cheer after a solo home run by San Francisco Giants' Mike Yastrzemski (5) in the fourth inning of a baseball game against the Boston Red Sox at Fenway Park in Boston, Tuesday, Sept. 17, 2019. Yastrzemski is the grandson of Red Sox great and Hall of Famer Carl Yastrzemski. (AP PhotoCharles Krupa)

Fans cheer after a solo home run by San Francisco Giants' Mike Yastrzemski (5) in the fourth inning of a baseball game against the Boston Red Sox at Fenway Park in Boston, Tuesday, Sept. 17, 2019. Yastrzemski is the grandson of Red Sox great and Hall of Famer Carl Yastrzemski. (AP PhotoCharles Krupa)

GLOVE WORK

Boston's Marco Hernández saved a run with diving stop on Donovan Solano's grounder in the 10th and CF Brady made a leaping grab on Belt's drive in the 12th.

TRAINER'S ROOM

Giants: Bochy said C Buster Posey "could use a day" because of tightness in back and hip area.

San Francisco Giants' Mike Yastrzemski (5) is congratulated after his solo home run in the fourth inning of a baseball game against the Boston Red Sox at Fenway Park in Boston, Tuesday, Sept. 17, 2019. Yastrzemski is the grandson of Red Sox great and Hall of Famer Carl Yastrzemski. (AP PhotoCharles Krupa)

San Francisco Giants' Mike Yastrzemski (5) is congratulated after his solo home run in the fourth inning of a baseball game against the Boston Red Sox at Fenway Park in Boston, Tuesday, Sept. 17, 2019. Yastrzemski is the grandson of Red Sox great and Hall of Famer Carl Yastrzemski. (AP PhotoCharles Krupa)

Red Sox: Manager Alex Cora said LHP David Price (cyst left wrist) could undergo surgery for it during the offseason. "That's something we're going to talk about," Cora said. Price hasn't pitched since Sept. 1. ... OF Mookie Betts missed his third straight game with inflammation in his left foot. ... J.D. Martinez was removed was left groin tightness and Sam Travis left after getting hit in the head — after his helmet popped off — by a throw on a headfirst slide into third on his triple.

UP NEXT

RHP Jeff Samardzija (10-12, 3.72 ERA) is set to start Wednesday for the Giants. RHP Jhoulys Chacín (3-10, 5.44) is slated to go for the Red Sox.

Boston Red Sox's Sam Travis, right, dives to third base for a triple as San Francisco Giants' Evan Longoria, left, tries to field the ball during the sixth inning of a baseball game at Fenway Park in Boston, Tuesday, Sept. 17, 2019. Travis left the game after the play. (AP PhotoCharles Krupa)

Boston Red Sox's Sam Travis, right, dives to third base for a triple as San Francisco Giants' Evan Longoria, left, tries to field the ball during the sixth inning of a baseball game at Fenway Park in Boston, Tuesday, Sept. 17, 2019. Travis left the game after the play. (AP PhotoCharles Krupa)

More AP baseball: www.apnews.com/MLB and www.twitter.com/AP_Sports

San Francisco Giants' Brandon Crawford, watches the flight of his go-ahead RBI double during the 13th inning of the team's baseball game against the Boston Red Sox at Fenway Park in Boston, Tuesday, Sept. 17, 2019. At left is Red Sox catcher Sandy Leon. (AP PhotoCharles Krupa)

San Francisco Giants' Brandon Crawford, watches the flight of his go-ahead RBI double during the 13th inning of the team's baseball game against the Boston Red Sox at Fenway Park in Boston, Tuesday, Sept. 17, 2019. At left is Red Sox catcher Sandy Leon. (AP PhotoCharles Krupa)

Boston Red Sox relief pitcher Matt Barnes cheers after teammates turned a double play, ending the top of the 10th inning of the team's baseball game against the San Francisco Giants at Fenway Park in Boston, Tuesday, Sept. 17, 2019. (AP PhotoCharles Krupa)

Boston Red Sox relief pitcher Matt Barnes cheers after teammates turned a double play, ending the top of the 10th inning of the team's baseball game against the San Francisco Giants at Fenway Park in Boston, Tuesday, Sept. 17, 2019. (AP PhotoCharles Krupa)

Boston Red Sox left fielder Andrew Benintendi leaps but can't make the play on an RBI double by San Francisco Giants' Brandon Crawford, which broke a 5-5 tie, during the 13th inning of a baseball game at Fenway Park in Boston, Tuesday, Sept. 17, 2019. (AP PhotoCharles Krupa)

Boston Red Sox left fielder Andrew Benintendi leaps but can't make the play on an RBI double by San Francisco Giants' Brandon Crawford, which broke a 5-5 tie, during the 13th inning of a baseball game at Fenway Park in Boston, Tuesday, Sept. 17, 2019. (AP PhotoCharles Krupa)