SAN FRANCISCO — Hunter Pence followed his first long-term contract with his first game-ending hit with San Francisco.
Pence singled in the winning run with no outs in the ninth inning to give the Giants a 7-6 victory over the San Diego Padres on Sunday.
"Honestly, they showed faith in me by giving me the contract and that lifted my spirits," said Pence, who formally signed a five-year with the club earlier in the day. "I wanted to show them why they should believe in me."
Pence's last walk-off hit came with the Philadelphia Phillies on May 15, 2012.
"This game was a great way to go into the offseason," Pence said. "We have a team that battles and is scrappy. The last three weeks we've been playing that way and that gives us momentum heading into offseason."
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.
"That's a tough one, whether it's April, May, June or . . . September," Padres' manager Bud Black said. "Huston has been so reliable for us the past couple of years and it just goes to show that players are not invincible."
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.
"You couldn't ask for a better story today with everything that happened," Giants manager Bruce Bochy said. "It felt like a playoff game. I guess the guys really wanted a piece of third place."
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 and 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. His 23 homers are the third most by a rookie second baseman ever.