SAN FRANCISCO -- The San Francisco Giants have raced to the best record in the majors with few contributions from two of their biggest stars. Eddie Mathews Jersey . 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). John Hiller Jersey . Playing in his fourth major league game, Polanco broke a tie in the 13th inning with his first homer, helping Pittsburgh to an 8-6 victory over the Miami Marlins after the Pirates had a ninth-inning meltdown. Germany Schaefer Jersey . - Nikita Jevpalovs scored 6:22 into the second overtime as the Blainville-Boisbriand Armada edged the visiting Rimouski Oceanic 2-1 on Tuesday in Quebec Major Junior Hockey League playoff action. https://www.cheaptigers.com/959z-john-schreiber-jersey-tigers.html . - Golden State Warriors coach Mark Jackson sat on the scorers table at Oracle Arena on Wednesday morning.ERIE, Pa. -- Connor Brown had two goals and an assist as the Erie Otters avoided elimination by defeating the visiting Guelph Storm 5-2 on Tuesday in Ontario Hockey League playoff action. Joel Wigle, Dane Fox and Dylan Strome also scored for the Otters, who trail in the Western Conference final 3-1, while Connor McDavid tacked on two assists. Kerby Rychel and Zack Mitchell supplied the scoring for the Storm, who will host Game 5 on Friday. Devin Williams made 26 saves for Erie. Justin Nichols allowed three goals on 11 shots for Guelph and was relieved by back-up Matthew Mancina, who stopped 31-of-32 shots in 46 minutes of action. Custom Detroit Tigers Jerseys. --- BATTALION 5 GENERALS 3 NORTH BAY, Ont. -- Barclay Goodrow scored twice and added two assists as the Battalion toppled Oshawa to take a 3-0 lead in the Eastern Conference final. Brenden Miller and Mike Amadio each had a goal and an assist for North Bay, which can sweep the series at home on Wednesday. Vincent Praplan secured the victory with an empty-net goal. Michael Dal Colle had a pair of goals for the Generals while Scott Laughton registered a goal and an assist. Jake Smith made 15 saves for the Battalion as Oshawas Daniel Altshuller kicked out 25-of-29 shots in defeat. ' ' '