The Rockies trailed 7-4 heading into the bottom of the eighth.
Ian Stewart had three hits -- one a two-run sixth inning homer -- and three RBI. Chris Iannetta had three hits -- one a three-run homer in the eighth -- while Carlos Gonzalez added two hits and one RBI for the Rockies (35-33), who went two games over .500 for the first time this season.
They are 17-5 since Manager Jim Tracy replaced the fired Clint Hurdle May 29.
The winner was closer Huston Street (2-1).
Brandon Moss led Pittsburgh with three hits and two RBI. Andrew McCutchen hit a seventh-inning three-run triple, Nyjer Morgan had four hits and one RBI and Freddy Sanchez drove in a run for the Pirates, losers of four of five.
The losing pitcher was Jesse Chavez (0-3).
Copyright 2009 by United Press International.