After the install of PostgreSQL 8.4.5 should be done I got the following error:
Installation may not complete correctly. The database cluster initialization failed.
The services was not installed.
The solution is simple.
1. Manually create the directory structure from PostgreSQL. In my case D:\PostgreSQL\8.4\data
2. Allow full access to all users ( including “postgres” user) on “Postgres Folder”.
3. Make “postgres” user as the owner of the data directory….
After this install PostgreSQL 8.4.5 and the installation should work like a charm.