The Pirates have acquired Wandy Rodriguez from the Astros.

The Astros will pay some of the $30 million remaining on Rodriguez's contract, and the surprising Pirates will get help in their bid to make the playoffs for the first time since 1992. Minor leaguer outfielder Robbie Grossman and pitchers Rudy Owens and Colton Cain will go to the rebuilding Astros.

Rodriguez is 7-9 with a 3.79 ERA in 21 starts this year for Houston. The surprising Pirates have had a strong rotation, but have also had some concern that it would hold up during a pennant race.