Hudson (2-3) allowed nine runs and 21 hits in 12 innings spanning his previous two outings. But the 39-year-old stopped trouble before it started by permitting just one leadoff hitter to reach base as the Giants trimmed the Dodgers' National League West lead to 3 1/2 games.
"They're a tough team, no question about it," Hudson said of the Dodgers. "They have a lot of talent over there."
Making his first career start against San Francisco, Carlos Frias (3-1) pitched out of trouble for most of.his six-inning stint. The exception was the third, when Joe Panik, Angel Pagan and Posey strung together consecutive two-out singles. The Giants added a run in the eighth when Brandon Belt reached on left fielder Kiké Hernandez's two-base error and scored on reliever Chris Hatcher's wild pitch.
"Everything was working pretty good," said Frias. "It's all about trusting your pitches. I think all my pitches were good."
MOMENTS THAT MATTERED The 'pen is mighty: As they often do, San Francisco's relievers were essential to the victory. Manager Bruce Bochy used three relievers to escape the seventh inning, which ended with Sergio Romo retiring Howie Kendrick on a comebacker to leave the bases loaded. Santiago Casilla stranded two runners in the ninth en route to his 10th save in 12 chances.
Never 'two' much: Posey's third-inning hit was typical of the Giants. They entered the game batting .280 with runners in scoring position and two outs, the Major Leagues' third-best figure in that situation. More >
Power outage: The Dodgers' fast start to the season has been marked by prolific offense, and they came into this game with the largest run differential in the Majors. But they also came into the game having scored only one run in each of their previous two games and they placed only two runners in scoring position against Hudson. More >
Thou shalt not: The Dodgers are only 9-for-23 in attempted steals after Scott Van Slyke was caught jumping the gun on what was apparently a two-out hit-and-run on an 0-2 pitch to Andre Ethier, ending the eighth inning. Van Slyke broke when Giants reliever Sergio Romo made a pick-off throw, and first baseman Belt nailed Van Slyke at second.
"I don't know what happened. That's emotion." -- Frias, explaining why he slammed his bat on the plate and cracked it after striking out leading off the fifth inning.
WHAT'S NEXT Dodgers:Brett Anderson will take the mound on Wednesday at 7:15 p.m. PT in the second game of the rivals' three-game series. His last two solid starts came in serious downpours, at Coors Field and Dodger Stadium. He will oppose two-time Cy Young winner Tim Lincecum in likely dry conditions in this one.
Giants: With his club facing the left-handed Anderson, manager Bruce Bochy can be expected to make a change or two in the lineup to give it more of a right-handed presence. Infielder Matt Duffy and outfielder Justin Maxwell can be considered candidates to start.