SAN FRANCISCO— Hunter Pence joked with Giants third base coach Tim Flannery before Tuesday night's game that perhaps he was due for a big hit or two.
Or three. Or four.
Problem was, Michael Cuddyer had two of his own — and they both cleared the fence as the Colorado Rockies rallied for a 9-8 win against San Francisco.
Pence hit a three-run homer in the first inning, an RBI double in the fourth and a tying, two-run single in the eighth against winner Wilton Lopez (3-4). Then Cuddyer came through with his second home run of the game in the top of the ninth.
"Yesterday I felt great and didn't get any hits," Pence said. "I felt terrible before the game and told Flannery maybe I'm due for some hits. It worked out."
Pence's 20th home run was a high drive to left that hit the foul pole and ricocheted into the stands. He has six straight 20-homer seasons.
He also has 21 stolen bases for his first 20-20 season.
"Hard to say," he said when asked about the accomplishment. "My goal at the beginning of the season was to play every day as hard as I can. I am grateful this is part of the process."
Cuddyer couldn't remember ever putting a ball in play against Sergio Romo until Tuesday night. The slugger was 0 for 4 with three strikeouts against Romo.
This time, Cuddyer worked the count and hit a tiebreaking homer leading off the ninth to go with his three-run shot earlier in the game.
"I don't usually sniff Romo," Cuddyer said.
Cuddyer sent a full-count pitch from Romo into the left-center seats for his 20th homer of the season, 10th career multihomer game and second this year. He also connected in Colorado's five-run fifth to spark the comeback.
Pence also drove in six runs on Aug. 12, 2009, at Florida with Houston.
"It's hard not to be a fan of Hunter," teammate Buster Posey said. "He gives 100 percent every day from the time he gets here to the time he leaves. He's the hard-working player I've seen and you're seeing the results."
Romo (4-7) gave up Cuddyer's go-ahead homer, though much of the sellout crowd of 41,171 was already long gone by the late innings. The game ended at 11:17 p.m. after 4 hours, 2 minutes.
Rex Brothers finished for his 16th save in 18 chances to end the longest nine-inning game of the season for each club.
"It's tough to lose a game like this," Giants manager Bruce Bochy said. "You're up 6-0, but the pitching couldn't hold it. Pence tried to carry us. He had quite a night. We just couldn't hold them."
Rockies starter Jorge De La Rosa left early as a precaution with left thumb soreness as well as tender index and middle fingers. He was denied a chance to move into a share of the NL lead for wins with Washington's Jordan Zimmermann, who beat the Mets earlier in the evening.