Getty Images, Rich Schultz

The Cardinals stayed alive in the wild-card race by rallying from a 3-0 deficit to beat Pittsburgh, 4-3 Saturday. St. Louis tied it with a three-run sixth and went ahead in the eighth on Jedd Gyorko's  30th homer of the season.

The Redbirds' bullpen threw eight innings of shutout relief to help the team stay in the wild-card hunt. The Cards still need a victory and a Giants loss on Sunday to force a one-game playoff in St. Louis for the second wild-card berth and the right to face the Mets in New York on Wednesday.

Hear the Cards and Pirates on KHMO Sunday.  Airtime is 1:20.

San Francisco's magic number to claim a playoff berth is one after rookie Ty Blach outpitched Clayton Kershaw in a 3-0 shutout of the Dodgers. Blach surrendered just three hits over eight innings in his second major league start and first big league win.

Angel Pagan broke a scoreless tie with a solo homer in the fifth inning, the only earned run allowed by Kershaw over seven innings.

The outcome allowed the Nationals to grab home-field advantage for their upcoming division series against the Dodgers.

Also in the National League, the Mets clinched the first wild-card berth with a 5-3 victory at Philadelphia. The game was tied 2-2 in the sixth until James Loney belted a two-run homer that sent New York to its fourth straight victory.
Bartolo Colon picked up his 15th victory by allowing two runs and five hits while striking out six over five innings.
The Mets' victory completes just one-half of the NL wild-card picture. The second berth remains up for grabs following wins by the Giants and Cardinals.

UNDATED (AP) - There's still a two-way tie for the two American League wild-card berths, with one team just one game back in the loss column heading into the final day of the regular season. Baltimore and Toronto are 1 1/2 games better than the Detroit Tigers, who could wind up playing a makeup game against Cleveland on Monday.

Ezequiel Carrera lifted a sacrifice fly in the ninth inning to give the Blue Jays a 4-3 win at Boston. Kevin Pillar (pee-LAHR') had three RBIs for the Blue Jays, who dropped the Red Sox a half-game behind Cleveland in the battle for home-field advantage in their upcoming division series.

Baltimore's push toward an AL wild-card spot was slowed in the Bronx as the Yankees scored the last seven runs in a 7-3 comeback win against the Orioles. Tyler Austin tied it with a solo homer in the seventh, one inning before Austin Romine supplied the go-ahead, two-run single.

Freddie Freeman slammed a two-run homer and Nick Markakis (mahr-KAY'-kihs) added a solo blast as the Braves dumped the Tigers, 5-3. Aaron Blair struck out 10 while limiting Detroit to two runs and four hits over six innings. The Tigers now need to a victory Sunday and a loss by either Baltimore or Toronto for a makeup game against Cleveland to become necessary.