PITTSBURGH -- R.J. Alaniz didn't hesitate when asked if he was more excited about getting his first career hit or victory.
"The hit," said the Cincinnati Reds rookie relief pitcher, who hadn't even taken batting practice since his senior of high school 10 years ago. "Definitely the hit. Just see the ball, hit the ball. I was a pretty good hitter back in the day."
Alaniz (1-0) followed with his hit and pitched two scoreless innings.
Iglesias had three hits and two RBI for the Reds, and Tucker Barnhart homered.
With one game left in the season, Iglesias is hitting .288 with 11 home runs. The veteran shortstop did not have a job when spring training opened before the Reds signed him to a minor league contract.
"You have two options, you either take it the wrong way or take it as a challenge," Iglesias said. "I took it as a challenge and I'm proud that I've come through for this team that gave me the opportunity."
The Pirates were held to five hits by seven pitchers and were shut out over the final 10 innings.
"I couldn't have asked anymore from our pitchers, especially on a bullpen day," Reds manager David Bell said. "Our pitching has done a great job all year and our guys might have topped themselves tonight."
Cincinnati snapped a five-game losing streak and won for the first time in 13 games at PNC Park. Pittsburgh's four-game winning streak ended.
"We made some really good pitches when we had to, but overall we needed some offense to show up tonight and we weren't able to do it," Pirates manager Clint Hurdle said.
The Reds tied it at 2 in the fourth when Phillip Ervin led off with a double and scored on Iglesias' single.
Barnhart opened the scoring with a home run to the right field stands in the top of the second. The Pirates pulled ahead 2-1 in the bottom of the inning on a passed ball by Barnhart and Steven Barron's run-scoring double.
The start of the game was delayed because of rain for one hour, five minutes.
Pirates broadcaster Steve Blass was honored in a pregame ceremony as he gets set to end his run of 34 years in the booth Sunday.
Blass has spent a total of 60 years in the organization since being signed as an amateur free agent in 1960 from Falls Village, Connecticut. He pitched 10 seasons for the Pirates from 1964-74 and threw a complete game in Game 7 of the 1971 World Series to beat the Orioles.
The Pirates announced that Blass will be part of the inaugural class next year when they establish a team Hall of Fame.
Most of the Reds players were about an hour late getting to PNC Park as the team bus got caught in football post-game traffic after Pitt defeated Delaware at adjacent Heinz Field.
Police would not permit the bus to pull all the way up to the ballpark. Thus, everyone had to walk the last three blocks.
Reds: RHP Trevor Bauer (illness) has been scratched from his scheduled start Sunday in the season finale.
Pirates: C Barron left the game in the second inning when struck in the face by an errant pickoff throw to second base by Sims. That came right after he notched his first career RBI. ... 3B Colin Moran (strained left hip) missed his fourth straight game and OF Bryan Reynolds (right hamstring discomfort) sat out a third consecutive day. Neither will play in Sunday's series finale.
Reds: RHP Tyler Mahle (2-12, 5.34 ERA) will take Bauer's spot in the rotation and is winless since May 31, a span of 13 starts.
Pirates: RHP Trevor Williams (7-8, 5.52) is 0-2 with a 7.11 ERA in four starts in September.
More AP MLB: https://apnews.com/MLB and https://twitter.com/AP-Sports
Yankees GM rappels building, gets fan's message on Gerrit Cole
Brian Cashman saw a message taped to a 10th-floor window while prepping for a festival in Connecticut. "Please sign Gerrit Cole," it said. The GM's response: "I'm open to do clearly whatever, as always, is important for the Yankees."
Rays' Blake Snell strongly reacts to Tommy Pham trade on Twitch
Rays pitcher Blake Snell acknowledged that he overreacted -- in a moment captured on Twitch and shared on social media -- to news that teammate Tommy Pham had been traded to San Diego.
What's next for the teams that lose the Gerrit Cole sweepstakes?
One team will land the best pitcher on the planet. The rest of his suitors? They'll have to scramble.
Source: Nationals agree to deal with World Series hero Howie Kendrick
Howie Kendrick, who capped the Nationals' improbable run to their first World Series title last season with a Game 7 home run, has reached an agreement on a one-year, $6.25 million deal to return to Washington, a source told ESPN's Jeff Passan on Friday.
Win-now Padres pay steep price for Tommy Pham
San Diego took another step toward contending in 2020 by adding the outfielder but shipped one of its best prospects to Tampa Bay in the process.
Nationals owner Mark Lerner says team can't keep both Stephen Strasburg and Anthony Rendon
Stephen Strasburg and Anthony Rendon were key components in the Nationals winning the franchise's first World Series title this year, but Mark Lerner, the team's principal owner, is already preparing to say goodbye to at least one of them in free agency.