It can cause anything for example, my issue was caused for typo error on configuration files.
Some of people says caused by certificate files, another group says caused by unmatched locals.
If you cant find any solution about your issue, remove postgres and reinstall it.This is the best solution.