Zack Greinke pitched eight innings of two-hit ball and Paul Goldschmidt hit a two-run homer as the Arizona Diamondbacks defeated the San Francisco Giants 2-0 on Saturday night.
The Diamondbacks reduced their Magic Number for clinching a playoff berth to six as they won for the 20th time in 25 games and for the ninth straight time on the road.
The Giants have dropped four straight, seven of their last eight and 15 of their last 20. They will need to win at least half of their remaining 12 games to avoid their second 100-loss season in franchise history.
Greinke (17-6) struck out eight and gave up one walk as he moved into a three-way tie for the major league lead in victories with Clayton Kershaw and Zach Davies.
Goldschmidt homered with two outs in the top of the first with David Peralta aboard on a leadoff single. His 34th homer came on the first pitch he saw Madison Bumgarner (3-9), a 92-mph fastball the Giants ace left over the middle of the plate. Goldschmidt drove the ball well into the bleachers in left center field, a shot estimated at 438 feet by Statcast.
Bumgarner struck out six and allowed two runs, seven hits and a walk in seven innings. He lost his fifth straight decision and is winless in last seven starts.
The Giants got just one man in scoring position, when Mac Williamson went to second on shortstop Kristopher Negron's two-base throwing error.
Greinke was 2 for 3 with two doubles.
Fernando Rodney pitched a scoreless ninth for his 38th save.
The Giants celebrated Hall of Famer Orlando Cepeda's 80th birthday on Saturday with an on-field ceremony and a video tribute. Fellow Hall of Famers Willie Mays, Willie McCovey and Gaylord Perry were on hand.
The Giants will exercise their 2018 club option for LHP Matt Moore. The 2013 All-Star has struggled this year, going 5-14 with a 5.39 ERA.
Diamondbacks: OF J.D. Martinez was back in the lineup after missing Friday's game with neck stiffness. Manager Torey Lovullo said Martinez, one of the hottest hitters in the majors this month, started experiencing discomfort on Wednesday night but played the next day and hit a home run against Colorado. Martinez was 0 for 4 with two strikeouts on Saturday.
Giants: RF Hunter Pence is day to day with back spasms he developed after diving for a fly ball in Friday's game, manager Bruce Bochy said. Pence was out of the starting lineup on Saturday and is questionable for Sunday's game. He expects to have the three-time All-Star back in the lineup after a day off on Monday. . OF Gorkys Hernandez is day to day with a left wrist sprain. Hernandez is doubtful for Sunday's game too, Bochy said.
Diamondbacks: RHP Taijuan Walker (9-7, 3.32 ERA) will pitch Sunday's series finale. Walker is 3-0 with a 1.54 ERA over his last four starts and is 2-0 with a 0.55 ERA in his last three road starts. He's 3-1 with a 3.26 ERA in five career starts against the Giants.
Giants: RHP Chris Stratton is 2-1 with a 1.96 ERA over his last five starts. He's 0-1 with a 3.27 ERA in two career starts against the Diamondbacks.