Giants at Boston Red Sox

San Francisco Giants left fielder Mike Yastrzemski hits a home run during the fourth inning against the Boston Red Sox at Fenway Park. 

Pinch hitter Alex Dickerson lofted a sacrifice fly in the top of the 15th inning to send the San Francisco Giants past the host Boston Red Sox, 7-6, Tuesday night in the opener of a three-game series.

Dickerson's fly ball decided a game that featured a major-league-record-tying 24 pitchers used between the two clubs. Dereck Rodriguez (6-9), the 13th pitcher for the Giants (73-78), earned the win, pitching a scoreless 14th inning and then working around a walk and a single in the 15th.

Trevor Kelley (0-2) took the loss for the Red Sox (79-71).

San Francisco went up 6-5 in the 13th, and manager Bruce Bochy, now one victory away from 2,000 for his career, managed as if it were a must-win game in the bottom of the inning.

Bochy used four relievers, though the last of them, Kyle Barraclough, walked Juan Centeno with the bases loaded to prolong the affair.

The Giants tied the major league record for most pitchers used in a game, matching the number the Colorado Rockies used in a 16-inning win over the Los Angeles Dodgers on Sept. 15, 2015.

That same Rockies-Dodgers game also set a record for most overall pitchers used, 24, which Boston and San Francisco matched as well.

Giants outfielder Mike Yastrzemski was the early focus of the contest, playing his first game at the ballpark where his grandfather, Hall of Famer Carl Yastrzemski, starred from 1961-83.

The younger "Yaz" channeled his lineage in the fourth, homering to center to give the Giants a 5-1 lead. The blast was his 20th on the season, as Yastrzemski became the first San Francisco rookie to reach that total since Dave Kingman in 1972.

But Boston began pecking away, Jackie Bradley Jr. homering in the fifth to cut the deficit to 5-2.

In the Red Sox's sixth, Sam Travis pinch-hit for J.D. Martinez, who was removed due to left groin tightness, and tripled to right, himself getting injured when the throw into third hit him on his exposed head after his helmet fell off. Travis was replaced by a pinch runner.

Later in the frame, after Boston got a pair of RBI doubles, Christian Vazquez stole third and came home on a passed ball to tie the score at 5.

The Giants got on the board in the first on a Brandon Belt homer, and the Red Sox answered in the second with a Bradley RBI single. San Francisco pulled away with a three-run third.

Giants starter Logan Webb pitched five-plus innings, allowing three runs on three hits and four walks with three strikeouts. His Boston counterpart, Nathan Eovaldi, surrendered five runs on seven hits and three walks with six strikeouts over four innings.