Updated

Nick Hundley matched his career high with four hits and drove in a run to help the San Diego Padres beat the San Francisco Giants 5-3 Friday night.

Chase Headley, Orlando Hudson and Cameron Maybin also drove in runs for the Padres, who won their second straight and fourth in six games.

Cory Luebke (3-1) pitched six strong innings to win his third consecutive start. He gave up two runs on seven hits and struck out three. Four of the seven Padres' victories have come in his last four starts.

Huston Street pitched the ninth for his third save in as many chances.

Buster Posey hit a home run and drove in two runs for the Giants, who have lost three of their last four. Angel Pagan also homered and Pablo Sandoval extended his hitting streak to 20 games with a third-inning single.

Eric Hacker (0-1) took the loss in his first major league start, allowing three runs on eight hits over six innings. He walked two and struck out seven. The former reliever had his contract purchased from Triple-A Fresno to make the start and keep the rest of the rotation on its regular schedule.

Hundley doubled home a run in the top of the first for the Padres and Pagan led off the first with a home run for the Giants.

Pagan, who has four career leadoff homers, hit a three-run homer in his last at-bat Thursday in Cincinnati.

Hudson and Maybin each delivered a two-out RBI single in the fourth to put the Padres ahead 3-1.

Posey's RBI double in the fifth pulled the Giants within 3-2 but the Padres added two more runs in the seventh against Jeremy Affeldt, one on a Headley single and the other on a wild pitch.

Posey hit his fourth home run of the season, a solo shot leading off the eighth.

Notes: Sandoval's hitting streak is the longest to start a season since Edgar Renteria hit in 23 straight for the Atlanta Braves in 2006. ... Hudson extended his hitting streak to 10 games. ... The Giants optioned RHP Dan Otero to Triple-A Fresno and transferred RHP Brian Wilson to the 60-day disabled list to make room for Hacker. ... RHP Anthony Bass (1-2, 2.33 ERA) starts for the Padres on Saturday. He has pitched 8 1-3 scoreless innings in four career appearances against the Giants. ... RHP Tim Lincecum (1-2, 8.20) looks to get his season untracked when he starts for the Giants on Saturday. He won four of five decisions against the Padres last year and has a career 1.96 ERA against them. ... Headley has hit safely in 16 of his last 18 games.