The problem was solved immediately I uninstalled the 360 security on my laptop. Kindly do such and reinstall postgre.