At some point, Giants manager Bruce Bochy plans to give Pablo Sandoval a day off. It's just that Sandoval's bat, coupled with a slew of injuries in San Francisco's infield, is making it increasingly difficult to rest the portly third baseman.

Sandoval homered and had five RBIs to back an uneven start by Madison Bumgarner as the Giants beat the St. Louis Cardinals 13-8 on Sunday.

"I come here every day to play and help the team to win," Sandoval said. "That's my main goal. I know I've been playing a lot but I know what my role is. I'm going to be ready for everything. I feel good."

Andrew McCutchen and Alen Hanson each added three hits. Brandon Belt and Gorkys Hernandez had two apiece to help the Giants split the four-game series.

Bumgarner (2-3) earned his second win this season despite an erratic outing. Making his seventh start after missing the first two months with a broken left pinkie, Bumgarner allowed four runs and seven hits in 5 1/3 innings. He walked two and hit a batter with a pitch.

"Nothing really was working for me," Bumgarner said. "Fortunately our offense did a tremendous job getting us back in the game and getting a big enough lead where they couldn't come back."

The Giants bailed out their ace with a pair of three-run innings and a five-run sixth while setting a season high for scoring.

After Jose Martinez's RBI single off Bumgarner in the fifth put St. Louis ahead 4-3, San Francisco rallied against reliever John Brebbia.

Belt doubled and went to third on All-Star Brandon Crawford's single. Sandoval followed with his eighth home run, a three-run drive that bounced into the waters of McCovey Cove.

"(Brebbia) left it there right in the happy zone," Sandoval said.

Sandoval added a two-run single in the sixth. The five RBIs were one shy of his career high.

"Pablo, he's a different guy," Bochy said. "You look at him, you think he's going to need his rest but he brings it every day. I would like to find a way to get him a day before the (All-Star) break. Between playing first and third base, he's out there as much as anybody."

Brebbia (1-3) also took the loss against the Giants on Friday.

"I threw him a pitch in the strike zone with a 1-2 count, which is never any good," Brebbia said. "When that happens with a guy like that, there's going to be some damage."

Matt Carpenter hit his 17th home run and Yairo Munoz also went deep for St. Louis.

Cardinals starter Jack Flaherty gave up three runs, two earned, in 2 1/3 innings.

GIANTS TRADE

San Francisco traded OF Austin Jackson, RHP Cory Gearrin and a minor league player to the Texas Rangers for a player to be named or cash.

MIXED DEBUTS

Center fielder Steven Duggar and right-hander Ray Black made their major league debuts for the Giants after getting called up earlier in the day. Duggar went 2 for 6 with a double, and Black allowed three runs and retired one batter.

TRAINER'S ROOM

Cardinals: CF Tommy Pham left in the seventh with a bone bruise after fouling a ball off his left foot. X-rays were negative. ... C Yadier Molina sat out for the second consecutive day because of soreness in his right shoulder. ... OF Dexter Fowler was back on the bench, one day after making his first start since June 27.

Giants: Hernandez exited with a tight calf after hitting a two-run single in the sixth. Derek Holland, who has been pitching out of the bullpen lately, was brought in as a pinch-runner. Hernandez is likely to miss at least one game, Bochy said.

UP NEXT

Cardinals: All-Star RHP Miles Mikolas (9-3, 2.63 ERA) starts Tuesday in Chicago against the White Sox. Mikolas matched his career high for walks in his last outing but is second in the NL in fewest free passes per nine innings (1.4) among qualifying pitchers.

Giants: LHP Andrew Suarez (3-5, 3.92) faces the Cubs on Monday night at home. Suarez took the loss in his last start despite allowing only one run over seven innings.

More From KHMO-AM 1070, News-Talk-Sports