The playoff-bound San Francisco Giants blew a six-run lead and then rallied for a 9-8 victory over the San Diego Padres on Thursday night to stay within one game of Pittsburgh for the top spot in the NL wild-card standings.