SAN FRANCISCO — Brandon McCarthy is in the mix for bullpen spot for the NL West champion Dodgers in the playoffs — even after his awful outing in a rare relief appearance.

He would prefer to erase Friday’s fiasco from the memory of manager Dave Roberts and everyone else involved in the decision.

Taking over for Rich Hill, McCarthy surrendered six runs and five hits, failing to record an out in the Giants’ big sixth inning as the Dodgers lost 9-3.

Roberts appreciated McCarthy’s willingness to switch up his routine.

“I do feel for Brandon. I think ideally for him he would have had another start coming off his other start,” Roberts said. “But the situation where we’re at and the guys that we really need to get ready for the postseason, for him to take the ball in that capacity out of the pen says a lot about his character.”

Hill allowed two runs and six hits in five innings. He pitched for the first time since Sept. 20, also against the Giants, after the Dodgers skipped his last turn as a precaution because he has dealt with blisters on his pitching hand this season.

Roberts planned to monitor Hill and keep his outing short given he will draw Game 2 of the NL Division Series next week.

Pinch-hitter Conor Gillaspie started things in the sixth with a go-ahead two-run double, and pinch-hitter Denard Span’s RBI single chased McCarthy (2-3) before he retired a batter. He had a walk followed by five straight hits.

“They just hit everything I threw,” McCarthy said. “I’m angry but other than that it was so fast and so violent that I don’t really know what kind of emotions to take from it.”

Madison Bumgarner lined a key two-run double that inning and emphatically pumped his arms while yelling in celebration at second base, and the Giants maintained their slim lead for the second NL wild card.

Brandon Belt added a three-run homer in the seven-run inning and Bumgarner (15-9) beat the Dodgers for the first time in seven starts since May 21, 2015. It was win No. 100 of his career.

“That’s a special thing getting the opportunity to do that,” he said. “There’s a lot more at stake.”

The Mets stayed one game ahead of the Giants for the top wild card, while San Francisco remained a game up on St. Louis for the second spot.

Angel Pagan might have made the play of the night — without his glove or bat. He body-slammed a male fan in the left field grass during the fourth inning after he ran onto the field offering white paper flowers. Pagan realized he had to do something to slow the man down, unsure whether there was any motive to harm a player.

“I was just trying to protect myself and protect my teammates. The guy was getting closed to my teammates,” Pagan said. “I guess it was very explosive. Us athletes, we’ve got that kind of strength. … It worked.”

Buster Posey earlier shoved the man to the ground. Pagan, who held the man down until security reached him, received a roaring ovation from the sellout crowd when the half-inning ended and tipped his cap.

“That’s just weird. Any time somebody comes on the field you’re a little bit uneasy,” Posey said. “He probably should’ve been charged with a flop.”

Bumgarner stopped a four-start winless stretch, allowing three runs and eight hits in 7 1/3 innings. He had been 0-4 in his previous six starts against Los Angeles, 0-2 this season.

Kike Hernandez hit a go-ahead single off Bumgarner in the sixth, but the Giants answered big with the bats.

Yasiel Puig’s RBI double to left in the first scored Corey Seager, who made a headfirst slide into home to narrowly beat Pagan’s throw. Carlos Ruiz followed with an RBI single for a 2-0 lead.

The Giants got it right back in the bottom half, on Posey’s RBI single and a sacrifice fly by Pagan.

Bumgarner and Puig got into it on Sept. 19 at Dodger Stadium, causing both benches to clear. Puig was booed during pregame introductions, though neither manager expected any further issue.

The Giants are 14-4 at home against the Dodgers since the start of the 2015 season.


Dodgers: Roberts said the Dodgers are considering four starters for the NLDS, giving themselves insurance if Clayton Kershaw or Hill were to have any health issues. “It’s a possibility,” Roberts said. “A lot depends on Game 1 and how it plays out. It doesn’t make any sense to forecast what we’re going to do.”


Dodgers: Kershaw (12-3, 1.65 ERA) is 1-1 with a 0.86 ERA in four starts since coming off the disabled list Sept. 9. He is 18-7 with a 1.58 ERA in 34 career starts against the Giants.

Giants: LHP Ty Blach was named Saturday’s starter postgame.