Darren Ferguson was relieved to survive an “unprofessional” second-half wobble as his side held off a fightback from 10-man Blackpool to win 4-2 at Bloomfield Road.
Posh appeared to be cruising as goals from Kwame Poku, Harrison Burrows and Ricky-Jade Jones put them 3-0 up inside an hour against a home side who had Oliver Casey dismissed shortly after the restart.
But the hosts scored twice in the space of four minutes through Kenny Dougall’s header and Sonny Carey, who was first to the rebound when Nicholas Bilokapic parried James Husband’s shot to set up a grandstand finish.
It needed a stoppage-time strike from Ephron Mason-Clark, who had earlier missed a penalty, to make the points safe and Ferguson was left to reflect on a mixed performance.
“We were excellent for 60 minutes and we stuck to the game plan,” he said.
“We were very good and we were dominant. But even at 2-0 we got sloppy, and then a great third goal and you’re thinking ‘game over, just manage it. Can we put a real statement out and put them to the sword?’.
“Then 15 minutes later, we’re hanging on. I couldn’t believe what I was seeing. We were all over the place and it was just unprofessional.
“We managed to see it through and a good counter-attack and a great finish by Ephron. Any time you come here and you win, it’s a great result because these will be in the top six, I’m absolutely certain of that.
“We’ve now gone to Bolton away, Barnsley away, these away, Portsmouth away; a lot of teams that will probably end up in the top six, I think, and we’ve come out pretty unscathed.”
Posh climbed to fourth following their victory while Blackpool sit seventh, three points outside the Sky Bet League One play-off places.
Tangerines boss Neil Critchley had nothing but praise for the way his side battled back into the contest.
“I’m proud of a team that’s given absolutely everything in really difficult circumstances,” he said.
“If you’re going to lose a game of football, then lose like that.
“I’m disappointed to lose, obviously. I think we could have started the game better, I thought we were a little bit tentative, which was not the message before the game, but I thought we grew into it.
“Our response to going 3-0 down was magnificent, unbelievable. The players gave absolutely everything. At 3-2, we had them, we felt we could get something out of the game at that moment in time.
“You could see tiredness towards the end and we made a mistake and they scored. So much happened during the game. Even though we’ve lost, I’m still very positive about what I saw in the second half, especially.”