"He's doing great," Bochy said of Sandoval, who visited the Giants' clubhouse after his surgery.
"There are things God puts in your journey of life," he said. "You can't fool around with your health."
Sandoval, who initially felt discomfort last Sunday but didn't leave the lineup until Wednesday, is expected to be sidelined for four to six weeks. Conor Gillaspie replaced Sandoval at third base for the second straight day Friday, when the Giants opened a three-game series against the Milwaukee Brewers.