Installation of PostgreSQL Error
Posted by Shannon Crawford on 03 June 2014 04:58 PM

While attempting to install PostgreSQL , the installation proceeded until almost completing and then displayed the following:

Problem running post-install step. Installation may not complete correctly
The database cluster initialization failed.

PostgreSQL has broken their installer, so attempts to install any version will end in this warning.  After giving the Users group Write access to the data directory, you will be able to successfully install PostgreSQL.

Steps to change the permissions on the data directory:

  1. Navigate to (or create) C:\Program Files\PostgreSQL\x.x\data.
  2. Give "Users" write permission
  3. Install PostgreSQL
  4. Remove write permission for "Users" on the data directory


    Comments (1)
    Shannon Crawford
    25 October 2016 10:07 AM
    Another issue I've seen is when attempting to start the Postgres service after making changes to the pg_hba.conf file and getting a "can not load the pg_hba.conf file" message. This could be caused by hidden tabs or hidden characters (Enter/Return) within that file. Clean up the spaces and restart the service.