I've just installed Postgres for the first time. The setup created a new user called 'postgres' on my pc. Also the Postgres Server service was installed. When I try to start this service, after a few minutes this failes. In the windows logs I found this error message: %t FATAL: could not create lock file "postmaster.pid": Permission denied What is this error about and how do I solve it?
Check to ensure that the postgres user account has permission to modify the data directory. If there is an existing postmaster.pid file in the data directory, check that postgres has permission to modify that file.