LOS ANGELES -- If he knew how it was going to turn out, D-backs manager Torey Lovullo wouldn't have sent Zack Greinke back out for the eighth inning.
And if Greinke had the luxury of a crystal ball, he wouldn't have shook off catcher Jeff Mathis in the seventh inning.
Neither, though, could see into the future, which wound up being a 3-2 win by the Dodgers on Friday night at Dodger Stadium.
With the win, the Dodgers pulled to within one game of the first-place D-backs in the National League West. The Rockies, who lost for a second straight night to the Padres, fell into third place, 1 1/2 games back.
Greinke cruised through the first six innings, allowing just one run on Joc Pederson's RBI single in the third.
Meanwhile, Paul Goldschmidt gave the D-backs a lead in the first inning with a two-run homer down the right-field line.
The D-backs held that lead until the seventh, when pinch-hitter Enrique Hernandez tied the game with a homer just over the wall in right-center.
The homer came on a fastball, which was Greinke's preference after he shook off Mathis' original sign for a curve.
"I felt good with both of them, probably," Greinke said of the fastball and curve. "I just know that he did call it [curve] and I felt good with the fastball. Didn't work."
Mathis felt fine with what Greinke ended up throwing, just not how he threw it.
"With him, you always have a lot of options," Mathis said. "I thought he was throwing his breaking ball where he wanted to. There was a reason I went there first, but he was also throwing his fastball where he wanted to tonight, too, so it wasn't like I hated the pitch. He just didn't execute it the way he wanted to."
The homer tied the game, and in the top of the eighth after Ketel Marte reached to start the inning, Lovullo had Mathis try to sacrifice him to second. Mathis did not get the bunt down and struck out.
That brought up the pitcher's spot and Lovullo elected to let Greinke sacrifice bunt and stay in the game in the bottom of the eighth.
"He wasn't showing any signs of fatigue," Lovullo said of Greinke, who had thrown 91 pitches to that point. "My conversations with him in the dugout, he said he was feeling good. I just felt like it was the right thing to do."
On Greinke's first pitch of the eighth, Justin Turner homered to left to provide the Dodgers with their margin of victory.
"I don't think his pitch count was out of control," Turner said. "I thought it was interesting when he went back out there to sacrifice bunt instead of pinch-hitting for him to try and get some more. But who knows why stuff happens? You just roll with it."
Greinke said he felt strong, but just didn't execute the pitch.
"Turner's was just a bad pitch from the get-go," he said. "Just didn't come out properly and just was a really flat slider and he hit it good."
MOMENTS THAT MATTERED
One last chance: Dodgers closer Kenley Jansen's recent struggles have been well-documented, and it looked like the D-backs might add to his woes in the ninth when Goldschmidt collected a hustle double with one out. Jansen, though, struck out David Peralta swinging and induced Eduardo Escobar into a game-ending groundout to short.
Over their last seven games, D-backs starting pitchers have allowed just eight earned runs, three of which were by Greinke on Friday, over 46 innings for a 1.57 ERA.
HE SAID IT
"He's our guy. He's been our catalyst on the mound. We rely on him. He hasn't let us down. The last two years, he's been fantastic. He's having a tremendous year. It's easy to sit right now and say, knowing what the results are, that we would do it differently. Of course I would have done it differently had I known what the outcome was." -- Lovullo, on Greinke
The D-backs continue their series with the Dodgers at 6:10 MST on Saturday night at Dodger Stadium with Patrick Corbin (10-5, 3.15 ERA) taking on Clayton Kershaw (6-5, 2.39). The left-handed Corbin is riding a streak of five consecutive quality starts and is 3-1 with a 2.70 ERA over that stretch. He is 1-0 with a 0.98 ERA in three starts this season against the Dodgers.