SAN FRANCISCO - Yusmeiro Petit almost got the perfect revenge against his former team.
Petit lost his bid for a perfect game on Eric Chavez's two-out single in the ninth, and then recovered to retire the final batter in the San Francisco Giants' 3-0 victory over the Arizona Diamondbacks on Friday night.
Most popular baseball stories
Petit, a former Mets prospect, struck out Chris Owings to begin the ninth, and Gerardo Parra followed with a routine grounder to second. He then went to a full-count on Chavez, who dumped a pinch-hit single just in front of Hunter Pence in right field.
The crowd of 41,190 fans responded with a standing ovation for Petit, who struck out seven in his 95-pitch gem. A.J. Pollock grounded out to third to finish Petit's first career complete game.
Before the ninth, the closest Arizona came to a hit was pitcher Patrick Corbin's sinking line drive to left that forced Juan Perez to make a shoestring catch for the final out of the sixth.
"I'm just so happy to be here, I realized what was going on when Juan Perez made that catch in the sixth inning," Petit said through an interpreter. "From then on, I just tried to concentrate on every pitch."
Pence had three hits, including a home run, and scored all three runs. Brett Pill and Hector Sanchez also drove in runs.
Corbin (13-6) tossed eight strong innings, giving up eight hits. He walked one and struck out five.
Petit broke into the majors in 2006 with the Marlins, and then spent the next three years with Arizona. He was waived after the 2009 season and eventually landed in San Francisco. But he did not make another major league appearance until last year.
Now, with the World Series champions finishing out a disappointing season, Petit is making the most of a chance to audition for next year. He has won each of his last three starts.
Petit needed 65 pitches to get through seven innings. The Venezuelan righty went to a three-ball count twice and did not throw more than five pitches to any one batter through seven.
Pence singled and scored on an error by shortstop Owings in the second. He doubled and scored on Hector Sanchez's base hit in the fourth. Pence then hit a drive to left in the eighth for San Francisco's first homer at home since Aug. 21.
Sanchez went 3 for 3 and also was behind the plate for Petit's best start of his career.
"We had a good plan," Petit said. "We had good communication through the whole game."
NOTES: The Giants announced Kensuke Tanake cleared waivers and is a free agent. ... Giants LHP Dan Runzler, who also cleared waivers, was outrighted to Triple-A Fresno. ... Giants C Buster Posey missed his third straight game with a swollen right ring finger. He's expected to miss at least two more games. ... RHP Matt Cain (8-8, 4.43 ERA) will start Saturday night's game for the Giants. He's 14-6 in 31 starts against the Diamondbacks. ... RHP Brandon McCarthy (3-9, 4.94) gets the start Saturday for the Diamondbacks. He's coming off his eighth career complete game. ... The gametime temperature of 72 degrees made it the hottest night game of the season in San Francisco.