SAN DIEGO (AP) - Gerardo Parra hit a tiebreaking single in a two-run third inning, Pat Valaika and Charlie Blackmon hit consecutive home runs in the ninth and the Colorado Rockies beat the San Diego Padres 8-4 Sunday to open a two-game lead over Milwaukee for the second NL wild card heading into the final week of the regular season.

St. Louis trails the Rockies by 2½ games. Seeking its first postseason appearance since 2009, Colorado opens a six-game homestand Monday, playing Miami and then the Los Angeles Dodgers. At 41-40, the Rockies tied their record for road wins, set in 2009.

German Marquez (11-7) allowed two runs, five hits and three walks in five innings. He had been 0-2 in six starts since beating Milwaukee on Aug. 18. Colorado starters have a 2.52 ERA in their last nine games.

(Copyright 2017 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.)