When it did, the Giants let loose.

Pablo Sandoval and other Giants waved orange towels atop the dugout steps after Wilson's first two pitches were strikes to Will Venable with two outs in the ninth.

When Venable struck out swinging one pitch later, Posey ran out to Wilson and they jumped together at the mound. The rest of the Giants joined them and gray NL West champion shirts were quickly handed out.

The Giants then took a victory lap along the outfield warning track, slapping hands with fans leaning over the fence. Bochy brought up the rear of the lap, tipping his cap and waving it over and over again.

"It's a group that coalesced into a team that wants to get there," said Bochy, who eliminated his former team.

Padres players stayed put at the railing of their dugout watching the celebration in disappointment.

The Giants were in fourth place and 7 1/2 games out of the lead on July 4.

"We were in fourth place but we said, 'We're a team that can win it,'" Sandoval said. "We can get to the World Series."

The pitching-rich Padres head home for a longer winter than they wanted knowing they blew quite an opportunity. San Diego led the division by 6 1/2 games before a 10-game losing streak from Aug. 26 to Sept. 5.

But manager Bud Black's team had trouble scoring all season, and that was its undoing at the end. The Padres managed only four hits Sunday and were shut out for the 12th time.

"Anyone who goes through this has a good sense of what's going on," Black said. "Reality sets in and you know we didn't make it. But we still had a great season."

Sanchez (13-9) pitched into the sixth inning and gave up three hits while walking five. He contributed with his bat, too, hitting a triple off rookie Mat Latos (14-10) and scoring the game's first run in the third inning.

The Giants head back into the postseason a decidedly different team than when they last made it. Led by Barry Bonds, they lost in four games to Florida in the 2003 NL Division Series, a year after falling six outs shy of a World Series title and losing to the wild-card Angels in seven games.

In fact, San Francisco is back in the playoffs with a roster that looks nothing like the group that took the field on opening day. Posey was called up in late May and hit 18 homers to make a strong case for NL Rookie of the Year honors, and Pat Burrell revived his career after signing a minor league deal May 29 following his release by Tampa Bay. The bullpen features new faces, too. Jose Guillen, Mike Fontenot and Cody Ross also are newcomers.

"Versus the past when we lived and died with one superstar player, there aren't any superstars on this team. There might be a couple rising stars," said general manager Brian Sabean, who was pinned in a corner and doused with champagne by the players. "Our organization is built on pitching. It's old-school baseball. We've been marching toward this for a while, including holding onto [Jonathan] Sanchez."

Sanchez tripled and scored on a single by Freddy Sanchez, then Aubrey Huff followed with an RBI double.

Posey homered in the eighth for insurance.

Nearly two months after he guaranteed a three-game sweep of the Padres only to see San Francisco drop two of three, the left-handed Sanchez was the Giants' most reliable pitcher down the stretch. He went 4-1 with a 1.03 ERA over his last seven outings -- in July 2009, he threw a no-hitter against the visiting Padres.

Sanchez gave way to Santiago Casilla with none out in the sixth after allowing Adrian Gonzalez's leadoff single and a walk to Ryan Ludwick. Casilla induced a double play and got an inning-ending groundout.

After a pair of strikeouts to start the seventh, Casilla allowed a single to Chris Denorfia and David Eckstein reached on the pitcher's error. Ramon Ramirez relieved and, in a fierce, nine-pitch at-bat, struck out a swinging Miguel Tejada on a full count.

Sergio Romo pitched a 1-2-3 eighth, pumping his arms after striking out Yorvit Torrealba for the third out.

Wilson finished it for his majors-best 48th save in 53 chances. He became the first Giants reliever since the save became an official statistic in 1969 to lead the majors. Wilson also matched Rod Beck for the San Francisco single-season record.

San Francisco's bullpen went its final six games and 24 innings without giving up an earned run.

The Giants advanced despite Sandoval's disappointing season and a career-worst five-start losing streak from Lincecum in August. The two-time reigning NL Cy Young Award winner bounced back in September. Barry Zito has been inconsistent -- his spot on the postseason roster isn't a given. Rookie Madison Bumgarner took on a key role in the rotation, won seven games and was unfazed by the responsibility.

The Padres lost for only the second time in nine games at AT&T Park this season. They went 12-6 against the Giants overall, winning the first eight meetings.

"We beat them 12 of 18 and that means they played seven games better against the rest of the league," Gonzalez said. "They beat other teams and we didn't."

Game notes

The Giants reached the 3 million mark in attendance (3,037,443) for the ninth time in the ballpark's 11-year history, first time since 2007.