SAN FRANCISCO (AP) - Madison Bumgarner pitched nine superb innings but had nothing to show for it aside from an ovation of sheer appreciation, and the San Francisco Giants rallied past the New York Mets on Donovan Solano's 16th-inning RBI single for a 3-2 win Thursday night.
The Giants finished their season-best sixth straight victory hours after Bumgarner wrapped up what might have been his final start with San Francisco.
The Mets went ahead on rookie Pete Alonso's 32nd home run leading off the 16th before San Francisco made it 2-2 on Brandon Crawford's double in the bottom half. Solano delivered against Chris Mazza (0-1) for his second career walkoff hit and RBI. New York had its four-game winning streak snapped.
Williams Jerez (1-0) worked two innings for his first career win.
The Mets followed a season-best 14 runs and 17 hits in Wednesday's 14-4 road win against the Twins with tough loss.
Bumgarner and Noah Syndergaard dueled to no-decisions, neither willing to give this one away.
The Giants relievers did their part, too.
Tony Watson worked a 1-2-3 12th after Reyes Moronta's perfect 11th. Will Smith escaped a bases-loaded jam in the 10th with a strikeout of Jeff McNeil.
Bumgarner allowed five hits and walked one in what could be the countdown on his decorated tenure for the Giants if they decide to trade him before this month's deadline.
The lefty ace allowed McNeil's leadoff single in the ninth then was initially credited with getting J.D. Davis to ground into a double play, but the Mets challenged the call and it was overturned on replay after 48 seconds.
MadBum still got out of it and received a rousing ovation as he walked off the mound. He threw just 94 pitches.
Alonso's groundout in the first put the Mets ahead. San Francisco tied it on Kevin Pillar's sacrifice fly in the fourth. Both teams had other chances, but each starter consistently worked out of jams.
Syndergaard and Bumgarner had previously matched up June 4 at Citi Field with neither earning a decision but also in the 2016 NL wild card game during which Bumgarner tossed a four-hitter in the 3-0 win and Syndergaard pitched seven shutout innings.
Bumgarner, the 2014 World Series MVP, owns a 7-0 record with a 1.63 ERA lifetime against the Mets including that wild-card gem.
"What an incredible performance that Bum gave us that night," manager Bruce Bochy said.
Bumgarner's 21st start of the season matched his total from an injury-shortened 2018 season after he only made 17 starts in 2017 when he also was hurt.
Shortstop Brandon Crawford's reliable, sparkling defense backed Bumgarner and the bullpen all night.
Syndergaard, who has won his last four decisions, allowed one run on six hits over seven innings, struck out eight and walked one.
The Giants returned home from a four-game sweep at Colorado having won eight of nine overall.
Buster Posey recorded his first career four-strikeout game, going 1 for 7 with a single in the 15th.
Fans took to heart the request for a "14th-inning stretch" requested by public address announcer Renel Brooks-Moon.
Close to two dozen pigeons gathered in left field during the first inning unfazed by any balls off the bat. Members of the grounds crew believe the birds - who flew away after about 10 minutes - overate some fresh, high-quality grass seed.
Mets: RHP Zack Wheeler, sidelined by shoulder fatigue, was scheduled to play catch for a second straight day. "Playing catch and continuing to play catch will dictate a lot what goes on next, so we'll just kind of feel him out day to day and see where we're at," manager Mickey Callaway said. He named RHP Walker Lockett his Saturday starter in Wheeler's place.
Giants: Bochy checked with Pablo Sandoval and was prepared to give him a break but the third baseman reported he was fine to play after seven straight games. Sandoval received the Heart & Hustle award in a pregame ceremony on the field.
RHP Jacob deGrom (5-7, 3.21 ERA) pitches Friday night for New York opposite Giants RHP Tyler Beede (3-3, 5.44) in his 14th career appearance and with San Francisco having gone 7-2 in his outings and winning five of his last six. Beede pinch hit in the 14th Thursday.
(Copyright 2019 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.)