The Pirates’ only hit was by Ronny Cedeno —and it nearly wasn’t one. Janish managed to deflect Cedeno’s one-out grounder into left field, barely missing making the play.

Chris Heisey backed up Cueto’s superbly pitched game with his first three major league hits, including a pair of singles and a two-run homer in the eighth against Jeff Karstens.

Cueto (2-1) lasted as long as eight innings only once in his previous 67 major league starts, a 3-2 victory at Pittsburgh on May 3, 2009.

Charlie Morton (1-6) gave up three runs and seven hits in six innings for the Pirates.

Dodgers 13 Diamondbacks 3: In Phoenix, Russell Martinhit a three-run homer, Ronnie Belliard drove in three runs and Los Angeles beat slumping Arizona.

James Loney finished with four hits and two RBIs for the Dodgers, who had six players collect at least two hits. Jamey Carroll also drove in two runs.

John Ely (1-1) allowed two runs and six hits in six-plus innings to pick up his first major league win.

The Diamondbacks have lost five straight games. Dan Haren (4-2) matched his season high with 10 strikeouts but also gave up 10 hits and four runs in 6 1-3 innings.

Kelly Johnson drove in two runs and Chris Young also had an RBI for Arizona.

Padres 3 Giants 2: In San Francisco, Barry Zito’s career-best start for San Francisco ended when he allowed David Eckstein’stwo-run single and walked a season-high seven batters in the Giants’ loss to San Diego.

Ryan Webb (1-1) went 1 1-3 innings to earn the win for the Padres, who extended their lead over the Giants in the NL West to 1 1/2 games.

Yorvit Torrealba also drove in a run for San Diego, which is without two key pitchers for unforeseen circumstances: starter Kevin Correia following the death of his younger brother in a hiking accident Saturday, and Tim Stauffer after he underwent an emergency appendectomy Tuesday morning.

Zito (5-1) allowed three runs and six hits in five innings.

Braves 11 Brewers 3: In Milwaukee, Tim Hudson kept pitching his way out of trouble and came inches shy of hitting a home run himself, leading Atlanta to the victory.

Troy Glaus went deep for the second straight night for the Braves, who will go for a three-game sweep of the Brewers on Wednesday afternoon.

Atlanta pounded out a season-high 16 hits in yet another demoralizing Miller Park loss for the Brewers, who slipped to a major league-worst 4-10 at home. Alcides Escobar had two hits and an RBI for Milwaukee, snapping an 0-for-17 skid.

Hudson (3-1) allowed a run and six hits in six innings, tying a career high with six walks. He nearly homered in the fifth, bouncing a ball off the top of the wall in left for a double.

Milwaukee’s Dave Bush (1-3) gave up three runs and seven hits in six innings.

Mets 8 Nationals 6: In New York, pinch-hitter Chris Carter, just called up from the minors, delivered a tiebreaking double in his first at-bat for the Mets and New York scored six runs in the eighth inning.

Jason Bayand David Wright led the charge, lifting New York out of its recent offensive doldrums with three hits apiece. Four relievers combined for 4 2-3 scoreless innings as the Mets climbed out of a 6-1 hole following a poor start by Jonathon Niese.

Raul Valdes (1-0) worked the eighth for his first major league win and Francisco Rodriguez got three quick outs for his fifth save.

Rookie first baseman Ike Davis turned in a spectacular catch of a game-ending foulout, tumbling into the New York dugout to make a dangerous grab for the second time in five days.

Marlins 3 Cubs 2: In Chicago, Ricky Nolasco pitched seven sharp innings, and Cody Ross and Gaby Sanchez homered for Florida.

Nolasco (3-2), a former Cubs farmhand, allowed one run and five hits. Leo Nunez pitched a perfect ninth for his seventh save in nine opportunities.

Chicago lost for the seventh time in eight games and tied a season high with its fourth straight loss.

Cubs starter Randy Wells (3-2) pitched eight strong innings, allowing three runs and four hits. He struck out eight and walked one.

Highly touted Cubs shortstop Starlin Castro, who was called up Friday, committed his fourth error in two days and fifth of the season on pinch-hitter Wes Helm’s grounder in the eighth inning.

Astros 6 Cardinals 3: In St. Louis, Brett Myers worked six strong innings and pinch-hitters Cory Sullivan and Humberto Quintero had consecutive RBI singles in Houston’s four-run seventh.

St. Louis starter Brad Penny(3-3) allowed four hits in seven innings with all four runs unearned after shortstop Brendan Ryan bounced a throw to first for an error on Carlos Lee’sone-out grounder.

Ryan Ludwickhad three hits and an RBI for the Cardinals.

Myers (2-2) allowed two runs and eight hits in a rematch from April 14 in St. Louis against Penny, a 2-1 victory for St. Louis.

Lance Berkman and Hunter Pence homered for Houston. Matt Lindstrom pitched the ninth finished for his seventh save in seven chances.