PITTSBURGH: Pedro Alvarez hit a tiebreaking single in the eighth inning as the Pittsburgh Pirates beat the St. Louis Cardinals 5-3 on Sunday to take a 2-1 lead in best-of-five NL division series.

Alvarez pulled a grounder into right field that scored pinch-runner Josh Harrison from second base. Russell Martin followed with a sharp RBI single against reliever Kevin Siegrist, who took over after Carlos Martinez (0-1) faltered.

The go-ahead single was the latest big hit by Alvarez. He homered in the first two games against St. Louis and is 4 for 10 with four RBIs in the series.

Alvarez also kept the Pirates' famous flag flying high in October. "Raise the Jolly Roger!" is the rallying cry for this wild-card team, now one victory from its first postseason series win since Willie Stargell, Dave Parker and the "We Are Family" gang won it all in 1979.

"We're continuing to surprise a lot of people, I believe. We're continuing to show people that we're not done, that we're not just happy to be in the postseason," star center fielder Andrew McCutchen said. "We're fighting to win a World Series."

Heady territory for a club that had endured a record 20 consecutive years of losing coming into this season.

Mark Melancon (1-0) picked up the win despite allowing Carlos Beltran's tying home run in the top of the eighth. Jason Grilli worked the ninth for a save.

Charlie Morton is set to start for Pittsburgh in Game 4 on Monday against rookie Michael Wacha.

Beltran finished 2 for 3 with three RBIs. His 16th playoff home run moved him past Babe Ruth for eighth place in postseason history.

"It's a must-win tomorrow for us," Beltran said. "Hopefully we can come here tomorrow, take care of business, win and go play the last game at home."

Beltran's shot temporarily silenced a rocking crowd at PNC Park. It also set the stage for another dramatic win by the Pirates.

McCutchen led off the eighth with his second hit, a double to left. But the NL MVP candidate unwisely tried to advance on Justin Morneau's grounder to shortstop and was an easy out at third.

Harrison ran for Morneau and moved up when Marlon Byrd walked. St. Louis manager Mike Matheny turned to a lefty in Siegrist to face the left-handed Alvarez. The Pittsburgh slugger tied for the NL lead with 36 homers during the regular season, but hit just .180 against lefties.

One too many, as it turned out, and Alvarez singled between first and second. Martin then fouled off a squeeze bunt before lining a hit to left that gave Grilli more than enough cushion.

The game was a rare nail-biter between two clubs that spent the summer shadowing each other in the race for the NL Central title. Coming into Sunday, only five of the previous 21 matchups between the two were decided by two runs or less.

After blowouts by each club in St. Louis, there wasn't much room to breathe in front of a frenzied, black-clad crowd looking for a repeat of Pittsburgh's giddy 6-2 romp over Cincinnati in the wild-card game last Tuesday.

Meantime, the Los Angeles Dodgers were back with a bang on their return home on Sunday as they overcame a shaky start before easing to a 13-6 victory over the Atlanta Braves to move a win away from reaching the National League Championship Series.

Scoring four runs in the second inning, two in the third and four more in the fourth, the Dodgers matched a franchise record for runs scored in a playoff game and seized a 2-1 advantage in the best-of-five NL Division Series against the Braves.

The Dodgers can wrap up the series in Game Four at Dodger Stadium on Monday.

The pressure was on South Korean starter Ryu Hyun-jin to keep the Braves in check on Sunday and the Dodgers rookie can thank his team's offense for getting him out of trouble after he surrendered four runs in three innings.

Los Angeles took control of the contest in the bottom of the third when Adrian Gonzalez and Skip Schumaker hit run-scoring singles to break open a 4-4 tie before the home team eased away with a four-run salvo in the next.

Hanley Ramirez had a triple for one of his three hits, Yasiel Puig added one of his two RBIs to go with three hits and three runs, and Juan Uribe launched a two-run homer to make in 10-4 heading into the fifth.

Los Angeles tagged on three more runs in the eighth and Atlanta's Jason Heyward had a two-run homer in the ninth to complete the scoring on a balmy night in Southern California.