Updated

The Arizona Diamondbacks have celebrated their fair share of thrilling comebacks this season. They'll need another big one if they want to make the playoffs.

The Diamondbacks look to get rolling on Thursday night when they begin a four- game series with the San Francisco Giants.

The D'backs have fallen 12 1/2 games behind the first-place Los Angeles Dodgers in the NL West standings, so their attention has shifted to the wild card race. Arizona trails Cincinnati by seven games for the second playoff berth.

Arizona played its 21st extra-inning game of the season on Wednesday night and won for the 16th time in that scenario when Willie Bloomquist punched an RBI single in the 10th frame for a 4-3 win over the Toronto Blue Jays.

It marked the Diamondbacks' 13th walk-off win of the campaign and the celebration this time around involved dumping dirt on the head of Bloomquist.

"Internally, I was enjoying it," Bloomquist said of the celebration. "They've taken the walk-off celebration to a whole new level so I'll be pulling dirt out of my hair probably from now until the end of the season. It's all in good fun."

Arizona had lost five of six coming into the game and trailed 3-0 after the first inning. Facing a possible three-game sweep at the hands of the Jays, Eric Chavez tied the game with a sac fly in the seventh.

Trevor Cahill gets the call tonight for Arizona and is 5-10 with a 4.39 earned run average in 21 games, including 20 starts, this year.

The righty faced the Giants on extra rest Saturday, six days after he made an emergency relief appearance. Cahill did not factor into a 4-3 win over San Francisco, logging 6 1/3 innings and allowing three runs.

Cahill, 25, is 4-3 with a 3.68 ERA in 10 career meetings with the Giants. He'll face off again tonight with Ryan Vogelsong, who also received a no- decision in last weekend's encounter after yielding three runs over six frames.

"They got super aggressive on me," said Vogelsong. "I was trying to throw stuff off the plate, and they were still getting hits."

The 36-year-old righty has allowed three runs or fewer in all five starts since he returned from a hand injury on Aug. 9. He has lowered his ERA over that time from 7.19 to 5.49 and is 3-4 in his 14 starts.

Vogelsong is 2-3 with a 4.25 ERA in 15 lifetime encounters with the D'backs, nine of those starts.

He hopes the Giants swing a hot bat again tonight like they did in Wednesday's 13-5 win over San Diego. Pablo Sandoval had three of San Francisco's Petco Park-record six homers, ending with four hits and six RBI.

It marked the first time Sandoval hit three home runs during a regular season game, though he did so in Game 1 of last year's World Series.

"It was exciting for me. I'm starting to get my swing back," Sandoval said.

Hunter Pence and Hector Sanchez each clubbed two-run shots, while Brandon Crawford added a solo homer to help the Giants avoid a three-game sweep.

San Francisco catcher Buster Posey did not play on Wednesday and is day-to-day after suffering a bruised right finger blocking a pitch in the dirt on Tuesday.

The Giants have won 10 of 15 from the Diamondbacks this season.