Yasiel Puig's two-run single with the bases loaded keyed a four-run 17th inning as the Dodgers avoided a series sweep with a 9-5 marathon win over the Padres on Sunday.