Freddy Sanchez hit a sacrifice fly in the 10th inning after failing to drive in the go-ahead run two innings earlier, and the Giants bounced back from pinch-hitter Delwyn Young's tying two-run homer to beat the Pirates 6-5 on Sunday.
Colby Rasmus' two-run homer in the second inning gave St. Louis' slumping offense a lift and the Cardinals avoided being swept by last-place Pittsburgh, getting a strong effort from their bullpen in a 5-1 victory on Thursday night.
Adam LaRoche became the first player to have a home run taken away by video replay, but it didn't prevent the last-place Pirates from beating the Cardinals 5-2 on Tuesday night behind Ross Ohlendorf's two-hit pitching over six innings.
Zach Duke beat St. Louis for the first time in nearly three seasons and Freddy Sanchez went 4-for-5 for his third straight multihit game to open the year in the Pittsburgh Pirates' 7-4 victory over the Cardinals on Wednesday night.
Paul Maholm avoided an arbitration hearing by reaching a preliminary agreement on a $14.5 million, three-year contract with the Pirates, who also finalized a one-year deal with free-agent utilityman Eric Hinske worth about $1.5 million.
Jose Bautista and Ryan Doumit homered and the Pittsburgh Pirates turned back the clock nearly a half-century, beating the New York Yankees 12-5 on Tuesday night for their first victory against them since the 1960 World Series.