PITTSBURGH _ Manny Machado gave, and then he gave away.
The third baseman's home run tied Friday night's game at PNC Park in the fourth, and his two errors on one play in the seventh allowed the Pirates to take a lead they didn't relinquish.
Two San Diegans figured prominently in the Pirates' 2-1 victory over the Padres.
Pirates starter Joe Musgrove held the Padres to a run in seven innings, and Steven Brualt scored the winning run.
Brault, a left-hander who is scheduled to start Sunday against the Padres, was pinch-running for Jung Ho Kang, who reached second base on a slow grounder to third base that Machado mishandled and then fired wide of first.
The loss, which ended the Padres' winning streak at four games and dropped them back to .500 for the season, was additionally painful because it came on a night Eric Lauer showed he could be at home on the road, turning in his first quality start away from Petco Park.
Lauer (5-7) entered the game with a 7.81 ERA on the road this season, highest in the major leagues.
To his detriment, he has had to make two starts at Coors Field. And his relationship with that mile-high venue is abusive.
Lauer's 19.73 ERA in three career starts in Denver includes the eight runs in three innings he allowed May 10 and the five runs in 2 2/3 he allowed there June 15 in his most recent start.
In between those two starts, Lauer started five times. The Padres won four of those, and he went 3-1. In 31 innings, he posted a 2.05 ERA with a 0.97 WHIP.
And back in some heavier air, on the banks of the Allegheny River, Lauer was as sharp as he has been all season.
The free-swinging Pirates _ who entered the game with the seventh-highest team batting average in the majors but the 20th-ranked on-base percentage because they had the third-fewest walks _ were hacking at Lauer's offerings.
He was through the sixth inning in 68 pitches. To that point, just two Pirates plate appearances had lasted longer than five pitches, and both of those went six. Five were one-pitch at-bats, and five more were over in two pitches.
Lauer allowed a run on back-to-back hits in the first inning _ a single by Bryan Reynolds and a double that Starling Marte tried to make a triple. Marte was that inning's second out when Padres shortstop Fernando Tatis Jr. took the relay throw from Hunter Renfroe a few steps off the infield dirt and beat Marte in a race to the bag.
The Pirates didn't get another hit until Elias Diaz and Musgrove put together successive two-out singles in the fifth. Lauer ended that inning with a grounder from another San Diegan, Kevin Newman.
After Melky Cabrera flied out to left on the first pitch from Lauer in the seventh inning, Machado's miscues put Kang on second.
Brault replaced him, and one of the Pirates' better at-bats of the night ended with an RBI single.
After falling behind 1-2, Jose Osuna laid off a curve ball and then slapped a grounder through the middle.
Two pitches later, Lauer got Diaz to ground into an inning-ending double play.
Greg Garcia, pinch-hitting for Lauer, led off the eighth with a bunt single against reliever Kyle Crick. Two-out walks by Machado and Renfroe loaded the bases for Franmil Reyes. But the big right fielder popped out to Pirates first baseman Josh Bell in foul territory.
Felipe Vazquez pitched the ninth for his 19th save, the only threat being Francisco Mejia's second hit of the night with two outs that preceded pinch-hitter Manuel Margot's line out to shortstop.