Wainwright (1-0) pitched out of a bases loaded, no-out jam in the second, giving up just one run. He retired 14 of the final 15 batters he faced as the Cardinals beat the Pirates for the 12th time in their last 13 games.
The veteran had trouble regulating his body temperature early on as the heat index soared above triple-digits.
"It's just certainly, especially when you get to be the old owl on the team, things get a little harder as you get older, so you got to figure out ways and tricks, little ways to stay in the game," Wainwright said. "For me, I looked around behind me at my defense and I knew they had it. So, I tried to attack the zone."
Wainwright's 163rd career victory moved him into a tie with Bob Forsch for third-most wins in Cardinals history.
"He's still in the process of being able to compete so you know he was going to have a shorter rope in the sixth, but he went 1-2-3, made his quality pitches," Cardinals manager Mike Shildt said. "He's a warrior guy, and third all-time with Forsch, that's pretty impressive."
Wainwright continued his dominance against Pittsburgh at Busch Stadium, where he hasn't dropped a decision to the Pirates since June 29, 2012. He has pitched at least five innings in all 19 career home starts against the Bucs.
"I thought the cutter was good," Pirates manager Derek Shelton said of Wainwright. "That's one thing we talked about in the pregame. He's been pitching for a long time, and he is able to execute pitches and change his stuff throughout his career."
"I think everyone has like a mental switch, where they can basically go and attack where we want to attack and so I think that focus level and that plan has really been our difference," DeJong said.
With his two-run triple in the eighth, Tommy Edman has now hit safely in 20 consecutive games dating back to Sept. 10, 2019.
Pirates starter Trevor Williams (0-1) gave up three runs in 4 2/3 innings. He gave up just two runs in two starts all last season against the Cardinals.
Josh Bell singled and scored the Pirates' lone run.
Goldschmidt's 381-foot solo homer gave the Cardinals a 1-0 lead in the first. He has hit safely in 11 of 12 home games against Pittsburgh since joining St. Louis.
It was the 266th time Yadier Molina has caught a Wainwright start, the most for a duo in Cardinals history and seventh-most in Major League History (since 1908).
Pirates: OF Gregory Polanco (COVID-19) passed all return protocols and worked out at PNC Ballpark. There is no timetable on his return.
Cardinals: RHP Giovanny Gallegos showed more consistency with his pitches during live batting practice. He will throw another BP round on Sunday.
The Pirates send RHP Mitch Keller (1-5, 7.13 ERA in 2019) to the mound against the Cardinals and RHP Dakota Hudson (16-7, 3.35 ERA in 2019) in the finale of a three-game series on Sunday. Keller, who has never faced St. Louis, entered the season as the team's top pitching prospect. Hudson has won his last five starts against NL Central foes, including one against Pittsburgh on July 23, 2019.
More AP MLB: https://apnews.com/MLB and https://twitter.com/AP-Sports
Wander Franco is set to make a splash for the Tampa Bay Rays
Wander Franco is the rare true five-tool player, and baseball is about to get a taste of what he can do.
Smyly, Acuña fuel Braves past Cards for doubleheader split
— Drew Smyly knows his first season with the Atlanta Braves hasn't gone as smoothly as he thought it would.
Pujols HR, Dodgers send Diamondbacks to 17th straight loss
— Albert Pujols hit a three-run homer and passed Mel Ott for 14th on the career runs list, and the Los Angeles Dodgers extended the Arizona Diamondbacks' losing streak to 17 games with a 9-8 victory Sunday.
Tampa Bay Rays to call up shortstop Wander Franco, MLB's top prospect
The Rays announced that Wander Franco, rated by ESPN as the top prospect in baseball entering the season, will be called up.
Tigers overcome Ohtani's 23rd HR, hold off Angels 5-3 in 10
— Shohei Ohtani got four hits in the past three games against the Tigers. All four were homers, including a two-run shot in the fifth inning Sunday that put him tied atop the majors with 23 this season.
Ronald Acuna cranks 100th-career homer, gets hug from panda
Ronald Acuna Jr. hits the 100th home run of his career vs. the Cardinals.