(AP) Hunter Pence singled in the winning run with no outs in the ninth inning to give the San Francisco Giants a 7-6 victory over the San Diego Padres on Sunday.
Francisco Peguero hit his first career home run leading off the ninth to tie it as Huston Street (2-5) blew his second save in 35 chances.
Tony Abreu followed with a single and advance to second on Street's wild pitch. Brandon Belt walked and both runners advanced on a passed ball.
After Buster Posey was intentionally walked, Pence, who had three RBIs, singled to center to end the game.
Sergio Romo (5-8) pitched the ninth for the win as the Giants finished in a third place tie with the Padres, 16 games behind the NL West champion Los Angeles Dodgers.
Jedd Gyorko hit a grand slam, Nick Hundley homered for the Padres. Gyorko's slam put an exclamation point on a sensational rookie season. He became the first rookie second baseman to lead his team in RBIs and has the third-most home runs in baseball history.
Tyson Ross pitched six innings, allowing three runs on seven hits. He walked one and struck out seven. He was 0-4 in his previous eight starts.
Belt drove in two runs for the Giants, who lost their second straight. Pablo Sandoval also drove in a run.
It also broke a 2-2 tie in the fifth. Walks to Alexi Amarista and Jesus Guzman sandwiched around Chris Denorfia's single loaded the bases ahead of Gyorko, who was the first hitter faced by Giants reliever Kyle Dunning.
Hundley led off the third with his 13th home run, a career high. Tommy Medica doubled home a run in the fourth.
Barry Zito entered the game for one batter in the eighth, striking out Mark Kotsay in what was likely his last appearance in a Giants uniform. He received a standing ovation and acknowledged it with a wave of his cap to the entire stadium.
Gregor Blanco left the game with two outs in the ninth with an apparent right knee injury. He collided with Angel Pagan while trying to make a play on Will Venable's pinch hit triple.
Giants manager Bruce Bochy, Buster Posey and Zito all addressed the crowd following the game.
NOTES: The Giants end the season with a streak of 246 regular-season sellouts. ... The Giants had the best record within the NL West Division and won the season series against each of the other four teams. ... Sunday was the 59th anniversary of Willie Mays' catch in game one of the 1954 World Series. ... Denorfia, who had three hits, ended the season with a seven-game hitting streak. ... Padres OF Mark Kotsay played in his 1,914th and final game. ... Gyorko hit the Padres second grand slam of the season and No. 135 in franchise history.