LOS ANGELES — The San Francisco Giants' bullpen went toe-to-toe with the Los Angeles Dodgers' relievers until finally blinking in the 14th inning.
After pitching a combined 5 1-3 innings in a 7-5 loss to St. Louis a day earlier, the Giants' relief corps surrendered just one run, albeit the winning one, in 7 1-3 innings against their rivals.
"This pen's been used a lot," Giants manager Bruce Bochy said. "You look at the two previous games, and it caught up with us a little bit. But it was a gutty effort by so many guys. I'm proud of them and how they were fighting out there to try to find a way to get through this one."
The first-place Dodgers' lead increased to 4 ½ games over the Giants in the longest game by innings between the teams since May 2, 1995.
"It stinks," Giants starter Jake Peavy said. "We've got to win 'em all against the Dodgers. We know that. We've got to dig as deep as we can tomorrow. We're going to be tired, but they're going to be tired as well."
Giants reliever Mike Broadway (0-1) started his first inning of relief by walking A.J. Ellis and then gave up consecutive singles to Jimmy Rollins and Chase Utley to load the bases. Gonzalez hit his first pitch from Petit to deep left field, ending the 5-hour, 29-minute game that started in August and ended in September.
"They only hit a handful of balls hard, but those balls obviously forced us to play this long," Peavy said.
Chris Hatcher (2-5) pitched three innings for the win.
The Dodgers won for just the fourth time in 13 games against the Giants this season, a day after getting no-hit by Jake Arrieta of the Chicago Cubs, the second time it happened in 10 days.
"The Giants are resilient," Ellis said. "They're not going anywhere. This won't even shake them."
Both teams wasted numerous scoring opportunities as the game stretched into the wee hours.
The Dodgers had runners on first and second in the 13th with two outs, but Hatcher flied out to foul territory in right field to keep the game tied.
The Dodgers sent ace Clayton Kershaw to the plate with two outs in the 11th when they had no position players left. He grounded out to end the inning. The Giants ran out of position players in the 14th.
The Giants had the go-ahead runs on second and third with one out in the 10th before Jim Johnson ended the threat by inducing two straight groundouts.
The Dodgers had a runner on third in the ninth but Sergio Romo retired three straight hitters to end the inning. They missed another chance in the eighth, getting runners on first and third with one out only to have Romo retire the last two batters.
Marlon Byrd of the Giants tied the game 4-all in the eighth with an RBI-double in the right-field corner off Juan Nicasio.
Gonzalez and Andre Ethier homered for the tying and go-ahead runs in the sixth inning, giving the Dodgers a 4-3 lead.
Giants: OF Angel Pagan (right patella tendinitis) was to be activated later Tuesday when rosters expand. ... INF Joe Panik (lower back inflammation) is in Los Angeles for the series and is set to begin a rehab assignment this week. ... RHP Tim Hudson (right shoulder strain) has been throwing bullpen sessions in preparation for his return from the DL. ... OF Hunter Pence (strained left oblique) is on schedule with his rehab and has been swinging the bat with no setbacks.
Dodgers: INF-OF Kike Hernandez went on the DL with a strained left hamstring, joining OF Yasiel Puig and INF Howie Kendrick, who are out with hamstring injuries. Hernandez got hurt trying to leg out an infield hit Sunday. He was hitting .308 with six home runs and 21 RBIs. ... RHP Joel Peralta (right neck sprain) is expected to come off the DL later Tuesday.
Byrd drove in three of the Giants' four runs, continuing to hit well against the Dodgers. He's batting .331 with three homers and 26 RBIs in 48 career games against them. At Dodger Stadium, he has a .355 career batting average with seven doubles, three homers and 21 RBIs in 24 games.
Giants: LHP Madison Bumgarner (16-6, 2.97 ERA) has eight career wins at Dodger Stadium, most by a Giants pitcher since Juan Marichal went 14-11 here during his career. Bumgarner is 2-0 with a 1.31 ERA in three starts against the Dodgers this season — all against Kershaw.
Dodgers: RHP Zack Greinke (14-3, major league-leading 1.61 ERA) is 6-0 with a 2.28 ERA in eight career starts against the Giants while holding opposing hitters to a .231 batting average. He is 7-1 at home this season.