When installing PostgreSQL, the following error occurs:
Solution:
Turn on Secondary Logon Service.
- Click the Windows Start button
- Type in "Services" and run the Services program
- Scroll down to "Secondary Logon" (See Screen Below)
- Right click Secondary Logon and select Start
- Install PostgreSQL again
Secondary logon service should be set to start Automatically
After unsucsesful install do this:
1) Open My Computer - disk C
2) Find a folder C:\PostgreSQL (if not exists - create it),
3) Right-click on it > select Properties > security > you will see form like this
4) Press EDIT - this opens another form
5) Press ADD in it - new form opens
6) in the bottom part of it type postgres
7) Press Check names > then OK and you will be returned to the second window
8) select user "postgres" there > click "Allow - Full control" flag in the bottom
9) click OK to close all these windows
10) Istall postgres again.
**If you do installation using HM2 installer - just wait till process finishes**
**If you are installing Postgres using a standalone setup - set C:\PostgreSQL as install folder (when asked)**