SAN DIEGO (AP) - David Eckstein singled in the winning run with one out in the 10th inning and the San Diego Padres beat the Arizona Diamondbacks 4-3 on Thursday.

The Padres won for just the fourth time in 17 games.

Eckstein, who entered the game for defensive purposes in the top of the inning, lined a shot just past first baseman Josh Whitesell to bring in Kevin Kouzmanoff.

Kouzmanoff started the winning rally with a one-out double to left-center off Esmerling Vasquez (0-1), his third straight hit. Nick Hundley and Chris Burke, who was with Arizona last year, walked to load the bases and bring up Eckstein.

Cla Meredith (4-0) pitched a perfect 10th for the win.

San Diego loaded the bases with two outs in the eighth but the threat ended when Whitesell made a leaping grab of Brian Giles' line drive.

Arizona's Justin Upton doubled and singled to extend his hitting streak to 14 games.

Right-hander Dan Haren had a hand in the Diamondbacks taking a 2-0 lead in the third. Attempting to sacrifice with Chris Snyder on first, Haren bunted foul and took a called strike before hitting an RBI double down the left-field line. Haren advanced on shortstop Chris Burke's error and scored on Felipe Lopez's sacrifice fly.

San Diego tied it with two in the fifth when four straight batters reached with two outs, including Edgar Gonzalez and Scott Hairston with consecutive RBI singles.

Eric Byrnes hit a bases-loaded sacrifice fly in the sixth to give the Diamondbacks a 3-2 lead before the Padres tied it again when Nick Hundley doubled in Kouzmanoff.

Haren, who had won three straight starts, allowed three runs and eight hits in six innings. His ERA went from 1.47 to 1.84, fourth-best in the majors.

Padres starter Chris Young also went six innings, allowing three runs and five hits while striking out six and walking four.

Notes:@ Arizona's Mark Reynolds struck out four times. ... Padres manager Bud Black said he's encouraged about OF Cliff Floyd, who's working his way back from shoulder and knee injuries. Black said Floyd, on the disabled list since opening day, will accompany the Padres on their six-game trip to Houston and Cincinnati and continue to rehab and work on his hitting. Floyd will DH and pinch-hit in minor league games if he continues to make progress.

Copyright 2009 The Associated Press.