Peterborough moved out of the Championship relegation zone after Tommy Rowe scored a late winner against Barnsley.

Michael Bostwick's low free kick in the first half gave Peterborough the lead.

Marlon Harewood looked to have rescued a point with a weak 79th-minute shot from the edge of the area.

Barnsley's new year woes

Barnsley have not started a new year on a winning note since 2000

However, Rowe's drilled effort secured the three points for the home side to move them out of the bottom three and up to 21st in the table.

Barnsley, meanwhile, are bottom and four points adrift of safety.

Dwight Gayle saw a fourth minute shot denied by Barnsley keeper Luke Steele, while for the visitors Craig Davies was the first to threaten, with his shot saved by Robert Olejnik.

Peterborough took the lead just before the half hour as Joe Newell was fouled on the edge of the area and Bostwick drove the free kick inside the near post.

Barnsley improved after the break as Olejnik twice kept out efforts by Chris Dagnall, who also smashed a shot against the post.

Harewood was introduced in the 67th minute and he scored the equaliser 12 minutes later with a soft shot that crept into the net.

Peterborough were not to be denied a fourth win in five games, though, as Rowe scored from the edge of the area with three minutes remaining.

Peterborough manager Darren Ferguson said: "Getting out of the bottom three is a big psychological boost, but my main focus is always on points.

"We're up to 25 after a great run of results at a crucial time in the season but we still need eight more wins to be safe.

"That is a big ask but I've seen a hell of a lot of good things from my players lately."

Caretaker Barnsley manager David Flitcroft said: "I would have been disappointed with a 1-1 draw so I'm absolutely gutted to end up with nothing.

"The lads fought tooth and nail just as they had been doing for [former manager] Keith Hill but we just lacked that killer touch in front of goal.

"Our end product is something that has let us down all season but it is something we will continue to work on for as long as I'm here.

Match Stats

Shots

12 12

On target

7 7

Corners

1 9

Fouls

12 13

Live Text Commentary

90:00 +7:46 Full time

Full Time The referee blows his whistle to end the game.

90:00 +7:02

Michael Bostwick restarts play with the free kick.

90:00 +7:02 Booking

Booking Booking for Martin Cranie.

90:00 +6:57

Martin Cranie gives away a free kick for an unfair challenge on Danny Swanson.

90:00 +6:01

Corner taken by Tom Kennedy.

90:00 +5:34

Danny Swanson produces a cross, Dwight Gayle has shot on goal from just outside the box which goes wide of the right-hand upright.

90:00 +4:06

A cross is delivered by Tom Kennedy, Gabriel Zakuani makes a clearance.

90:00 +2:46

Free kick awarded for an unfair challenge on Michael Bostwick by Marlon Harewood. Direct free kick taken by Robert Olejnik.

90:00 +0:27

Stephen Dawson restarts play with the free kick.

90:00 +0:27 Substitution

Substitution Nathaniel Knight-Percival is brought on as a substitute for Shaun Brisley.

90:00 +0:27

Foul by George Boyd on David Perkins, free kick awarded.

88:04 Substitution

Substitution Daniel Kearns on for Lee Tomlin.

88:04

Lee Tomlin takes a shot.

87:42

Direct free kick taken by Robert Olejnik.

87:42 Booking

Booking The referee shows Scott Golbourne a yellow card.

87:31

Scott Golbourne concedes a free kick for a foul on Danny Swanson.

86:25 Goal scored

Goal! - Tommy Rowe - Peterboro 2 - 1 Barnsley Tommy Rowe grabs a goal from just inside the penalty area to the bottom right corner of the goal. Peterborough 2-1 Barnsley.

86:18

A cross is delivered by Lee Tomlin, clearance made by Stephen Dawson.

85:14

Unfair challenge on Dwight Gayle by Jimmy McNulty results in a free kick. Free kick taken by Kane Ferdinand.

84:24 Substitution

Substitution Reuben Noble-Lazarus on for Jim O'Brien.

82:58

Centre by Jim O'Brien, clearance by Shaun Brisley.

82:00

Centre by Scott Golbourne. Jim O'Brien takes the outswinging corner, Tommy Rowe manages to make a clearance. Centre by Martin Cranie, Gabriel Zakuani manages to make a clearance. Outswinging corner taken by Jim O'Brien, clearance made by Tommy Rowe.

80:19

Martin Cranie restarts play with the free kick. Marlon Harewood takes a shot. Robert Olejnik makes a save.

80:19 Booking

Booking Booking for Danny Swanson.

79:26

Danny Swanson challenges David Perkins unfairly and gives away a free kick.

79:26 Booking

Booking The referee books Shaun Brisley for dissent.

78:10 Goal scored

Goal! - Marlon Harewood - Peterboro 1 - 1 Barnsley Marlon Harewood gets on the score sheet with a goal from the edge of the penalty area to the bottom left corner of the goal. Peterborough 1-1 Barnsley.

75:02

Scott Golbourne concedes a free kick for a foul on Lee Tomlin. Michael Bostwick takes the free kick.

74:08 Substitution

Substitution Joe Newell goes off and Danny Swanson comes on.

73:54

Marlon Harewood delivers the ball.

72:41

George Boyd restarts play with the free kick, Tommy Rowe has a headed effort at goal from just inside the area that misses to the right of the target.

72:41 Booking

Booking Jimmy McNulty shown a yellow card.

72:35

Foul by Jimmy McNulty on Dwight Gayle, free kick awarded.

71:36

Free kick awarded for a foul by Michael Bostwick on Chris Dagnall. Jim O'Brien has a direct shot on goal from the free kick, clearance made by Joe Newell.

70:45

Shot from outside the box by Stephen Dawson misses to the left of the goal.

70:10

Shot from just outside the penalty box by Marlon Harewood misses to the left of the target.

68:11

Marlon Harewood is penalised for handball and concedes a free kick. Direct free kick taken by Robert Olejnik.

66:32

Free kick taken by Tom Kennedy.

66:32 Substitution

Substitution (Barnsley) makes a substitution, with Marlon Harewood coming on for Craig Davies.

66:32

Free kick awarded for a foul by Mark Little on Stephen Dawson.

64:54

Chris Dagnall takes a shot from outside the area that bounces off the post.

63:55

The referee gives a free kick against Chris Dagnall for handball. Free kick taken by Robert Olejnik.

62:23

Chris Dagnall takes a shot. Save made by Robert Olejnik.

61:50

The ball is crossed by Dwight Gayle, clearance by John Stones.

60:39

Tommy Rowe is penalised for handball and concedes a free kick. John Stones takes the free kick.

57:30

Short corner taken by Stephen Dawson.

57:13

The ball is delivered by John Stones, George Boyd makes a clearance.

56:54

Inswinging corner taken right-footed by Jim O'Brien from the left by-line, Robert Olejnik makes a save.

56:21

Tom Kennedy takes the direct free kick.

56:21 Booking

Booking Michael Bostwick receives a caution for unsporting behaviour.

56:10

Chris Dagnall fouled by Michael Bostwick, the ref awards a free kick.

55:00

The offside flag is raised against Craig Davies. Direct free kick taken by Robert Olejnik.

51:56

Jim O'Brien delivers the ball, Michael Bostwick manages to make a clearance. Centre by Jim O'Brien, Mark Little manages to make a clearance.

51:18

George Boyd has shot on goal from just outside the box which goes wide of the right-hand upright.

50:14

The ball is crossed by Jim O'Brien, Shaun Brisley makes a clearance. The ball is delivered by Jim O'Brien, Shaun Brisley makes a clearance.

49:35

The ball is crossed by John Stones. Corner taken by Jim O'Brien from the left by-line, save made by Robert Olejnik.

48:47

George Boyd takes a shot. Save by Luke Steele.

48:32

John Stones fouled by Tommy Rowe, the ref awards a free kick. Direct free kick taken by Luke Steele.

47:00

A cross is delivered by Jim O'Brien, Foul by Craig Davies on Shaun Brisley, free kick awarded. Robert Olejnik takes the direct free kick.

46:32

The ball is delivered by Stephen Dawson, Gabriel Zakuani manages to make a clearance.

46:05

Chris Dagnall takes a shot. Robert Olejnik makes a save. Inswinging corner taken by Jim O'Brien, save by Robert Olejnik.

45:01

The second half kicks off.

45:00 +2:09 Half time

Half Time The referee blows for half time.

45:00 +1:05

Dwight Gayle fouled by Jimmy McNulty, the ref awards a free kick. George Boyd takes the free kick.

42:33

Shaun Brisley concedes a free kick for a foul on Chris Dagnall. Direct strike on goal from the free kick comes in from Tom Kennedy, save by Robert Olejnik.

38:41

Robert Olejnik takes the free kick.

38:41 Booking

Booking The referee cautions Jim O'Brien for unsporting behaviour.

37:12

Lee Tomlin takes a shot. Save by Luke Steele.

36:18

Free kick awarded for a foul by Joe Newell on Martin Cranie. Direct free kick taken by Luke Steele.

34:55

Dwight Gayle takes a shot. Luke Steele makes a save.

33:26

Foul by Lee Tomlin on Martin Cranie, free kick awarded. Luke Steele takes the free kick.

32:31

Shot from deep inside the area by Dwight Gayle goes over the bar.

32:21

Unfair challenge on Lee Tomlin by Martin Cranie results in a free kick. Direct free kick taken by Lee Tomlin.

32:05

Joe Newell takes a shot. Luke Steele makes a comfortable save.

30:32

Corner from the left by-line taken by Jim O'Brien, save by Robert Olejnik. Unfair challenge on Robert Olejnik by Chris Dagnall results in a free kick. Robert Olejnik takes the free kick.

29:13

A cross is delivered by Kane Ferdinand, Luke Steele manages to make a clearance.

28:34

Outswinging corner taken by Lee Tomlin from the right by-line, clearance made by John Stones.

28:08

Craig Davies is caught offside. Michael Bostwick takes the free kick.

27:08

Assist on the goal came from Lee Tomlin.

27:08 Goal scored

Goal! - Michael Bostwick - Peterboro 1 - 0 Barnsley Michael Bostwick gets on the score sheet with a goal from just outside the penalty box to the bottom left corner of the goal. Peterborough 1-0 Barnsley.

26:14

Stephen Dawson gives away a free kick for an unfair challenge on Joe Newell. Lee Tomlin takes the direct free kick.

25:52

Foul by Craig Davies on Tommy Rowe, free kick awarded. Free kick taken by Tommy Rowe.

23:15

Centre by Craig Davies, clearance made by Gabriel Zakuani.

22:34

The offside flag is raised against Dwight Gayle. Luke Steele takes the indirect free kick.

21:18

Corner taken by Jim O'Brien from the left by-line.

21:02

Craig Davies takes a shot. Robert Olejnik makes a save.

18:38

The assistant referee flags for offside against Chris Dagnall. Shaun Brisley restarts play with the free kick. Craig Davies takes a shot. Robert Olejnik makes a comfortable save.

17:43

The ball is crossed by Chris Dagnall, clearance made by Michael Bostwick.

16:54

Dwight Gayle is flagged offside by the assistant referee. Free kick taken by Jimmy McNulty.

16:32

Joe Newell sends in a cross, John Stones manages to make a clearance.

15:09

Free kick awarded for a foul by Tommy Rowe on Stephen Dawson. Free kick taken by John Stones.

14:52

Craig Davies takes a shot. Save by Robert Olejnik.

10:47

The referee gives a free kick against Craig Davies for handball. Robert Olejnik takes the direct free kick.

7:56

A cross is delivered by Jim O'Brien, clearance made by Tommy Rowe.

7:30

Scott Golbourne sends in a cross, Shaun Brisley makes a clearance.

6:04

Dwight Gayle sends in a cross, Scott Golbourne manages to make a clearance.

4:34

Shaun Brisley gives away a free kick for an unfair challenge on Jim O'Brien. Tom Kennedy restarts play with the free kick. Jimmy McNulty gives away a free kick for an unfair challenge on Shaun Brisley. Robert Olejnik restarts play with the free kick.

3:54

Shaun Brisley challenges Chris Dagnall unfairly and gives away a free kick. Martin Cranie takes the direct free kick.

3:11

Dwight Gayle takes a shot. Luke Steele makes a save.

0:38

Centre by Shaun Brisley, Luke Steele makes a save.

0:00

The match begins.

Live data and text provided by our data suppliers