SAN DIEGO -- Rene Rivera tied the game with a home run in the ninth inning, then won it with an RBI single in the 10th inning as the San Diego Padres beat the Milwaukee Brewers 3-2 Wednesday night.
Rivera opened the ninth inning with his ninth homer, a shot off Francisco Rodriguez, to tie the score 2-2.
In the 10th, Seth Smith walked and Yasmani Grandal singled to start the inning against Zach Duke (4-1). Smith was thrown out at third on a fielder's choice and, one out later, Rivera singled to centre to drive in Grandal from second.
Dale Thayer (4-3) pitched the 10th for the victory.
The Brewers took a 2-0 led in the seventh inning. Lyle Overbay opened with a single and Elian Herrera doubled down the first-base line. Right fielder Will Venable fielded the ball cleanly, but he one-hopped his throw to Jedd Gyorko, who made an off-balanced relay that Overbay just beat at home.
Herrera moved to third on the play and scored on passed ball.
Jake Goebbert's RBI single in the bottom of the inning pulled the Padres to 2-1.
Both starters were efficient. Milwaukee's Yovani Gallardo gave up three hits and three walks in six scoreless innings. The Padres' Odrisamer Despaigne gave up two runs and six hits with a career-high nine strikeouts in seven innings.
The Brewers had a chance in the fifth when Overby opened with a ground-rule double and took third on Herrera's single. Gallardo was unsuccessful on a safety squeeze, although he advanced Herrera to second with his bunt.
However, Carlos Gomez struck out for the third time and Jonathan Lucroy flied out to the warning track to end the inning.
The Padres also had runners on bases in the fifth. Grandal singled and reached third when Gyorko singled and Ryan Braun mishandled it in right field. Venable followed with a fly to medium left field, but Grandal held at third.
Rivera then grounded to third and Grandal broke for the plate, where he was easily thrown out by Aramis Ramirez. Alexi Amarista walked, but Despaigne grounded out to end the rally.
Padres: 1B Yonder Alonso will undergo season-ending surgery on Friday to repair a torn tendon in his right forearm. ... SS Everth Cabrera (strained left hamstring) continues to increase his pregame work and could be sent out on a rehabilitation assignment this weekend.
Brewers: RHP Matt Garza (strained left oblique) felt fine after Tuesday's bullpen session and will pitch in a simulated game on Friday. Depending on how that goes, he could join the rotation for the Cubs series which starts on Monday.
Brewers: RHP Wily Peralta (15-8, 3.56 ERA) faces Giants RHP Ryan Vogelsong (7-9, 3.78) when Milwaukee opens a three-game series in San Francisco on Friday. Peralta is 2-0 in three career starts against the Giants.
Padres: RHP Andrew Cashner (2-6, 2.43) goes against Dodgers RHP Dan Haren (11-10, 4.44). Cashner is making his second appearance since coming off the DL with a sore right shoulder.