David Wright argues with home plate umpire Paul Schrieber after...

David Wright argues with home plate umpire Paul Schrieber after a called strike three in the bottom of the ninth inning, Sunday. The game-tying run was on second base. (May 9, 2010) Credit: Christopher Pasatieri

Aaron Rowand hit a two-run homer in the eighth inning after the Giants blew a two-run lead for Tim Lincecum, and San Francisco ended the New York Mets’ nine-game home winning streak with a 6-5 victory Sunday.

San Francisco ended its East Coast trip 4-2, while New York — which won the first two games of the series with game-ending homers — lost for the first time at Citi Field since April 21.

Lincecum left after six innings with a 4-2 lead but the Giants fell apart in the seventh. Jason Bay’s wind-aided two-run single off Dan Runzler tied it and David Wright gave New York its first lead with a sacrifice fly. Rowand homered to right-center after Jenrry Meija (0-2) issued the Mets’ 10th of 11 walks to retake the lead, and Brian Wilson prevented the Mets from making it three last at-bat wins in a row.

He got all five of his outs by strikeout for his seventh save.

Bay led off the ninth with another pop fly that the Giants’ fielders couldn’t catch thanks to the gusty wind, ending up with a shallow double. Wright then struck out for the fourth time and was ejected for contesting the call, and Ike Davis and Jeff Francoeur struck out to end it.

Sergio Romo (1-3) got two outs for the win. The Giants jumped out to a 4-0 lead thanks to another awful start by Oliver Perez, who walked a season-high seven and hit a batter in 3 1-3 innings.

Juan Uribe was hit by a pitch and walked four times, including once with the bases loaded in the fourth. Rowand also scored on a passed ball in the fourth inning.

After a perfect first, Perez walked the leadoff batter in three straight innings. In the second, the Giants combined their two hits off Perez with the walk and a wild pitch to take a 2-0 lead. Matt Downs had an RBI single and Ryan Rohlinger, called up Friday for the injured Edgar Renteria, drove in a run with a groundout.

Perez again loaded the bases in the third with two walks and hit backup catcher Eli Whiteside. But he left unscathed when Angel Pagan made a running catch of Downs’ drive to left-center for the third out. The half-inning took 17 minutes and Perez threw 35 pitches, 21 balls.

Lincecum then had a 10-pitch, 1-2-3 inning that lasted about as long as a trip to the hot dog stand.

The fourth was much of the same. Perez walked the bases loaded while getting one out, a fielder’s choice by Lincecum. After walking Andres Torres for the second straight inning, Perez was lifted to lusty boos from the crowd of 35,641.

Raul Valdez relieved and retired Pablo Sadoval, who snapped an 0-for-15 skid Saturday, but walked Uribe to score a run. The Giants made it 4-0 on Rod Barajas’ passed ball. Perez, winless in seven starts since Aug. 18, gave up four runs — three earned.

After scattering four singles through five innings, Lincecum gave up three hits in the sixth, including RBI singles to Davis and Francoeur to make it 4-2.

The slight, two-time Cy Young winner came out for the seventh but was lifted for Runzler having thrown 116 pitches.

SUBSCRIBE

Unlimited Digital AccessOnly 25¢for 5 months

ACT NOWSALE ENDS SOON | CANCEL ANYTIME