PHILADELPHIA -- Bruce Bochy has known Jake Peavy since he broke into the big leagues with the Padres 14 years ago, so it wasn't easy to make Tuesday's move. But Bochy said Peavy handled it well when he was told he was being pulled from the rotation.

Matt Moore, acquired Monday, goes into the No. 3 spot and Jeff Samardzija slides over one. Matt Cain, not Peavy, was chosen as the fifth starter. 

"Peavy is going to help us in the bullpen," Bochy said. "I spoke to him and he's all-in. Whatever we need, he's willing to do to help the ballclub. He had a great attitude about it. It's never easy to tell a veteran that we're asking you to make a role change (but) he was great. He was."

On Grateful Dead night at Citizens Bank Park, Peavy said he was "too grateful to be hateful." 

"Am I going to sit around and pout? That's certainly not who I am or what I would ever do," Peavy said. "It's the nature of the business. You do what you're asked to do. There are two ways to look at this, and I choose the positive outlook. I'll do all I can to adapt and be ready when the team needs me."

Peavy and Cain have both had their ups and downs this season. While Peavy righted the ship late in the first half, Cain is coming off a five-inning, no-hit outing. Cain also has dealt with more injuries the past two seasons, and it would be harder to get him loose in a relief role. Peavy has generally been the starter to head down to the bullpen when the Giants are short, and Bochy has come close to using him in relief a couple times already.

"You look at Matt's last couple outings and it's been encouraging," Bochy said. "He really is where he was before he hurt his hamstring. I think (Peavy) is a little better equipped to help in the 'pen as far as getting ready and the pace of getting ready and how long it's going to take. I think it's going to be a little easier for Jake."

Bochy said he may mix and match down the line, but for now Peavy, who has just one career relief appearances, is the new long reliever. Albert Suarez and Matt Reynolds were optioned to Triple-A just before Tuesday's game when Moore and Will Smith are activated.

Peavy said he doesn't need long to warm up, and he expects to be a good reliever. 

"I'm going to do all I can do to be prepared to get in there," Peavy said. "That's obviously the difference. I'm going to be the best one I can be."

Peavy, a free agent after the year, said he believes he's still a Major League caliber starter and he pointed to a hot stretch before the break and a solid night against the tough Red Sox lineup. For now, he'll be in the bullpen, though.

"I love the guys in that room too much not (to embrace it)," he said. "

--- Ehire Adrianza came off the DL after a long stint dealing with a fractured foot. Mac Williamson goes on the DL with a left shoulder strain, and Bochy said it's possible Williamson will need more than 15 days to recover. Williamson was hurt Sunday while making a catch in left field. 

--- Bochy said Eduardo Nunez will likely hit ninth quite a bit, giving the Giants the old second-leadoff-hitter look that they had earlier this season. Conor Gillaspie will also be mixed in at third base now that Matt Duffy has been traded.