SAN FRANCISCO -- Jonathan Sanchez had already iced his arm and still had a long wait on the clubhouse couch for Brian Wilson to finally finish off the Red Sox and secure his win.
It took 42 pitches, and Wilson faced 10 batters to record four outs for another hard-earned save.
"I know he's going to get the out," Sanchez said of Wilson. "He always makes us sweat a little bit."
Juan Uribe homered, Sanchez won his second consecutive decision, and the San Francisco Giants rallied from an early three-run deficit before holding on through Wilson's struggles to beat the Boston Red Sox 5-4 on Friday night.
Sanchez (6-5) appeared to be in for a tough night after he allowed Kevin Youkilis' three-run homer in the first inning, but he settled down and contributed an RBI infield single as San Francisco got three runs back in the second. Buster Posey had an RBI single that inning among his three hits.
The Red Sox lost Dustin Pedroia in the third after he fouled a ball off his left foot. The second baseman was examined by a trainer, but finished the plate appearance to draw a walk from Sanchez. Pedroia was then replaced by pinch-runner Mike Cameron.
X-rays on Pedroia's foot were negative, but he had a hard time putting weight on it and was scheduled for more tests Saturday.
"I'm sore. I'll get checked out and make sure we get to the bottom of everything," Pedroia said. "It was pretty disappointing. I've never hit a ball there before. It was the inside of my foot. I usually hit my shin and not my foot. It just hurt. I told Tito [manager Terry Francona] to just let me finish the at-bat and go from there."
A chilly, misty summer night still brought out a sellout crowd of 41,182 for a rare Red Sox visit.
Losing Pedroia was an especially tough blow considering he was on a roll after going 5 for 5 with a career-high three home runs Thursday night against Colorado, including a go-ahead, two-run drive in the 10th.
Tim Wakefield (2-6) was solid but didn't get enough support from his weary teammates. The Red Sox arrived in the Bay Area at 4 a.m. following a 13-11, 10-inning win at Colorado.
Boston had the bases loaded in the seventh but came up empty-handed. Santiago Casilla struck out Victor Martinez to escape the jam, then recorded two outs in the eighth before Wilson came in to finish it for his 21st save in 23 chances -- but he made things interesting as usual.
After allowing a two-out single to Darnell McDonald, David Ortiz stepped in to pinch hit -- with Big Papi drawing a mixture of boos and cheers. He drew a five-pitch walk then Wilson fanned Marco Scutaro on a called third strike.
In the ninth, Wilson gave up a two-out triple to Youkilis and an RBI single to Martinez. Adrian Beltre singled before Bill Hall walked to load the bases. McDonald grounded out to end it.
"Everybody knows Wilson's a good pitcher," Uribe said. "I'm not nervous when he's on the mound. I know he can do it."
Uribe hit a solo shot in the third and the Giants scored what wound up a key insurance run on Freddy Sanchez's sacrifice fly in the eighth.
The teams met for the first time since Boston swept a three-game series at Fenway Park in 2007, and this is the Red Sox second trip to the Giants' 11-year-old ballpark. San Francisco took two of three in that 2004 matchup.
Winning the opener this time provides a boost for the Giants on the heels of their 2-4 road trip to Toronto and Houston. They are four games into a stretch of 20 consecutive without a day off leading up to the All-Star break.
Jonathan Sanchez labored through 5 1/3 innings with six strikeouts and five walks, but the lefty bounced back from his shortest outing of the year, 2 2/3 innings last Sunday at Toronto. Sanchez is 5-2 in eight starts at AT&T Park, allowing three or fewer runs in each of those games.
Wakefield has one victory in his last six starts and is winless in three in a row.
He allowed an RBI bunt single to Jonathan Sanchez that drove in a run. Wakefield cost himself another run on the play when he fielded the bunt and wildly flicked it past Youkilis at first for an error that brought Aaron Rowand home for a 3-3 game.
"We couldn't squeeze across a big run," Francona said. "That was a great play on that bunt by Sanchez. Instead of just eating it, Wake tried to finish the play and guys were running all over the place."
The Giants improved to 7-0 while wearing their "Orange Friday" home jerseys. ... San Francisco will retire the No. 20 worn by Hall of Famer Monte Irvin during a pregame ceremony Saturday. Irvin became the first black player in Giants history when he signed with the club on July 8, 1949. ... Top Giants pitching prospect Madison Bumgarner was scratched from his outing for Triple-A Fresno at Portland and will be called up to start Saturday's game. ... The Red Sox fell to 11-5 in interleague play.