SAN DIEGO – For one day at least, the moderate-payroll San Diego Padres are in first place in the National League West, ahead of the big-spending Los Angeles Dodgers by percentage points.

Seth Smith hit a towering drive for a tying homer leading off the bottom of the eighth and Chris Denorfia singled home two runs to give the Padres a 3-1 victory against the rival Dodgers in baseball’s North American opener Sunday night.

Smith’s first hit with the Padres came on a 2-0 pitch from Brian Wilson, who started the eighth after Hyun-Jin Ryu threw seven scoreless innings for the Dodgers. The ball sailed an estimated 360 feet into the right-field seats.

It was his seventh career pinch-hit homer. Smith was acquired in an offseason trade with Oakland for reliever Luke Gregerson.

Unlimited Digital Access. $1 for 4 weeks.

Wilson (0-1) walked pinch-hitter Yasmani Grandal, who advanced when the veteran reliever couldn’t handle Everth Cabrera’s bunt for an error. Grandal stole third and Cabrera took second before Denorfia hit a bouncer up the middle to bring them both across the plate.

“They’re all just one game, but when you’re facing a team like the Dodgers, full of great players, Brian Wilson, a guy who knows how to get it done in those situations, it’s not easy to do what our hitters did,” said Huston Street, who pitched a perfect ninth for the save. “To come back and get three right there in that situation, especially after leaving guys on base early, that’s what this team is going to have to do to win. We’re going to have to battle all year long.”

The Dodgers, who started their season with two victories over Arizona in Australia, set a record with an opening-day payroll of $234.3 million.

The Padres are 23rd at $89.9 million.

“They’ve got a lot of talent and their talent has earned those salaries,” Street said of the Dodgers.