Buster Posey poked a pitch from Jose Arredondo (4-2) down the right-field line that bounced into the stands for a two-out double. Then Pablo Sandoval was walked intentionally to set the stage for a wild finish.
The crowd let out a sigh when Bruce drifted under Pagan's fly ball to right until those whipping gusts along the bay carried the ball over his head. The 42,039 from the sold-out stands at AT&T Park erupted, Pagan tossed his helmet and the Giants streamed out of the dugout in celebration.
Santiago Casilla (2-3) blew the save in the ninth but worked out of a bases-loaded jam with no outs to give San Francisco a shot.
BREWERS 2, DIAMONDBACKS 1
MILWAUKEE (AP) — Pinch runner Carlos Gomez raced home following two throwing errors after he stole second base in the bottom of the ninth inning to lift the Milwaukee Brewers over Arizona.
Gomez entered after Aramis Ramirez drew a leadoff walk from Patrick Corbin (2-4). With one out, Gomez swiped second and jumped to his feet as the throw from catcher Miguel Montero ended up in centre field. Outfielder Gerardo Parra picked up the ball but threw wildly to third, allowing Gomez to score the winning run.
John Axford (2-5) of Simcoe, Ont., pitched a scoreless ninth inning.
NATIONALS 8, BRAVES 4
ATLANTA (AP) — Ryan Zimmerman homered and drove in four runs and Gio Gonzalez scuffled for his sixth straight road victory to help Washington beat Atlanta in 105-degree heat.
Gonzalez (11-3) capped his second All-Star selection despite allowing five hits, four runs and four walks in five-plus innings.
Washington, which has won four of five, took a 4-0 lead in the first off Tim Hudson (6-4). The NL-leading Nationals are 10-2-1 in their last 13 series matchups against the Braves.
Atlanta has lost three of four.
CARDINALS 5, PIRATES 4
ST. LOUIS (AP) — Allen Craig homered for the second time in three days and All-Star Yadier Molina also connected for the Cardinals. Pittsburgh was trying to sweep a series of at least three games in St. Louis for the first time since 1997.
Jason Motte got the last four outs for his 17th save in 21 chances to end the Pirates' four-game winning streak.
Jake Westbrook (7-6) beat the Pirates for the first time in six career decisions.
Erik Bedard (4-9) threw 100 pitches in 4 2-3 innings and gave up five runs.
CUBS 3, ASTROS 0
CHICAGO (AP) — Travis Wood pitched shutout ball into the eighth inning and used some nifty baserunning to set up Anthony Rizzo's go-ahead single as the Chicago Cubs completed a three-game sweep of Houston.
Astros star first baseman Carlos Lee said he was still undecided on whether he will accept a trade to the Los Angeles Dodgers. He was 1 for 4 with a double in the ninth.
Wood (3-3) held the Astros to three hits in 7 2-3 innings. He also doubled and scored on Rizzo's single in the sixth off Wandy Rodriguez (6-6).
Carlos Marmol pitched a scoreless ninth for eighth save in 10 chances. He saved all three games of the series.
MARLINS 5, PHILLIES 2
MIAMI (AP) — Ricky Nolasco pitched seven strong innings, Hanley Ramirez hit a two-run home run, and the Miami Marlins completed a three-game sweep of struggling Philadelphia.
It was the first Marlins sweep of the Phillies since August 2009 at Citizens Bank Park. The Phillies have lost five straight.
All-Star slugger Giancarlo Stanton also homered, and Omar Infante and John Buck each had RBI doubles for the Marlins, who have won four straight.
Nolasco (7-6) won and Heath Bell earned his 17th save in 21 chances.
Joe Blanton (7-7) allowed three runs and six hits in six innings.
PADRES 2, ROCKIES 0
DENVER (AP) — Kip Wells tossed seven strong innings for his first win in nearly three years, Chris Denorfia and Alexi Amarista had two hits apiece and the San Diego Padres beat Colorado.
Huston Street, picked for the NL All-Star team earlier in the day, pitched a perfect ninth to pick up his 12th save in as many chances.
Wells (1-1) last won on Sept. 20, 2009, when he beat the Marlins as a member of the Cincinnati Reds. The Padres signed him to a minor league contract May 7.
Drew Pomeranz (0-3) turned in an impressive outing after being recalled from Triple-A before the game. He allowed an unearned run on two hits in six innings.
DODGERS 8, METS 3
LOS ANGELES (AP) — James Loney had two RBIs, and the offensively challenged Los Angeles Dodgers parlayed three errors by the New York Mets into six unearned runs to help Clayton Kershaw win.
Kershaw (6-4) allowed three runs — one earned — and five hits over seven innings with nine strikeouts and three walks.
The victory snapped a season-worst seven-game losing streak by the Dodgers, who avoided what would have been the Mets' first four-game sweep against them. New York didn't get another baserunner after Ruben Tejada's leadoff single in the fifth.
Dillon Gee (5-7) was charged with four runs — two earned — and five hits over six innings and struck out four.Suggest a correction