SAN DIEGO — Alexi Amarista hit an RBI single in the 11th inning Thursday night and the San Diego Padres outlasted the Arizona Diamondbacks 3-2.
Tommy Medica led off the 11th with a swinging bunt down the third-base line for an infield single. Jesus Guzman batted for reliever Nick Vincent (6-3) and hit a ground-rule double that center fielder A.J. Pollock misplayed.
Josh Collementer (5-5) intentionally walked Nick Hundley to load the bases, and Amarista slapped a single through a drawn-in infield.
With the score tied at 2 and one out in the eighth, Mark Kotsay, playing in his last home game, had a chance to be the star.
Diamondbacks reliever David Hernandez walked Jedd Gyorko and hit Chase Headley on the right foot, setting the stage for Kotsay. But Kotsay struck out, as did Hundley to end the threat.
Arizona's Trevor Cahill worked 6 2-3 innings, giving way with Medica on third with two outs in a tie game. Cahill, who had won five straight starts, allowed two runs and five hits before being relieved by Joe Thatcher, the ex-Padre who the Diamondbacks received in July in the trade for Ian Kennedy.
Thatcher struck out Amarista swinging, stranding the go-ahead run in Medica.
Padres starter Robbie Erlin allowed two runs on three hits and a walk, while striking out seven in seven innings.
The Diamondbacks tied the score in the fourth inning when Martin Prado hit his 14th homer of season. Paul Goldschmidt led off the inning with a single.
After the homer, Padres pitchers retired 24 straight batters.
NOTES: Goldschmidt singled in the fourth inning to extend his 16-game hitting streak. ... C Miguel Montero was given the day off as Tuffy Gosewisch got his 10th start of the season. .. Arizona GM Kevin Towers said the fate of his team's coaching staff will be determined soon after Sunday's final game. ... The Padres confirmed they are bringing back their coaching staff next season. ...Kotsay was honored before the team's final home game. Kotsay, a 17-year pro, is retiring after Sunday's game. ... Padres SS Ronny Cedeno missed his third straight game after being beaned by Arizona's Heath Bell on Monday night.