DENVER (AP) Jordy Mercer hit a tiebreaking RBI double in the 12th inning, and the Pittsburgh Pirates continued their mastery of the Colorado Rockies with a 9-8 marathon win Wednesday night.

Kyle Lobstein (2-0) pitched three scoreless innings and Mark Melancon pitched the bottom of the 12th for his fifth save for Pittsburgh, which has won eight straight in Denver.

The Pirates last lost at Coors Field on July 27, 2014.

More from FoxSports

Trevor Story and Nolan Arenado each hit their ninth homers of the season as part of Colorado's four-homer night. Mark Reynolds and Gerardo Parra also went deep for the Rockies, who have lost five straight.

Gregory Polanco homered in the seventh inning and drew a walk off Carlos Estevez (0-1) before Mercer's double.