SAN DIEGO -- For a team going nowhere, it sure was an eventful night for the San Diego Padres.
Gonzalez's big brother, Edgar, got in on the action with a pinch-hit, two-run homer off Kevin Correia in the eighth. It was his sixth of the season.
"It was a total team effort," manager Bud Black said.
Loaded with players who began the season in the minors, the Padres (57-90) poked a half-game ahead of the idle Washington Nationals (56-90) in the race to avoid finishing with the worst record in the majors.
Adrian Gonzalez had only one thought about the numbers he's putting up.
"We're out of the playoffs. As cheesy as it sounds, I don't start the season telling myself I want to get 30 and 100," he said. "I start the season telling myself I want to help the team get to the playoffs.
"It is nice. I'm not going to lie to you. It is a good accomplishment, especially at this ballpark," he said, referring to spacious Petco Park.
He tied his career high with four RBIs, which he'd done nine times previously, including three times this season. It was the sixth time he's homered twice in a game, and the second time this season.
The Gonzalezes are the first brothers to homer in the same game for the Padres.
"That was great," Adrian Gonzalez said. "It's a special feeling and I'm just glad it happened."
His homers were estimated at 402 and 367 feet. Edgar Gonzalez's shot was estimated at 393 feet.
"I still think mine went farther," Edgar Gonzalez joked. "Tell him that, too."
Edgar Gonzalez said he was proud of his younger brother.
"That's not an easy accomplishment -- 29-99 looks way different than 30, and now 31, and 100-something RBIs," he said. "As bad as this year has gone for the team and for him, up and down and everything, for him to be able to accomplish 31 and 100-something already, is big. That tells you a little bit about it."
Adrian Gonzalez gave the lineup card to Macias. The Padres also retrieved Macias' home run ball from a fan who traded it for one of Brian Giles' bats.
Macias homered to right on the first pitch he saw from Cain with one out in the third to give San Diego a 6-1 lead.
"First hit, first homer, get them both out of the way at the same time, it was great," Macias said. "You see other guys, their first at-bats, you're watching them on TV in the minor leagues, and you're wondering what your first at-bat is going to be like, your first hit. To get a home run tops it off.
"It was a good start, I guess. I had a blast today."
Macias is the first Padres player to homer for his first hit since Jason Bay on May 23, 2003, at Arizona, according to the Elias Sports Bureau. On Monday night, Houston's Mark Saccomanno homered on the first pitch he saw in the big leagues.
Josh Geer (2-0) allowed nine hits and two runs in seven innings in his third big league start.
Cain (8-12) lasted only 3 1/3 innings, allowing six runs and nine hits.
"It was very frustrating," Cain said. "There are a lot of things to be said. I'm embarrassed by the way I pitched. I'm embarrassed for the team. I feel like I let them down. With the things we've been doing the past week, I didn't come out here and perform."
The Giants had won five straight, including sweeping the second-place Arizona Diamondbacks.
Not surprisingly, Giants manager Bruce Bochy thinks Tim Lincecum deserves the NL Cy Young Award. "If you voted right now he'd be the Cy Young winner," Bochy said. "He's got the numbers." Lincecum, who's 16-3 with an NL-best 2.54 ERA, is scheduled to start for the Giants on Saturday night against Chris Young, who came within four outs of a perfect game on Sunday at Milwaukee. ... Padres ace Jake Peavy, the unanimous NL Cy Young Award winner last year, is scheduled to start Friday night against Jonathan Sanchez. Peavy's 2.63 ERA is second-best in the NL, behind Lincecum. Keeping the Cy Young theme going one more day, Barry Zito, the 2002 AL winner with the Oakland A's, is scheduled to start Sunday against San Diego's Cha Seung Baek. ... The last brothers to homer in the same game were Bengie and Jose Molina the Angels on July 31, 2005, at the New York Yankees, according to Elias.