When installing PostgreSQL, the following problems occur:
After retrying for many times, the problem persists. In the end, the problem is solved through online search by using the following methods: the problem of database locale settings cannot be selected as default, and the options are Chinese or Chinese, Macau S. a. R ., everything goes well. (Suggestion: use Chinese and Macau S. a.r to better support Chinese)
If an error occurs during installation, you must delete the content in the original installation path before re-installation. Otherwise, the problem may be repeated.
Reference: http://www.cnzixue.com/html/ OS /windows7/soft/2010/0413/6468.html
An error occurred while installing PostgreSQL,
Problem running post-install step. installation may not complete correctly. The database cluster initialisation failed.
You need to uninstall PostgreSQL, reinstall PostgreSQL, and select "Chinese" or "Chinese, Macau S. A. R." Instead of default.
Reference: http://jasonright.javaeye.com/blog/691803