Pirates 12, Diamondbacks 10 (13 innings)
PHOENIX -- Sean Rodriguez and pinch-hitter Jon Niese drove in runs in the top of the 13th inning and Pittsburgh right-hander Arquimedes Caminero recorded his first major league save in the Pirates' 12-10, 13-inning victory over the Arizona Diamondbacks at Chase Field on Sunday.
Josh Harrison doubled off Evan Marshall (0-1) to open the 13th and scored on Rodriguez's double off the wall in left. Rodriguez took third on a groundout and scored when pitcher Niese, pinch-hitting for Neftali Feliz (1-0), singled to left.
Caminero pitched the 13th for his first major league save.
The teams used 43 players, 22 by Arizona, and both teams ran out of position players in the 13th.
The game ended with Arizona right-hander Shelby Miller in left field and included pinch-hit appearances by starting pitchers Niese, Zack Greinke and Patrick Corbin. Caminero struck out Corbin and Miller with a runner on first to end the game.
Marte had four hits and two RBIs and Gregory Polanco had three hits and two RBIs for the Pirates (10-9), who had 20 hits.
The Pirates took a 10-8 lead in the top of the 12th inning when David Freese drove in a run with a two-out double, his third double, and Marte followed with an RBI single. Andrew McCutchen walked with two outs.
Arizona tied it with two in the 12th inning, with Greinke contributing to the rally with a pinch-hit infield single. David Peralta doubled to drive in one run and Jean Segura singled to score pinch-runner Miller to tie the game.
Feliz struck out Yasmany Tomas with the bases loaded to end the 12th inning.
Arizona finished the game with Miller in left field because shortstop Nick Ahmed was ejected for arguing a called third strike in the 12th inning.
Arizona's Paul Goldschmidt tied the game with his second homer of the game, a two-run homer in the ninth inning off closer Mark Melancon after Brandon Drury singled with one out.
Goldschmidt has six game-tying homers in the ninth inning or later, the most in the majors since he entered the league in August 2011.
The Diamondbacks (10-10), who trailed 8-4 after seven innings, failed in their second attempt to get two games over .500 for the first time since Sept. 25, 2013.
Marte singled and scored in both a three-run third inning and a five-run fourth and Polanco singled in two runs in the fourth as the Pirates took an 8-4 lead.
Tomas hit his fourth homer of the season leading off the eighth inning and Chris Owings tripled in Castillo, who had walked and stolen second, with a two-out triple to make it 8-6.
Drury and Castillo had three hits.
Pirates left-hander Francisco Liriano (2-1) gave up four runs on five hits in six innings. He struck out six and walked three.
NOTES: Pirates 2B Josh Harrison missed his first start of the season Sunday when INF/OF Sean Rodriguez opened at second base. Rodriguez started at three infield positions and played all four in the three-game series at Arizona. ... Arizona RHP Zack Greinke will make his third start at Chase Field on Monday, which is the first game of a four-game series against St. Louis. Greinke gave up 11 runs in 10 innings in two home starts but gave up only three runs in two quality starts on the recent 10-game road trip. ... Two of the NL's most productive leadoff hitters started Sunday -- Arizona 2B Jean Segura entered the game with 27 hits from the leadoff spot, and Pittsburgh 1B John Jaso was third with 22. The Cubs' Dexter Fowler had 25. ... The Chase Field roof was closed despite the 85-degree temperature in downtown Phoenix at first pitch.