PITTSBURGH (AP) Jordy Mercer singled home Gregory Polanco from second base with one out in the 11th inning to lift the Pittsburgh Pirates to a 6-5 win over the St. Louis Cardinals on Tuesday night.

Polanco, who agreed to a $35 million, five-year contract earlier in the day, drew a walk from Seth Maness (0-1) with one out and made it to second on Josh Harrison's infield single. Mercer slapped a single to right for his fourth career game-ending hit.

Kyle Lobstein (1-0) pitched two innings of relief for the win. Andrew McCutchen had three hits for Pittsburgh. Mercer, Harrison and David Friese had two hits each.

More from FoxSports

Jedd Gyorko hit his first home run for St. Louis. Stephen Piscotty went 2 for 4 with two RBIs.

Cardinals relievers retired 18 straight batters before Polanco's walk started the winning rally.