MILWAUKEE -- Travis Snider led off the ninth inning with a pinch-hit solo home run to help the Pittsburgh Pirates beat the Brewers 4-3 Tuesday night at Miller Park.
Snider's home run capped off a back-and-forth affair.
Tied 2-2 in the top of the eighth and facing Brewers right-hander Brandon Kintzler, Andrew McCutchen drew a one-out walk and moved to second on Justin Morneau's single to left. Marlon Byrd worked the count full before ripping a fastball down the left-field line for his 30th double of the season, giving the Pirates a 3-2 lead.
Milwaukee came back again in the bottom of the inning.
Pinch-hitter Caleb Gindl drew a leadoff walk off right-hander Vin Mazzaro (7-2) and moved to second on Norichika Aoki's ground out to first. Jean Segura tied the game with a base hit up the middle, but Jonathan Lucroy hit into an inning-ending double play.
After giving up the home run to Snider, Brewers closer Jim Henderson (3-5) retired the side. But in the bottom of the ninth, Milwaukee couldn't take advantage of Scooter Gennett's two-out double off Mark Melancon, who earned his 11th save of the season.
Brewers starter Yovani Gallardo had another good outing, allowing two runs on five hits and three walks with six strikeouts over seven innings. In four starts since returning from the disabled list on Aug. 16, Gallardo is 2-0 with a 1.36 ERA.
Gerrit Cole went six innings for Pittsburgh and allowed two runs on five hits with a walk and five strikeouts.
The victory was the 81st of the season for the Pirates, who have not finished .500 or better since going 96-66 in 1992. Pittsburgh also added a half-game to its lead in the NL Central after the Cardinals lost to Cincinnati 1-0 and fell two games back in the divisional race.
McCutchen gave the Pirates an early lead with a first-inning home run off Gallardo. Gallardo walked the next two batters before getting Russell Martin to ground into a fielder's choice to avoid further damage.
Milwaukee took the lead in the bottom of the inning on Lucroy's two-run single, but the Pirates tied the game in the third on a RBI single by Marlon Byrd.
NOTES: Milwaukee added three players from Triple-A Nashville on Tuesday. RHP Johnny Hellweg and 1B/OF Sean Halton returned to the Brewers, while RHP Jimmy Nelson is in the majors for the first time. Hellweg will start Saturday, and Nelson will work out of the bullpen, according to manager Ron Roenicke. ... Pittsburgh recalled five players from the minor leagues Tuesday, including RHP Jason Grilli. He will throw in a few "non-leverage outings," according to manager Clint Hurdle, before moving back into the closer's role he held before suffering an injury to his right flexor tendon on July 22. ... Brewers center fielder Carlos Gomez returned to Milwaukee's starting lineup Tuesday. His was given Monday off to rest a sore right knee. ... McCutchen's first-inning home run was the 100th of his career.