SAN FRANCISCO -- He struck out twice, once with the bases loaded, and Hunter Pence was still serenaded like the hero he has become in San Francisco.
"Everybody is happy to have him back," Hudson said of Pence's first game at home since the World Series. "He's our mascot. He's the guy who makes things work for us. He keeps our mojo going in the dugout."
While Pence, who missed the first 36 games with a broken bone in his left hand, did make a highlight reel catch to rob Adrian Gonzalez of extra bases in the sixth, it was his presence that excited fans and players alike.
"This ballpark is special," Pence said. "Coming home to our fans, it was an electric atmosphere."
Pence said he had trouble with Gonzalez's fly, but there's always something that hinders defensive play in right field.
"You never know about the wind, especially in that little Bermuda Triangle," he said. "That part of the ballpark, the fence is weird, you're running on the track and the wind is different every night. I keep my eyes on the ball and, fortunately, caught it."
Alex Guerrero had two hits for the Dodgers, who have lost four of six overall and five of seven to the Giants.
Hudson (2-3) did not allow a run for the first time since his first start of the season on April 9. He walked two and struck out two.
"I pitched just enough to keep us in there," Hudson said. "I got away with some tough pitches."
Carlos Frias (3-1) retired the first two batters of the third inning before consecutive singles from Panik, Pagan and Posey, who has an 11-game hitting streak, produced a run.
The Giants' second run scored in the eighth inning on a wild pitch by Chris Hatcher.
Romo got four outs and Santiago Casilla pitched the ninth for his 10th save in 12 chances.
Frias limited the Giants to one run and seven hits over six innings. He walked two and struck out three.
"Carlos was good tonight," Dodgers manager Don Mattingly said. "He did the job for us. He gave us a chance. We haven't scored a lot of runs lately. Hopefully it's a short little stretch and we can come back tomorrow and put some runs on the board."
Dodgers: LHP Hyun-Jin Ryu will decide Wednesday whether to undergo surgery on his left shoulder, which has not responded to rest and treatment. He's been out since spring training. He was to consult with Dodgers team doctors on Tuesday. ... RHP Brandon Beachy is closer to returning to action following Tommy John surgery last year. He threw a bullpen session Monday and reported it was one of his better ones. "He's making progress," Mattingly said. "Mentally he's moving forward. He's getting closer and closer to games."
Giants: RHPs Jake Peavy and Matt Cain threw bullpen sessions. Cain started throwing breaking balls. Manager Bruce Bochy said the team will decide Wednesday on Peavy's immediate future, though he indicated the possibility of a rehab start in San Jose.
Dodgers: LHP Brett Anderson (2-1, 3.50) pitches against the Giants on Wednesday. It will be his 100th career appearance (89th start) and sixth against the Giants. He's 0-3 with a 6.10 ERA against them.
Giants: RHP Tim Lincecum (3-2, 2.43) makes his third start against the Dodgers this season. He's 10-8 with a 3.45 ERA in 28 games against them.
Milwaukee Brewers place RHP Freddy Peralta on IL, closer Josh Hader on family emergency list
The Milwaukee Brewers placed right-hander Freddy Peralta on the 15-day injured list with a right lat strain Monday and put closer Josh Hader on the family medical emergency list.
St. Louis Cardinals put catcher Yadier Molina on bereavement list, Steven Matz on 15-day IL
The Cardinals put catcher Yadier Molina on the bereavement list and Steven Matz on the 15-day injured list Monday in a series of moves.
MLB suspends New York Yankees Josh Donaldson for one game over comments to Chicago White Sox's Tim Anderson
Yankees third baseman Josh Donaldson has been suspended for one game for calling White Sox shortstop Tim Anderson "Jackie" on Saturday. Donaldson is appealing the suspension.
New York Yankees say MRI on Aroldis Chapman's Achilles negative, but closer still could land on MLB injured list
An MRI on the ailing Achilles of Aroldis Chapman came back negative, but Yankees manager Aaron Boone said his closer still may go on the IL.
Fantasy baseball pitcher rankings, lineup advice for Tuesday's MLB games
Everything you need to know to place your MLB bets and set your fantasy baseball lineups for Tuesday, May 24.
Nats win 8-2; Brewers' Peralta exits with shoulder tightness
— The slumping Washington Nationals hitters are heading home with a confidence boost while the NL Central-leading Milwaukee Brewers begin their longest trip of the season without one of their All-Star pitchers available.