That tough break had no effect on Peavy's jubilant mood.
The top sports headlines of the day
"This is the most gratifying win I think I've ever been a part of as a Padre, watching the total team effort that we gave tonight result in a win," Peavy said.
Peavy settled down after allowing Carlos Delgado's long three-run homer in the first and surprising San Diego held on for its sixth win in seven games. Former Mets reliever Heath Bell pitched a perfect ninth for his fifth save in five chances.
The Padres looked right at home in New York's sparkling new yard, with its expansive outfield reminiscent of the power alleys in their Petco Park. They only needed one extra-base hit to send the Mets to their fifth loss in seven games.
"The ballpark is beautiful. They did it right, other than getting some hot water down in the clubhouse, we'd be set," a chuckling Peavy said. "But, nah, beautiful facility."
Delgado hit his third homer with one out in the first, sending a 3-0 pitch over a billboard hanging above the bullpens in right-center. Ramon Castro hit a two-run shot off former teammate Duaner Sanchez in the eighth but that was it for New York.
The Mets put runners on second and third in the third and fourth innings and couldn't come up with a big hit. Peavy struck out Castro to end the third, and fanned David Wright to end the fourth after a fan scooped up Daniel Murphy's double down the line to keep Jose Reyes at third.
"We continue to put ourselves in good position to win but we haven't been able to finish," manager Jerry Manuel said.
Peavy (2-1) allowed three runs and six hits in the finale of the three-game set. He struck out five and walked four.
The 2007 NL Cy Young Award winner also helped out at the plate, setting up San Diego's five-run third inning with a key sacrifice that put runners on second and third. Jody Gerut and David Eckstein followed with RBI singles to cut the Mets' lead to 3-2.
John Maine (0-1) got Brian Giles to ground out to first, but Gerut and Giles each moved up a base. After Adrian Gonzalez was walked intentionally, Headley lined a two-run single into center field to put San Diego ahead 4-3. Kevin Kouzmanoff tacked on another RBI single as the crowd of 35,985 groaned.
"Adrian is such a great player that that's going to happen," Headley said. "They're going to make the younger, less established players beat them. Today I was behind him and it was just a big hit. You want to come through so Adrian is going to get his chance to hit."
Headley also doubled in Gonzalez in the fifth and led off the eighth with another single to tie his career high for hits set Sept. 19 at Washington.
Maine allowed six runs and seven hits in five innings. He struck out four and walked three.
"As is so often the case, it was one inning," he said. "I made some good pitches but they hit them. It's frustrating."
Ryan Church and Luis Castillo each had two hits for New York, which will host Milwaukee this weekend in their second regular-season series at Citi Field. Former Mets manager Willie Randolph, fired in the middle of last season, is in his first year as Milwaukee's bench coach, adding more intrigue to the matchup.
"I'm looking forward to seeing him," said Manuel, who was promoted from bench coach after Randolph was dismissed. "I'm excited that he's back in baseball. He's a bench coach and I know at some point that he'll get another opportunity (to manage) and I know he'll do well."