D-backs rally in 9th for walk-off win over Giants

D-backs rally in 9th for walk-off win over Giants

PHOENIX -- David Peralta's walk scored Daniel Descalso with the game-winning run as the postseason-bound D-backs walked off the Giants, 4-3, on Wednesday afternoon in their regular-season home finale.

Peralta's walk capped a three-run Arizona rally off Giants closer Sam Dyson.

The D-backs' regular-season home campaign ended just how it started -- with a walk-off win. In the first game of the season on April 2, the D-backs scored a walk-off victory over the same San Francisco team, and Wednesday marked their ninth walk-off win of the year.

Dress for October: Shop for official D-backs postseason gear

"It was a come-from-behind win against the Giants, I think we were two or three runs down," D-backs manager Torey Lovullo said about the season opener. "It was very, very similar. I had that same feeling during that inning. As Yogi said, 'It's deja vu all over again.'"

The Giants jumped out to a 3-0 lead with a pair of runs in the first and one in the third. Meanwhile, San Francisco starter Jeff Samardzija was strong, as he held Arizona to one run on three hits over six innings.

Sandoval's run-scoring double

Giants manager Bruce Bochy continued his season-long praise for Samardzija.

"It's really tough for him not to get a win the way he threw today," Bochy said.

The 32-year-old right-hander entered Wednesday with a 1-3 record and a 5.13 ERA against the D-backs this season, but he stymied them with a barrage of fastballs early in the count. Samardzija threw first-pitch fastballs to 12 of the first 16 batters he faced and produced 12 called strikes with his two-seamer alone.

The lone run that Samardzija surrendered was a homer to right off the bat of Jake Lamb. It was Lamb's 29th home run of the season, tying his career high from 2016.

Lamb's solo homer

The D-backs' rally in the bottom of the ninth started when J.D. Martinez hit his 45th home run of the season and set a few records in the process. Martinez's shot resulted in his 36th RBI this month to break the D-backs' record for RBIs in a single month, besting Luis Gonzalez's mark from June 2001. Martinez's 16 homers this month ties him with Ralph Kiner (1949) for the National League record for home runs in September.

J.D.'s 16th September HR gives him 2 records

Martinez's 45th home run

The D-backs were able to tie the game after A.J. Pollock and Descalso pulled off a double steal with one out in the ninth, and Pollock scored on a grounder to shortstop by John Ryan Murphy.

Murphy's grounder ties game

"I know A.J. is always looking to be aggressive," Descalso said. "Looking to steal third, and so my job is to watch him, and if he goes, I've gotta take off. Obviously, A.J. had a good idea of picking a pitch to go on and executed it perfectly, and my job is just to not screw it up on the back end."

Cain retiring after 13 seasons with Giants

Panda power: Wednesday marked the second time this season that Pablo Sandoval has hit in the third spot in the lineup, and he went to work right away against D-backs starter Braden Shipley. Sandoval cracked an RBI double to the base of the center-field wall to drive home Denard Span before Brandon Crawford contributed an RBI groundout to give the Giants a 2-0 lead in the first.

Sandoval's RBI double

Panik holds lead: With no outs and runners on the corners in the ninth, Descalso came to the plate with a chance to tie the game. Bochy elected to keep his infield at double-play depth, and Descalso hit a sharp grounder to second base. Joe Panik fielded it and made a quick throw home, where Nick Hundley tagged out Kristopher Negron to keep the score at 3-2. The D-backs challenged that Negron slid in safely under the tag, but the out call was confirmed.

Hundley tags Negron out

The Giants finished 26-55 on the road this season -- the lowest winning percentage in the Majors and the second worst they have accumulated away from home since they moved to San Francisco. They lost 57 road games in 1985, the franchise's lone 100-loss season, which this team will match if it loses its final three games to San Diego.

The Giants won three road series all season.

Giants: After Thursday's scheduled off-day, the Giants will entertain San Diego in a season-ending, three-game series at AT&T Park. San Francisco's scheduled starter in Friday's 7:15 p.m. PT series opener will be Chris Stratton, who'd prefer to forget his only previous appearance against San Diego. The Padres rocked him for five runs in one-third of an inning on April 29.

D-backs: The D-backs will start their last series of the regular season, a three-game set in Kansas City, when they face the Royals at 5:15 p.m. MST on Friday. Zack Greinke will take the hill against the team that drafted him in 2002, making his fourth career start at Kauffman Stadium for an opposing team.

Watch every out-of-market regular-season game live on MLB.TV.

Jarrid Denney is a reporter for MLB.com and covered the D-backs on Wednesday.

Chris Haft has covered the Giants since 2005, and for MLB.com since 2007. Follow him on Twitter at @sfgiantsbeat and listen to his podcast.

This story was not subject to the approval of Major League Baseball or its clubs.