SAN FRANCISCO — Jaylin Davis recently met "The Say Hey Kid" and later learned from manager Bruce Bochy that Hall of Famer Willie Mays had his own early struggles at the plate.

Bochy reminded Davis to relax, have fun.

Davis finally hit his first career home run Wednesday, a timely drive to end the game with one out in the ninth that sent the San Francisco Giants past the Colorado Rockies 2-1 when nobody wanted another long night.

"We didn't want to go extra innings tonight," Davis said, grinning.

Davis had been hitless in his previous 14 at-bats and 3 for 31 in 13 games with the Giants before a seventh-inning single. Then he connected on a 3-2 pitch from DJ Johnson (0-2). He had 10 homers for Triple-A Sacramento following a trade from the Twins.

"Definitely it took a lot of pressure off me, so I was happy to see it go over the fence," he said, also thrilled to have the souvenir ball.

Will Smith (6-0) struck out the side in the ninth for the win.

Charlie Blackmon got thrown out at the plate in the eighth trying to score the go-ahead run for the Rockies.

This one ended far sooner one night after the teams played their second matchup of 16 or more innings this season as the Rockies won 8-5 in 16 innings Tuesday — establishing a major league record for using a combined 25 pitchers.

Kevin Pillar hit an RBI single in the third for San Francisco.

The Rockies tied it with an unearned run in the seventh after Raimel Tapia reached on shortstop Brandon Crawford's throwing error and Josh Fuentes scored on first baseman Brandon Belt's missed catch.

Jeff Samardzija left with a one-run lead but missed a chance at matching his career high of 12 wins accomplished in 2016 during his first year with San Francisco.

The right-hander struck out five and walked one over six scoreless innings, allowing five hits in his final 2019 start and finished with a 3.52 ERA over 181 1/1 innings staying healthy after being limited to 10 starts last year.

Brandon Crawford led off for the second time in his career and is now 0 for 10 in that spot of the order.

Stephen Vogt stole two bases, doubling his career total, while Mike Yastrzemski extended his on-base streak to 16 games with a walk in the third.

GOOSE VISITS BRUCE

The latest ballpark visitor in town to congratulate Bochy on his impending retirement following a 25-year managerial career was old Padres teammate and Hall of Fame pitcher Goose Gossage, who chatted with Bochy in the dugout before the game. A message from Gossage showed on the scoreboard before the fourth inning and Bochy then tipped his cap to where Gossage sat near the Giants' dugout.

When his final week began, Bochy said he plans to cherish all of the little things during his last week — the walk to the ballpark, the walk into the clubhouse, packing up his office.

"I plan on just savoring this week like no week I've ever had," Bochy said.

He and longtime equipment manager Mike Murphy ventured to South San Francisco for breakfast Tuesday morning and Bochy is grateful to all of the people who approached him to say "thanks."

"That's pretty cool," Bochy said.

Rockies manager Bud Black replaced Bochy in 2007 with the Padres.

"He's proven to be one of the best managers in the history of the game," Black said. "I've lived it from the other side for 13 seasons watching it. Probably for me the best in-game strategist I've gone up against."

And Black can't imagine the emotions Bochy must be feeling this week.

"That's got to be weird," Black said.

SHARKS JERSEY

San Jose Sharks left winger Evander Kane presented Bochy a team-signed hockey jersey. Other members of the Sharks offered their congratulations in scoreboard messages and so did former Giants second baseman Joe Panik, released last month and now with the Mets.

TRAINER'S ROOM

Rockies: A day after taking a line drive in the right knee area during his start, RHP Jeff Hoffman wasn't limping — remarkable that he wasn't more seriously hurt on Alex Dickerson's fourth-inning single. Hoffman told MLB.com he wasn't ready to jog to first but thought he'd be much improved by Thursday.

Giants: 2B Mauricio Dubon remained in the game after a collision with baserunner Tony Wolters in the seventh. ... 3B Pablo Sandoval is in no pain after Tommy John surgery on his right elbow, wearing a brace that is now set at 105 degrees range of motion. He expects to begin a hitting program at five months post-op and then cut back on hitting to start a throwing program at the six-month mark. He said he will be re-evaluated soon to get more information on the plan. ... RHP Johnny Cueto threw a regular bullpen session and manager Bruce Bochy said it would depend how he feels Thursday whether he starts once more Friday in the series opener against the Dodgers. Cueto (1-1) has made three starts spanning 14 innings since returning from a 13-month absence recovering from the procedure.

UP NEXT

LHP Kyle Freeland (3-11, 6.98 ERA) pitches the series finale for Colorado opposite RHP Tyler Beede (5-10, 5.23), who has a 3.80 ERA in four September starts.

___

More AP MLB: https://apnews.com/MLB and https://twitter.com/AP_Sports