The standard question here is are you A: Running on Windows and B:using an antivirus?
If so, it's often the antivirus getting in the way. Either turn it offor figure out how to exclude postgresql's files from it's view.