Since I restarted windows to install updates, Postgres stopped starting as a service. I thought it may be a permissions so I gave everyone the ability to to modify the postgres install folder. I then tried to run the database using the start and it works. But when I try and start the service I get the following message: service on local computer started and stopped.
I then tried to re-install Postgres but it got to the end and it was not able to start.
Any help would be great.
Best Answer
I had the same issue on v9.4
I found that deleting
c:\Program Files(x86)\PostgreSQL\9.4\data\postmaster.pid
and\postmaster.opts
then restarting the service resolves the issue.