MILWAUKEE (AP) -- Buster Posey homered off the Miller Park scoreboard and had three RBIs as the San Francisco Giants beat the Milwaukee Brewers 6-4 on Tuesday night.
The Giants won for the eighth time in 11 games despite being outhit 11-5.
The Brewers went 2-for-13 with runners in scoring position off San Francisco starter Matt Cain (4-2) and have lost six of seven.
Cain pitched out of trouble, allowing four runs on 11 hits without walking a batter and striking out eight in seven innings. Santiago Casilla pitched the ninth for his 11th save.
Milwaukee's Shaun Marcum (2-3) gave up six runs on five hits and two walks with five strikeouts in six innings. It was the first time this season the right-hander gave up more than three earned runs.
(Copyright 2012 by The Associated Press. All Rights Reserved.)