Diamondbacks starter Wade Miley left for a pinch-hitter in the eighth. He surrendered only five hits in his seven innings, walking two and striking out three.
The Giants scored their two runs off Miley in the fourth inning. Sanchez singled in Tony Abreu with the first run of the game, and Posey, who had doubled, later raced home on a wild pitch.
NOTES: The Giants were involved in their first extra-inning game since Aug. 9 against Baltimore. They hadn't won in extra innings since beating Miami in 11 on June 22. ... Diamondbacks 1B Paul Goldschmidt was intentionally walked twice, increasing his season total to 16, which ties him for the NL lead with Cincinnati's 1B Joey Votto. ... There were four intentional walks in the game. ... There was only one error (by Arizona SS Chris Owings) in the four-game series. ... Arizona cleanup hitter 2B/3B/OF Martin Prado didn't start for the second consecutive game as he deals with a sinus issue. He entered the game in the bottom of the ninth and batted once, grounding out to third. ... The Giants held 3B Pablo Sandoval out of the starting lineup in the day game following a night game, citing a stiff back. He pinch-hit with two outs in the bottom of the ninth with the potential winning run at third base and was intentionally walked.