SAN DIEGO -- Clayton Richard figured he would get his first win on Saturday. He never imagined it would come in relief.
"I was hoping I was going to get a win today, but I was thinking it was going to be later in the day," said Richard, who was the scheduled starter for the second game of the three-game series between San Diego and Toronto. "That's the crazy thing about baseball. You never know what you're going to get."
Richard ended his five-game skid early Saturday morning when Jesus Guzman singled home Jedd Gyorko for the winning run with two outs in the 17th inning, lifting the Padres to a 4-3 victory over the weary Blue Jays before a crowd of 24,219 at Petco Park.
Richard (1-5) worked two innings of hitless relief, striking out two and allowing the Padres to prevail in a four-hour, 58-minute affair that ended just after midnight PT. Todd Redmond (0-1), who gave up one run and two hits in 3 2/3 innings, was dealt the loss.
"You come to the park thinking out a plan and then it's just turned upside down," Richard said. "That's part of the fun of the game, being in situations when something different happens that you never imagine. A lot of fun."
Toronto's Edwin Encarnacion hit his club-leading 15th home run of the season, and Colby Rasmus launched his ninth, but it didn't matter in the end.
"It's a great win," San Diego manager Bud Black said. "So many guys contributed on the mound. We played good defense, fundamentally sound all the way through this game. They pitched well, too. We got the big hit at the end. It took a while. Big hit for (Guzman)."
It was Guzman's first walk-off hit of his career. It also was his first RBI since May 20 against St. Louis.
The Blue Jays flew from Atlanta to San Diego after losing to the Braves on Thursday. They didn't arrive in San Diego until late that night.
"A marathon. I think what makes it tough is that we flew cross country and got in a little late," said Toronto starter Chad Jenkins, who worked five innings, giving up three runs (two earned) and three hits with two strikeouts and no walks. "We're still all on Eastern time. So technically, for us, it's 3 or 4 in the morning, so guys are tired."
San Diego starter Jason Marquis allowed three runs and seven hits, including two home runs, in 5 1/3 innings. He struck out six and walked four. Marquis retired the Blue Jays in order in the first, but they consistently knocked him around from that point on.
Padres first baseman Yonder Alonso was hit by a pitch on his right hand by reliever Aaron Loup in the seventh and left the game in the eighth. He suffered a hand contusion. X-rays were negative. Alonso will be re-evaluated later Saturday.
The Padres (25-29) handed the Blue Jays (23-32) their second straight loss.
Rasmus jumped on the first pitch he got from Marquis and drove it an estimated 409 feet over the wall in center with one out in the second for a two-run homer.
In the bottom of the inning, Rasmus robbed Alonso of a home run by leaping and making a catch at the center-field wall.
Encarnacion led off the fourth by drilling Marquis' first pitch onto the lower level patio of the Western Metal Supply building in left for a 3-0 Toronto lead.
The Blue Jays threatened again later in the inning, loading the bases. But Marquis struck out Jenkins to escape the jam.
The Padres rallied to tie the score at 3 in the fifth on Gyorko's two-run double to right-center, scoring Carlos Quentin and Alonso. Gyorko, who advanced to third on the throw to the plate, came home when J.P. Arencibia's attempt to throw him out at third sailed past Encarnacion and down the left-field line.
NOTES: Encarnacion's homer ended a two-game drought by the Blue Jays. ... Marquis made his 300th career start, one of 20 active pitchers to have 300 or more starts. Marquis' first career appearance also came against Toronto in an interleague game when he was pitching for the Atlanta Braves. ... This is the third series between the clubs, all of them played in San Diego. The Padres, who are 3-4 against the Blue Jays, have never played in Toronto, the only major league city they have yet to visit. ... The Padres honored several former Negro League players, including country and western singer Charley Pride, during its 10th "Salute to the Negro Leagues" before the game. The others included George "Jo-Jo" Altman, Neale "California Comet" Henderson, Don "Groundhog" Johnson, Ray "Boo Boy" Knox, Minnie Minoso, Mack "The Knife" Pride, Jim Robinson and Ron "Roomie" Teasley.