The Padres rallied for two in the ninth Sunday, but reliever Bryan Corey allowed a walk-off grand slam to Aaron Miles in a 9-5 loss to the Cardinals.