SAN FRANCISCO -- Wil Myers hit a three-run homer in the top of the 12th inning to send the San Diego Padres past the San Francisco Giants 5-2 on Sunday.
Myers' seventh home run and second in two games came on a 1-0 fastball from reliever George Kontos (0-2). Cory Spangenberg singled against Kontos leading off the inning, and Erick Aybar singled two batters later.
Sanchez turned on a 1-1 cut fastball over the heart of the plate for his first home run of the season and third career pinch-hit homer.
It was Melancon's second blown save in seven chances.
Ryan Buchter (2-1) pitched two shutout innings for the Padres. Jose Torres worked a scoreless 12th for his first save.
Melancon's flop followed a full meltdown by the Giants' bullpen Saturday, when the Padres tagged San Francisco relievers for 11 runs in three innings of a 12-4 win that included Myers' three-run homer.
Giants starter Ty Blach pitched seven innings of three-hit ball, retiring 10 of his last 11 batters in his second start for San Francisco since taking injured ace Madison Bumgarner's spot in the rotation. Bumgarner is expected to miss three months with a separated left (pitching) shoulder he sustained in a dirt-bike crash.
The Giants, who were hitting a league-worst .217 against lefties going into Sunday, took a 2-0 lead against southpaw Clayton Richard, who pitched 5 1/3 innings of six-hit ball.
The Padres have won 12 of 16 games against the Giants dating to last season.
San Francisco (9-17) has the National League's worst record and is 39-59 since going into last year's All-Star break 24 games over .500 with the best record in the majors.
Padres: RHP Jarred Cosart, on the disabled list with a hamstring injury, tentatively plans to pitch for Class A Lake Elsinore on a rehab assignment Tuesday, manager Andy Green said. Cosart will throw three innings or about 45-50 pitches.
Giants: RHP Neil Ramirez was designated for assignment and the Giants called up RHP Bryan Morris from Triple-A Sacramento. . CF Denard Span, on the disabled list with a right shoulder injury, tentatively plans to take batting practice in Los Angeles on Monday.
Padres: After an off day, RHP Trevor Cahill (1-2, 4.50 ERA) will pitch the home series opener against Colorado on Tuesday. Cahill is 5-6 with a 4.44 ERA in his career against the Rockies.
Giants: RHP Johnny Cueto (3-1, 5.10) starts the series opener against the Dodgers in Los Angeles on Monday. The two-time All-Star gave up three runs in six innings vs. the Dodgers last week and was 3-1 with a 2.67 ERA against them last season.
The Giants designated right-handed reliever Neil Ramirez Sunday and purchased the contract of right-handed reliever Bryan Morris from Triple-A in a corresponding move, the team announced.
Ramirez appeared in nine games for the Giants this season. In 10.1 innings pitched, he went 0-0 with a 13.06 ERA.
Morris has spent time with both the San Jose Giants and Sacramento River Cats this season. Between the two levels, Morris is 1-0 with 0.00 ERA in five games.
The 30-year-old fractured his right foot in spring training during a live batting practice drill. Over five years in the majors, Morris is 18-12 with a 2.80 ERA.
Neil Ramirez designated for assignment. Right-hander Bryan Morris called up from Triple-A.— Alex Pavlovic (@PavlovicNBCS) April 30, 2017