BALTIMORE -- After an error ruined Andy Pettitte's bid for perfection, the left-hander's effort to console his dejected teammate was absolutely flawless.
Pettitte (12-6) was poised to finish the seventh without allowing a baserunner, but former Oriole Jerry Hairston Jr. let a two-out grounder by Adam Jones slip through his legs for an error. Hairston was playing in place of Alex Rodriguez, who was given the night off.
Nick Markakis followed with an opposite-field single inside the third-base line, drawing further groans from a crowd of 25,063 filled with Yankees fans.
Hairston felt terrible, but Pettitte eased his pain by giving him a hug in the clubhouse.
"He was kind of funny," Hairston said. "He was like, 'You took the pressure off me.' He goes, 'If I haven't thrown a no-hitter by now, then I'm not going to do it.' He was probably the best. He said he didn't want to throw nine innings anyway. That's what type of attitude he has."
Major leaguers long ago found out what kind of pitcher Pettitte is, and his performance against the Orioles showed that he's still got plenty of talent.
"After the fifth inning, I kind of started thinking about it a little bit. It was cool," Pettitte said. "You can't not with the fans; it seemed almost like we were at home, the fans were getting into it so much.
"It's neat for me to be able to do something like that this late in my career. There's not a whole lot that gets me excited, and I didn't get too, too excited about it yet, because I had a whole lot of outs to get. But it was fun."
After Melvin Mora led off the eighth with a home run, Pettitte completed his masterful effort by getting three straight outs.
The 37-year-old Pettitte took his dominance of the Orioles to a new level with a vintage pitching gem that enabled him to move into sole possession of third place on the Yankees career wins list. He broke a tie with Lefty Gomez with his 190th victory with New York, a number bested by only Hall of Famers Whitey Ford (236) and Red Ruffing (231).
Pettitte allowed one run and two hits, struck out eight and walked none to improve to 4-0 in his last seven starts. He's 26-6 lifetime against the Orioles, including 16-4 in Baltimore.
"I think that's the best I've seen Pettitte since I've been up here," said Markakis, in his fourth season with the Orioles. "He was just mixing up his pitches, going in and out, just putting it where he wanted it. I think his ball-to-strike ratio speaks for itself. He was on tonight and he was tough."
Pettitte threw 104 pitches, 73 for strikes. It was the first time he went eight innings since July 20, 2008.
After retiring his first 15 batters, Pettitte began thinking he just might pull off the perfecto.
"I went out there feeling like I've had such good stuff before and gone a few innings, two or three. ... It never comes about, ever," he said. "Like I said, after the fifth inning I really felt good, and I was throwing everything for strikes, putting it right where I wanted to. So it's like, hey, it could happen."
Then, after Hairston botched the grounder, he sheepishly returned the ball to Pettitte.
"I didn't look at him. Nobody feels worse than I do. It's kind of tough to swallow," Hairston said. "It's unfortunate. I really wanted him to do it. All of us did. It's just a shame. But what can you do? I just missed it."
The only thing resembling a close call against Pettitte over the first six innings came when Matt Wieters topped a slow grounder to third with one out in the sixth. Hairston picked up the ball barehanded, and his off-balance throw got Wieters by a step.
Nick Swisher homered and had three hits for the AL East-leading Yankees, who have won four straight and 21 of 27. New York is 10-3 against the Orioles this season.
Baltimore starter Jeremy Guthrie (9-13) allowed two runs and four hits in six innings. The right-hander was good, but on this night he needed to be near perfect to outpitch Pettitte.
Guthrie matched Pettitte for two innings, retiring the first six batters before Swisher led off the third with his 22nd homer and fourth against Baltimore. Melky Cabrera followed with a one-out double but did not advance.
New York used successive doubles by Robinson Cano and Swisher to make it 2-0 in the fourth.
The Yankees pulled away with a three-run eighth that featured an RBI single by Johnny Damon and a two-run double by Cano.
The Yankees announced ticket prices for potential postseason home games. They range from $5 to $425, and some seats will cost less than they did during the regular season. Season-ticket holders will get the first chance to buy postseason tickets. The date for any public sale hasn't been determined yet. ... Orioles rookie Nolan Reimold's career-high run of reaching base in 17 straight games ended.
What's next for Rays after Montreal split-season plan is nixed?
Alden Gonzalez reports on the Rays having their proposal to split their home games between Tampa Bay and Montreal rejected by Major League Baseball.
Sources: MLB Players Association to make counteroffer to league in Monday meeting
The MLB Players Association is expected to make a counteroffer to the league on Monday, 11 days after clubs gave the union a proposal, sources told ESPN.
Robot umpires at home plate moving up to Triple-A for 2022, one step away from major league baseball
Major League Baseball is expanding its automated strike zone experiment to Triple-A, where it will deploy robot umpires at home plate for the 2022 season.
David Ortiz's Hall of Fame case
Outside the Lines looks at David Ortiz's Hall of Fame candidacy and what may be holding him back from induction.
Tampa Bay Rays say split-season plan with Montreal rejected by MLB
The Tampa Bay Rays' proposed plan to split the season between Florida and Montreal has been rejected by Major League Baseball.
One fun fact you (probably) did not know for all 30 MLB teams
From telling team numbers to surprising player stats, we find what you might have missed about your favorite squad.