Pedro Alvarez singled home the winning run with two outs in the bottom of the ninth inning to give the Pittsburgh Pirates a 2-1 victory over the San Diego Padres on Monday night.