SAN FRANCISCO -- The San Francisco Giants have raced to the best record in the majors with few contributions from two of their biggest stars. Buster Posey and Matt Cain started to change that Friday night. Posey hit a tiebreaking two-run homer in the eighth inning for his first long ball in more than a month, Cain made a successful return from the disabled list and the Giants won for the eighth time in 10 games by beating the New York Mets 4-2. "Hes a talented hitter," manager Bruce Bochy said of Posey. "We all have our ups and downs. We talk about that all the time. He saw the ball well tonight." The big blast off Carlos Torres (2-3) capped a three-hit day for Posey, who entered the game with only four hits in his past 42 at-bats at home and no homers since May 3. Angel Pagan started the rally with a leadoff walk against Torres and advanced to second on a groundout. Posey followed with a long drive to left-centre to snap a 93 at-bat homer drought as the Giants (40-21) became the first team in the majors to reach 40 wins. "In that situation youre just trying to get something you can stay in the middle of the field with and try to get that run in from second," Posey said. "Fortunately I got a good pitch I could handle and it went out." Jeremy Affeldt (1-1) pitched a scoreless eighth on his 35th birthday to get the win. Sergio Romo got three outs for his 19th save in 21 chances. Daniel Murphy hit a two-run homer for the Mets, who lost their fourth straight game. The bullpen has taken all four of the losses and has a major league-worst 15 losses on the season. "He was the perfect guy," manager Terry Collins said of Torres. "Hes had great numbers against the Giants. He doesnt hardly walk anybody. Busters made a career of getting big hits." Cain allowed two runs and three hits in seven innings in his first start back from a stint on the disabled list for a strained right hamstring. But he got a no-decision and still has only one win in nine starts in a rough season that has included two trips to the disabled list. "We had the fastball working pretty well today," Cain said. "We were on both sides of the plate and tried to mix some off-speed stuff after that. The big key today was getting the fastball over for strikes." Cain was in complete control with a 1-0 lead having faced the minimum 18 batters through six innings before the Mets quickly turned the tide in the seventh. Matt den Dekker led off the inning with a double for New Yorks second hit of the game and Murphy followed with his fourth home run of the season to put the Mets ahead 2-1. The Giants tied it in the bottom half when Brandon Hicks and Brandon Crawford teamed up again to produce a run. Hicks drew a two-out walk from Jonathon Niese, advanced to second on a wild pitch and scored on Crawfords single to centre. The duo produced San Franciscos first run in the fifth when Hicks tripled and scored on Crawfords sacrifice fly to make it 1-0. Niese allowed two runs and five hits in seven innings, extending his streak of consecutive starts allowing three earned runs or fewer to 16 but still ended up with a no-decision. "Its tough," he said. "You go out there and battle and you want to see the win beside your name. But it is what it is, its part of the game. Itll come eventually. I have all the confidence in the offence we have here. Theyre going to put up runs." Cain retired the first 12 batters of the game before walking Curtis Granderson to lead off the fifth. Granderson was quickly erased when Andrew Brown hit into a double play. The Mets got the leadoff runner on again in the sixth when Ruben Tejada reached on an infield single. Cain once again followed that by inducing a double-play grounder by Travis dArnaud. NOTES: There was a pregame moment of silence for Don Zimmer, who coached for San Francisco and played for the Mets. Zimmer died Wednesday at age 83. ... Bartolo Colon (5-5) starts Saturday for the Mets against Tim Hudson (6-2). Lester Hayes Youth Jersey . Sizemore, who turned 29 on Jan. 4, has been limited to six games over the past two seasons because of an injured left knee that twice required surgery. He originally got hurt on Feb. 25, 2012, during a fielding drill in Oaklands first full-squad spring training workout and had surgery that March 21 to repair a torn anterior cruciate ligament. Dave Casper Youth Jersey . The two-time former Formula One champion downplayed his third-place finish three weeks ago in China and said progress is going slow for Ferrari as it tries to make up ground on Mercedes. https://www.raiderssportsgoods.com/Womens-Lester-Hayes-Inverted-Jersey/ . Bilbaos first victory in four rounds lifted it four points clear of Real Sociedad and kept it in command of Spains last Champions League berth for next season. In contrast, Betis was left 11 points from safety after a dismal performance that at times bordered on self-destruction amid some questionable refereeing decisions. Marcus Allen Jersey . The Redskins announced Monday that the quarterback who led the team to the Super Bowl championship in the 1987 season will serve as a personnel executive. Kenny Stabler Jersey . They never thought it would take some blood, too. Kevin Love grabbed his 4,000th career rebound as part of a 19-point, 13-board effort to lead the Timberwolves over the Utah Jazz 112-97 on Tuesday night.SAN FRANCISCO -- Rene Rivera remembers his last home run, three years ago next month at Oakland for the Minnesota Twins. His latest will certainly be memorable, too, and did plenty to give San Diegos inconsistent offence a boost. Rivera hit a go-ahead three-run homer in the fifth to follow his two-run double for a career-high five RBIs, single handedly backing Tyson Ross in the Padres 6-4 victory against the San Francisco Giants on Monday night. "Sooner or later our hittings going to come around," Rivera said. "We needed this one. Its a good feeling. Its good for the team." Ross (3-3) did just enough over 5 1-3 innings to beat the Giants for the second time in 11 days, allowing eight hits and four runs with four strikeouts and two walks. After Michael Morse put San Francisco ahead on two-run single in the fourth, Rivera answered with his first homer of the year. He hadnt driven in a run all season before Monday, and the five RBIs were most by a Padres player at 15-year-old AT&T Park. "We needed a game like that from one of our guys," manager Bud Black said. "Its been a long time coming. Weve had a hard time scoring runs in bunches." Brandon Hicks homered for the second straight day, following his walkoff a day earlier against Cleveland with a leadoff shot in the fifth. Hunter Pence hit an RBI triple in the fourth. First base umpire Angel Hernandez had two calls overturned by replay. Giants manager Bruce Bochy came out in the third to request a review after Hernandez called Xavier Nady safe on a close play at first. The umpiring crew overturned the call in 1 minute, 31 seconds. Hernandez was involved in another overturn in the fourth when Black requested a review. Ross was ruled thrown out by third baseman Pablo Sandoval. In 1:18, the call was overturned and Sandoval was charged with an error. Giants starter Madison Bumgarner (2-3) walked a season-high four, and his four earned runs matched his most of 2014. He didnt pitch into the sixth for the third time in his six starts and lost three straight outings for tthe first time since Aug.dddddddddddd 25-Sept. 5, 2012. The Giants had won seven straight home games against the Padres started by the lefty. "I think its fair to say hes made a few more mistakes than were accustomed to," Bochy said. "A strange night. We just couldnt get it done." Ross, born in Berkeley and raised in Oakland, faced the minimum through three -- helped by double plays in the first and second then two strikeouts in the third. The right-hander pitched eight scoreless innings with nine strikeouts in his April 18 win against San Francisco at Petco Park as San Diego took two of three from its division rival. "Its always nice to come back home and get a win," Ross said. "The defence was great tonight and got me out of a couple jams, and the offence came to play." Alexi Amarista drove in an insurance run in the top of the ninth. Huston Street, San Diegos fourth reliever, then finished for his 10th save in as many tries and 35 of 36 dating to last May. He lowered his ERA to 0.82. NOTES: A moment of silence and a video tribute were held before the game for Hall of Fame Padres broadcaster Jerry Coleman, who died in January at 89. Another moment of silence was held for victims of the ferry disaster in South Korea as the Giants celebrated Korean Heritage Night. ... San Diego OF Seth Smith missed his third straight start as he nurses a strained groin sustained Thursday night against the Nationals. He could return this series. ... Chase Headley, out since April 25 with a strained right calf, is improving and took some swings in the indoor cage. ... Padres INF/OF Tommy Medica was recalled from Triple-A El Paso three days after being optioned and flying from Washington, D.C., to Sacramento. "Thats the Schwarzenegger special, Sacramento to D.C.," Black said of former Gov. Arnold Schwarzenegger. Medica couldnt get off the plane in time Monday morning to avoid a trip to Los Angeles then a second flight back to San Francisco. He took the roster spot of INF Jedd Gyorko, who went on the paternity leave list. ' ' '