Posey's home run lifts Giants past Dodgers 2-1

San Francisco Giants' Buster Posey swings for the game winning home run off Los Angeles Dodgers' Ronald Belisario in the ninth inning of a baseball game Friday, May 3, 2013, in San Francisco. (AP Photo/Ben Margot)
— AP

San Francisco Giants' Buster Posey swings for the game winning home run off Los Angeles Dodgers' Ronald Belisario in the ninth inning of a baseball game Friday, May 3, 2013, in San Francisco. (AP Photo/Ben Margot)
/ AP

Los Angeles Dodgers' Nick Punto swings for an RBI single off San Francisco Giants' Barry Zito in the fifth inning of a baseball game Friday, May 3, 2013, in San Francisco. (AP Photo/Ben Margot)
/ AP

San Francisco Giants catcher Buster Posey, left, speaks with Barry Zito on the mound in the second inning of a baseball game against the against the Los Angeles Dodgers on Friday, May 3, 2013, in San Francisco. (AP Photo/Ben Margot)— AP

San Francisco Giants catcher Buster Posey, left, speaks with Barry Zito on the mound in the second inning of a baseball game against the against the Los Angeles Dodgers on Friday, May 3, 2013, in San Francisco. (AP Photo/Ben Margot)
/ AP

Los Angeles Dodgers' Clayton Kershaw (22) is congratulated after scoring on a single by Nick Punto against the San Francisco Giants in the fifth inning of a baseball game Friday, May 3, 2013, in San Francisco. (AP Photo/Ben Margot)— AP

Los Angeles Dodgers' Clayton Kershaw (22) is congratulated after scoring on a single by Nick Punto against the San Francisco Giants in the fifth inning of a baseball game Friday, May 3, 2013, in San Francisco. (AP Photo/Ben Margot)
/ AP

Los Angeles Dodgers' Clayton Kershaw winds up against the San Francisco Giants in the first inning of a baseball game Friday, May 3, 2013, in San Francisco. (AP Photo/Ben Margot)— AP

Los Angeles Dodgers' Clayton Kershaw throws to a San Francisco Giants batter in the first inning of a baseball game Friday, May 3, 2013, in San Francisco. (AP Photo/Ben Margot)
/ AP

San Francisco Giants' Buster Posey, left, smiles as he passes home plate umpire Joe West after hitting a walkoff home run off Los Angeles Dodgers' Ronald Belisario in the ninth inning of a baseball game Friday, May 3, 2013, in San Francisco. (AP Photo/Ben Margot)— AP

San Francisco Giants' Buster Posey, left, smiles as he passes home plate umpire Joe West after hitting a walkoff home run off Los Angeles Dodgers' Ronald Belisario in the ninth inning of a baseball game Friday, May 3, 2013, in San Francisco. (AP Photo/Ben Margot)
/ AP

SAN FRANCISCO 
Manager Bruce Bochy teases Buster Posey all the time that there is not much more he can accomplish considering how much he has done already at all of age 26 - Rookie of the Year, NL batting champion and MVP, two World Series championships.

Add his first walkoff home run to that remarkable list.

Posey hit a game-ending home run into the left-field seats leading off the bottom of the ninth, and the San Francisco Giants beat the Los Angeles Dodgers 2-1 on Friday night.

"He's the guy you want up there. He ran a deep count there," Bochy said. "It doesn't come at a better time than when he hit it. That's another great comeback for us."

Sergio Romo (2-2) struck out two in the top of the inning and survived Matt Kemp's nine-pitch single for the victory.

Posey connected for his first career game-winning RBI of any kind on a 3-2 pitch from Ronald Belisario (2-3), who hadn't allowed a run in his previous four appearances over six innings. Only a few innings earlier, Posey got thrown out at the plate trying to score from second base in the sixth inning.

"Just enjoying the moment, taking in all the excitement," Posey said of rounding third. "It's a good one. It's a good feeling. It was already a long game for a 1-1 game into the ninth. It's a good win."

Dodgers starter Clayton Kershaw pitched seven strong innings five days after the death of his father, Christopher, and 56 hours after the funeral in Texas.

The Dodgers lost shortstop Hanley Ramirez to what manager Don Mattingly considered a significant left hamstring injury - yet further injuries for the club. Ramirez began the season on the disabled list after tearing a ligament in his right thumb in San Francisco's ballpark during the final of the World Baseball Classic for the champion Dominican Republic in March. He had surgery March 22 - and he had just come off the DL from that injury Monday.

"It sounds like he got it pretty good," Mattingly said. "It's usually a pretty good amount of time. It's not like he's going to be back in a couple days."

Ramirez, aboard on a leadoff walk, grabbed the back of his left leg just above the knee after getting thrown out sliding into third as he tried to go first to third on A.J. Ellis' single. Replays showed he might have hurt his hamstring rounding second base. He was helped off the field by the athletic trainers.

"We can't keep losing guys at this rate," Mattingly said. "This is going to end. Right now it doesn't look very good. ... I'm not confident about anything at this moment."

Angel Pagan drew a leadoff walk in the fourth for the Giants first baserunner against Kershaw, who then retired Marco Scutaro on a shallow fly to left and Pablo Sandoval on a grounder. Pagan advanced to third on a passed ball with Posey at the plate, so he was intentionally walked. Hunter Pence struck out swinging to end the threat.