PITTSBURGH -- Jedd Gyorko made the busloads of fans who made the 90-minute trip from Morgantown, W.Va., on Tuesday night very happy.
The rookie second baseman had a three-run homer among his three hits to help the San Diego Padres to a 5-2 victory over the Pittsburgh Pirates at PNC Park.
The Padres have beaten the Pirates in the first two games of the fourth-game series and are 30 10 all-time at PNC Park, which opened in 2001. San Diego has won 18 of its last 21 games in Pittsburgh.
The Pirates entered the day tied with the St. Louis Cardinals for first place in the National League Central and 2 1/2 games ahead of the third-place Cincinnati Reds. The Cardinals played at Colorado and the Reds visited Houston.
Gyorko's home run opened the scoring and thrilled supporters from his hometown who watched him star at University High School and West Virginia University.
Ronny Cedeno also had three hits for the Padres, who won for the 10th time in 14 games, and Will Venable and Tommy Medica added two hits each. San Diego had a total of 14 hits.
The homer gave Eric Stults (9-13) enough cushion to end his streak of 10 winless starts that dated to the All-Star break.
The left-hander gave up two runs and seven hits in five innings with one walk and five strikeouts for the Padres' seventh quality start in their last eight games. Stults had been 0-6 with a 5.40 ERA since the break.
Tim Stauffer, Nick Vincent and Luke Gregerson, who posted his fourth save, combined on four scoreless relief innings. Gregerson was filling in for closer Huston Street, who missed his second straight game while attending to a personal matter.
Jeff Locke (10-6) took the loss, allowing four runs and seven hits in five innings. He walked three and struck out five.
The Pirates got two hits each from Andrew McCutchen and Gaby Sanchez. McCutchen had gone 1-for-9 with three strikeouts in three games since his 11-game hitting streak ended.
Pittsburgh has scored just 29 runs in its last 11 games.
Gyorko's three-run blast to left field, his 19th home run of the season, put the Padres ahead 3-0 in the third inning.
Marlon Byrd answered for the Pirates with a two-run single with two outs in the third inning. The ball dropped into the right-center field gap when right fielder Kyle Blanks fell down.
San Diego scored a run in the fifth when Chris Denorfia grounded into a double play with the bases loaded and none out.
The Padres tacked on a final run in the seventh an RBI single by Medica.
NOTES: Pittsburgh LF Starling Marte was in the starting lineup for the first time since Aug. 18. Suffering from a bruised right hand, Marte was activated from the disabled list Sept. 7 but was limited to pinch hitting and late-inning defensive replacement work until Tuesday. ... San Diego manager Bud Black said he expects RHP Andrew Cashner, who has pitched a career-high 168 innings, to make his last two starts of the season. ... Pirates RHP Charlie Morton (7-4, 3.54 ERA) will face Padres RHP Tyson Ross (3-8, 3.29) on Wednesday night.