LOS ANGELES The Giants and Los Angeles Dodgers entered their mid-September series separated by 19 1/2 games in the standings, but that did nothing to diminish the intensity Thursday night.
In a game that had a playoff feel at times, the Dodgers took a 3-2 walk-off win over the Giants in front of an announced crowd of 53,393.
Carl Crawford scored the winning run in the bottom of the 10th when Adrian Gonzalez singled off Jeremy Affeldt, who was brought off the disabled list Thursday and made his first appearance since July 20.
Former Giants closer Brian Wilson was the winning pitcher, adding another layer to a heated rivalry. Wilson entered in the top of the 10th and walked one in a scoreless inning, his first against the organization that drafted him.
Red-hot right-fielder Hunter Pence got the Giants off to a quick start, hitting a solo homer just inside the right-field foul pole in the second inning. The homer was Pence's 21st of the season, putting him within striking distance of his career high of 25.
The Giants entered the night riding a franchise record 13-game errorless streak, but they kicked the ball around in the second inning while giving up a run.
Andre Ethier reached on an infield single but was thrown out at second when Marco Scutaro dropped Juan Uribe's popup to shallow right field.
A.J. Ellis followed with a grounder back to the mound, but Matt Cain's throw sailed into center field, allowing Uribe to advance to third. The former Giant scored on a grounder to second.
Cain and Zack Greinke matched zeros into the late innings, but the Dodgers grabbed the lead in the seventh. With a runner on third and two outs, Yasiel Puig jumped on a first-pitch fastball and lined it into the left-center field gap. Puig pumped both fists as Dodger Stadium shook, but the Giants threatened right away.
Angel Pagan led off the eighth with a single and promptly stole second. After a walk of Scutaro and a sacrifice bunt by Brandon Belt, the Dodgers intentionally walked Buster Posey to load the bases. Pence chopped Ronald Belisario's first pitch to third, and Uribe stepped on the bag before throwing to first to complete an inning-ending double play.
Dodgers closer Kenley Jansen had converted 18 straight save opportunities, but the Giants got going right away in the ninth inning when Pablo Sandoval hit a leadoff single.
Pinch runner Juan Perez stole second and took third on a passed ball before scoring on Gregor Blanco's single to center.
The Dodgers can clinch the National League West as soon as Sunday.
"It's inevitable that they're going to do it (at some point)," Giants manager Bruce Bochy said.