PHOENIX -- Pirates infielder Sean Rodriguez drove home Josh Harrison with a double to left field in the 13th inning to propel his team to a 12-10 win and a series victory against the D-backs on Sunday at Chase Field.
"That was clutch right there," Rodriguez said. "Coming from a pitcher, that goes to show you the kind of baseball player he is. A lot of credit should go to him, too."
Pirates third baseman David Freese hit a double in the 12th inning that scored center fielder Andrew McCutchen from first base to put his team ahead, and the Bucs added another run for a two-run lead.
But Arizona answered with two runs, one coming on a double by David Peralta and another coming on a single by Jean Segura.
D-backs first baseman Paul Goldschmidt tied the game at 8 with a two-run home run, his second home run in the game, with one out in the ninth inning.
Goldschmidt hit his first of two home runs in the game in the first inning off Pirates starter Francisco Liriano to give the home team an early 1-0 lead. The game was the eighth career multi-home run game for Goldschmidt in his career.
"[I feel] the same as the days before," Goldschmidt said. "I was able to get a couple of pitches and get them out of there. I'll show up tomorrow and try to find a way to get on base."
Liriano gave up four runs on five hits in six innings. D-backs starter Robbie Ray was charged with five runs -- four earned -- on eight hits in three innings. He struck out five.
"Obviously, it was not one of his better outings," D-backs manager Chip Hale said. "The velocity wasn't good and obviously, his location wasn't great. He had a lot of pitches again and he was hurt by his defense a little bit."
The Pirates (10-9) have won three of their last four games, while the D-backs (10-10) have won six of their last eight games.
MOMENTS THAT MATTERED Keep the line moving: Long before their late heroics, the Pirates rallied for five runs in the fourth against Ray and Tyler Wagner. Characteristic of their offensive approach, the Bucs didn't homer in their big inning; instead, they used five singles, two walks and an errant throw by Goldschmidt to pull ahead of the D-backs. Polanco delivered the biggest hit, a two-run single to left field. After that, the Bucs went scoreless until the 12th inning.
Putting a foot down: Spotted an 8-4 lead after the Pirates' big fourth inning, Liriano put together perhaps his best inning of the season. Liriano struck out Chris Owings, Peralta and Segura in order, using his slider to finish off all three. Owings and Peralta went down swinging, and Segura was caught looking at a called third strike. Liriano followed that up with a clean fifth inning, striking out Goldschmidt between two groundouts to third base, and then tossed a scoreless sixth.
"Location-wise, everything was a lot more sharp. It was working a lot better down in the zone," Liriano said. "Just get ahead in the count and not try to do too much. That got better at the end."
Tomas' timing:Yasmany Tomas is off to a solid start. The left fielder extended his hitting streak to 10 games with a single in third inning. He launched his fourth home run of the season in the eighth inning. Tomas hit nine home runs in 118 games in 2015.
Castillo crushes: The D-backs catcher hit a three-run home run in the third inning, his sixth homer of the season. He also hit two home runs Friday, the third multi-homer game of his career. Six of Castillo's last nine hits have been home runs.
Castillo, who turned 29 Sunday, also became the eighth D-backs player to homer on his birthday, the first since Justin Upton did it on Aug. 25, 2012.
"We had the opportunities in front of us. To get to the point where we think we can be at some point this year, those are spots that we are going to have to welcome the pressure. Right now, I think we are letting the pressure overwhelm us." -- Hale
SOUND SMART WITH YOUR FRIENDS
McCutchen went 1-for-6 with four strikeouts, all swinging. It was McCutchen's fourth career four-strikeout game and just the second time he's gone down swinging four times. The first time was Aug. 19, 2012, a 19-inning game in which McCutchen had eight at-bats. Over the last six games, McCutchen is 3-for-23 with 11 strikeouts.
With one out in the fifth inning and Freese on first base, Marte smashed a double off the center-field wall. Freese plodded around the bases, sent home by third-base coach Rick Sofield, and was thrown out at home as the D-backs relayed from Owings to Nick Ahmed to Castillo.
Hurdle challenged the call, asking the replay official to determine whether the home-plate collision rule had been violated. After a one-minute, 19-second review, the out call was confirmed.
WHAT'S NEXT Pirates: The Pirates' 10-game road trip will continue at Coors Field, where the Bucs and Rockies will begin a four-game series at 8:40 p.m. ET on Monday. Left-hander Jeff Locke will get the start, looking to rebound from an outing in San Diego in which he allowed eight runs on 11 hits.
D-backs: Right-hander Zack Greinke will pitch the first game of the four-game series against the Cardinals at 6:40 p.m. MST on Monday at Chase Field. Greinke struck out seven in 6 2/3 innings against the Giants in his last outing, allowing one run on six hits and a walk to earn his first D-backs win. It was his best start of the season.