Then he received more help from an unlikely source in the second -- San Francisco's spotty offense.
Holland (1-1) pitched seven crisp innings, allowing five hits with two walks and a season-best nine strikeouts. He struck out hot-hitting rookie Fernando Tatis Jr. looking three times and fanned the final two batters he faced after giving up Hunter Renfroe's solo homer in the seventh.
"He gave us something we needed with some length," San Francisco manager Bruce Bochy said. "What a great job he did. The first inning they hit some balls hard but he found his command and all his pitches and pitched a terrific game."
It was Holland's longest outing since he lasted eight innings for the Chicago White Sox on May 21, 2017.
Holland got a big lift from San Francisco's defense early.
Posey threw out Wil Myers attempting to steal second in the first inning. Two batters later, after Manny Machado walked, Franmil Reyes singled but was nabbed trying to go to second on a relay throw by shortstop Brandon Crawford.
"They were making some hard contact," Holland said. "Any time these guys make plays you want to do whatever you can to pick them up, too. They made some great plays for me."
The Giants set a season high for runs, one night after blowing a five-run lead with ace Madison Bumgarner on the mound.
Gerardo Parra doubled and scored twice in his return to the lineup after getting hit in the face by a 93 mph fastball that ricocheted off his shoulder in the series opener Monday. Yangervis Solarte and Tyler Austin also knocked in runs to help the Giants (4-8) avoid their worst start through 12 games in the San Francisco era.
Padres starter Joey Lucchesi (2-1) went into the game as one of two NL pitchers who hadn't allowed a run in 10 innings this season. Lucchesi ran his streak to 11 with a 1-2-3 first before the Giants scored six in the second.
"Just a couple of bad pitches here and there," he said. "I only gave up three hard hits, a few bloops. I'm just going to sleep it off, move on and get ready for the next start."
Pillar, who hit a grand slam Monday, smacked a three-run double in the second and scored on Austin's RBI single, then added a sacrifice fly in the fourth. The newcomer from Toronto became the first Giants player with at least four RBI in back-to-back games since home run king Barry Bonds did it April 2-3, 2002.
"Any time you are traded and brought to a new clubhouse, you want to go out there and have kind of your moment," Pillar said. "Today is kind of showcasing what I feel like I can bring to the table."
The game drew 28,506, the smallest crowd in San Francisco since Sept. 1, 2010. The Giants set an NL record with 530 consecutive sellouts at their waterfront ballpark from 2010-17 but have failed to reach 30,000 in each of their last two games.
"You hate to see it, but it's going to be up to us to start playing good ball and get `em back here and start winning some games," Bochy said. "That's something that we can control. Other than that, go out there and make some noise and raise the excitement here."
Padres: LHP Jose Castillo has yet to resume throwing but his recovery from a left flexor strain is going as well as possible, according to manager Andy Green. Castillo is traveling with the club as he rehabs. ... 1B Eric Hosmer was rested.
Giants: Parra made a quick return to the lineup, one day after his lip was cut when he was struck by a fastball from Brad Wieck. Parra contemplated getting stitches but declined.
San Diego LHP Nick Margevicius (0-1, 1.80 ERA) takes a third shot at earning his first win in the majors in the series finale Wednesday. Margevicius has pitched five innings in each of his previous two starts. San Francisco counters with RHP Dereck Rodriguez (1-1, 5.23), who has one win in three career starts against the Padres.
More AP MLB:https://apnews.com/tag/MLB andhttps://twitter.com/AP-Sports
Indians look to turn around homestand vs. Rays
The Cleveland Indians saw their offense go missing the past three days as they were swept in a home series for the first time in nearly two years.
Power-infused Braves look for series win over Giants
Austin Riley appears to be skipping the learning curve that often comes with a rookie's first taste of major league pitching.
Angels, Twins try again after rare Anaheim rainout
The scheduled Wednesday night game between the Los Angeles Angels and Minnesota Twins that was postponed because of wet field conditions will be made up Thursday afternoon in Anaheim, Calif.
Nola, Phils aim for split with Cubs, but Lester looms
Philadelphia Phillies catcher J.T. Realmuto sensed a special outing was brewing from Aaron Nola before the right-hander even fired a pitch that counted against the Colorado Rockies on Saturday.
Streaking Marlins go for sweep of struggling Tigers
Brian Anderson has unearthed his power stroke in Detroit. The Miami Marlins third baseman will try to do more damage in the series finale against the Tigers on Thursday afternoon.
Pirates hope Lyles can turn tide vs. Rockies
The Colorado Rockies have found a panacea, at least temporarily, in facing the Pittsburgh Pirates.