SAN DIEGO -- Chris Denorfia drove in the winning run with a seventh-inning single, and the San Diego Padres earned a 3-2 victory over the San Francisco Giants on Tuesday at Petco Park.
Nick Hundley drew a walk to lead off the seventh, and Ronny Cedeno singled to left off reliever Jake Dunning, allowing Hundley to advance to third. Javier Lopez, who replaced Dunning, retired pinch hitter Mark Kotsay on a weak fly to short, but Denorfia followed with a hit to left, bringing home Hundley for the game-winner with two outs.
Dunning (0-2) gave up a run on one hit and a walk without retiring a batter. He was recalled from Triple-A Fresno before the game.
Tim Stauffer (3-1) struck out three and allowed two hits in 1 2/3 scoreless innings to pick up the victory. Huston Street pitched the ninth for his 27th save, retiring Hector Sanchez with the tying run on second base.
San Diego starter Robbie Erlin worked 5 1/3 innings, allowing two runs on six hits with five strikeouts and two walks. Erlin pitched out of a bases-loaded jam in the first, then set down 11 of the next 13 Giants before giving up back-to-back, sixth-inning singles to Brandon Belt and Buster Posey, who both scored. Pablo Sandoval and Joaquin Arias hit RBI singles.
Posey left the game after the sixth with an apparent finger injury on his throwing hand.
Giants starter Madison Bumgarner allowed two runs on five hits with six strikeouts and two walks (one intentional). Bumgarner has managed just one win in eight starts since the All-Star break, going 1-4. The Giants, who stranded 10 runners in Tuesday's defeat, have scored only 13 runs in the 57 innings he's pitched in the second half.
The win allowed the Padres (62-76) to drop the defending World Series champion Giants (61-77) into sole possession of last place in the National League West. San Francisco has lost three of its past four games.
Bumgarner retired 12 of the 13 hitters he faced before running trouble in the fifth. He gave up a one-out double to Kyle Blanks, who scored on Nick Hundley's double to center with two outs.
After an intentional walk to Cedeno, Erlin produced his first major league hit with a bloop single over the head of second baseman Tony Abreu, scoring Hundley to give San Diego a 2-0 lead.
NOTES: Padres OF Will Venable agreed to a two-year extension that will pay him $4.25 million annually. ... Padres 3B Chase Headley sat out his sixth consecutive game with a lower back injury. Headley could return for Wednesday's game against the Giants, manager Bud Black said. ... The Giants recalled INF Ehire Adrianza, RHP Jake Dunning, RHP George Kontos, INF Nick Noonan, OF Francisco Peguero and OF Juan Perez from Triple-A Fresno. The club purchased the contracts of RHP Heath Hembree and C Johnny Monell from Fresno. To make room, the Giants designated INF Kensuke Tanaka and LHP Dan Runzler for assignment. ... San Diego recalled RHP Anthony Bass, RHP Brad Boxberger and RHP Brad Brach from Triple-A Tucson. ... San Francisco LHP Jeremy Affeldt, on the disabled list since July 21 with a left groin strain, pitched to hitters Tuesday, and manager Bruce Bochy was pleased with the reliever's progress. Affeldt will be re-evaluated Wednesday. ... The game drew a crowd of 19,889.