SAN FRANCISCO -- The San Francisco Giants are accustomed to playing close games.
"I guess you get used to it," Giants manager Bruce Bochy said. "I mean, that's our way, and it's been that way for a while. It's invaluable experience for these guys to play games like this where every pitch, every play, every at-bat counts. In the long run, the players become better players because they learn to perform under pressure."
Getting the job done in the latest tight game, the Giants received a game-winning single from pinch hitter Hector Sanchez with the bases loaded in the 11th inning, ending a 4-3 win over the Milwaukee Brewers.
"I'm always ready for these kinds of situations to play defense or pinch-hit," Sanchez said through an interpreter. "I was looking for a good pitch to swing at and hit it to the outfield to get the run in. It's the first 'walk-off' of my career, and I'm happy to get the run in to win the ballgame."
Buster Posey singled to lead off the 11th inning, and pinch runner Emmanuel Burriss advanced to second base on a sacrifice bunt by Angel Pagan. Brandon Belt was intentionally walked before Ryan Theriot was unintentionally walked. Sanchez's RBI single followed, pleasing a sellout crowd of 41,796.
Aramis Ramirez drove in two runs for the Brewers with an RBI single and a sacrifice fly.
In the ninth, the Brewers scored the tying run. Corey Hart reached on an error by Giants third baseman Conor Gillaspie. With two outs and two strikes, former Giant Travis Ishikawa doubled to left-center off closer Santiago Casilla to score Hart.
Francisco Rodriguez pitched a perfect ninth inning to force extra innings.
With the loss, the Brewers ended their three-city road trip at 3-6.
"Over the last week and half, it was a very challenging road trip for us as a team," Brewers left fielder Ryan Braun said. "This game's not supposed to be easy, and life isn't easy, and we have no choice but continue to move forward."
Giants starter Matt Cain pitched seven innings, allowing six hits and two runs while striking out 10, but for the third time in six outings, he got no decision.
"This was big for us," Cain said. "We felt we should have won the games against Miami, and we didn't play as good as we wanted to. Friday night, losing to these guys put a bitter taste in our mouths, and we needed to get back on the right track, and I felt like the last two days we did that."
Brewers starter Shawn Marcum went six innings, giving up five hits and three runs. Marcum has not won since his first outing on April 9 at Wrigley Field.
"I like the way Marcum threw the ball today," Brewers manager Ron Roenicke said. "We did a nice job pitching. We're not swinging the bat that well. We've had some opportunities, we're just not getting that two-out hit, and nothing's really going right offensively."
Milwaukee took advantage of a leadoff walk to Nyjer Morgan in the first inning. After Morgan stole second, Rickie Weeks and Braun failed to bring Morgan home. With two outs, Ramirez came through with a bloop single to right field.
The Giants responded in similar fashion. Gregor Blanco walked, and he scored on a double off the wall in right field by Gillaspie. Gillaspie would advance to third on a single by Melky Cabrera, and he scored on a fielder's choice groundout by Pagan to put San Francisco ahead 2-1.
Pagan extended his hitting streak to 20 games with a double to lead off the fourth inning. Pagan scored on a single by Theriot.
"I just found out the other day when I had it at 17 games," Pagan said. "To me, the most important thing is to go out there and compete, get on base for the guys and win ballgames. I just want to go out there and execute for the team. I'm glad we had the victory today, and it happens that I have a 20-game hitting streak, but it's not very important for me right now."
In the sixth, the Brewers got a one-out double to right-center by Weeks. After an infield single from Braun, Weeks scored on a sacrifice fly by Ramirez.
NOTES: Thirteen of the Giants' 28 games have been decided by one run. ... Pagan's 20-game hit streak is the longest active streak in the majors. He and teammate Pablo Sandoval are the first Giants teammates in the San Francisco era to have hit safely in at least 20 games in the same season. ... RF Nate Schierholtz ended an 0-for-9 slump with a pinch single in the seventh inning. ... Sunday was Willie Mays' 81st birthday. In the middle of the second inning, fans sang "Happy Birthday" to the Hall of Famer, who was a guest in the Giants' radio booth. ... The Brewers placed outfielder Carlos Gomez (strained left hamstring) and shortstop Alex Gonzalez (right knee) on the 15-day disabled list. Gonzalez will undergo an MRI exam in Milwaukee on Monday. First baseman Mat Gamel, who has a torn ACL in his right knee, was transferred from the 15-day DL to the 60-day DL. Milwaukee called up infielders Taylor Green and Edwin Maysonet from Triple-A Nashville.